- Deleted obsolete files including test scripts and configuration files to streamline the project. - Introduced new modules for handling Douyin functionalities, including core operations, logging, and GUI components. - Updated import paths to reflect the new module structure, enhancing code organization and maintainability. - Added configuration files and documentation to support the new structure and improve user guidance.
19 lines
338 B
Python
19 lines
338 B
Python
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
|
|
|