定时任务,周计算调整。

This commit is contained in:
liuwei
2025-06-12 10:28:24 +08:00
parent 79f6ff6474
commit 0e198c7c09

View File

@@ -382,7 +382,8 @@ class MessagePushTask(MessagePluginInterface):
# 获取当前是周几0-60是周一
current_weekday = now.weekday()
weekly_days = [int(day) for day in weekly_days]
# 将数据库中的周几1-7转换为代码中的周几0-6
weekly_days = [int(day) - 1 for day in weekly_days]
weekly_days.sort()
# 找到下一个执行日