diff --git a/app.py b/app.py index 9494fcd..e469151 100755 --- a/app.py +++ b/app.py @@ -2866,7 +2866,14 @@ def scheduled_task_worker(): # 获取所有启用的用户定时任务 enabled_schedules = database.get_enabled_user_schedules() + if enabled_schedules: + print(f"[定时任务检查] 当前时间: {current_time}, 星期: {current_weekday}, 找到 {len(enabled_schedules)} 个启用的定时任务") + for schedule_config in enabled_schedules: + schedule_time = schedule_config['schedule_time'] + schedule_name = schedule_config.get('name', '未命名任务') + print(f"[定时任务检查] 任务 '{schedule_name}': 设定时间={schedule_time}, 当前时间={current_time}, 匹配={schedule_time == current_time}") + # 检查时间是否匹配 if schedule_config['schedule_time'] != current_time: continue diff --git a/database.py b/database.py index e1f883a..369c8da 100755 --- a/database.py +++ b/database.py @@ -1663,7 +1663,22 @@ def get_schedule_execution_logs(schedule_id, limit=10): with db_pool.get_db() as conn: cursor = conn.cursor() cursor.execute(''' - SELECT * FROM schedule_execution_logs + SELECT + id, + schedule_id, + user_id, + schedule_name, + execute_time as created_at, + total_accounts, + success_accounts as success_count, + failed_accounts as failed_count, + total_items, + total_attachments, + total_screenshots, + duration_seconds as duration, + status, + error_message + FROM schedule_execution_logs WHERE schedule_id = ? ORDER BY execute_time DESC LIMIT ? diff --git a/templates/index.html b/templates/index.html index 5f1302e..4b71c57 100644 --- a/templates/index.html +++ b/templates/index.html @@ -545,16 +545,51 @@
VIP会员
-
-
VIP专属特权
-
-
✅ 无限账号管理
-
✅ 自定义定时任务
-
✅ 批量启动/停止
-
✅ 详细进度显示
-
✅ 截图管理
-
✅ 优先技术支持
-
+ + +
+
会员权限对比
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
功能普通用户VIP会员
账号管理数量最多5个✅ 无限制
定时任务❌ 不可用✅ 可用
批量操作❌ 不可用✅ 可用
截图功能❌ 不可用✅ 可用
详细进度显示基础显示✅ 详细显示
技术支持标准支持✅ 优先支持