This commit is contained in:
2025-12-04 15:50:55 +08:00
parent e582c95541
commit 5b6ca24c13
6 changed files with 642 additions and 0 deletions

View File

@@ -670,6 +670,9 @@ def is_forbidden_time() -> bool:
返回值:
bool: True 表示处于禁跑时段
"""
# 去除晚上停止功能
return False
# 禁跑时段为 18:30 ~ 20:00
now = datetime.now()
start = now.replace(hour=18, minute=30, second=0, microsecond=0)
end = now.replace(hour=20, minute=0, second=0, microsecond=0)