from __future__ import annotations """ 福袋详情工具函数模块 ==================== 提供通用的工具函数。 """ def is_abnormal_time_value(v: float) -> bool: """Shim: treat clearly invalid time values as abnormal.""" if v <= 0: return True if v > 24 * 3600 * 7: return True return False