From c22e2f6a190a1cac3392bbaea976d71d42083a37 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Dec 2025 16:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=97=A5=E5=BF=97=E5=92=8C=E5=A2=9E=E5=BC=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 修复定时任务日志字段映射问题 - 修正execute_time → created_at - 修正success_accounts → success_count - 修正failed_accounts → failed_count - 修正duration_seconds → duration - 位置: database.py 第1661-1686行 2. 添加定时任务调试日志 - 显示当前检查时间和任务匹配情况 - 帮助诊断定时任务不执行问题 - 位置: app.py 第2869-2875行 3. 新增VIP权限对比表格 - 在VIP信息弹窗中添加权限对比 - 对比普通用户和VIP用户的6项权限 - 位置: templates/index.html 第549-593行 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app.py | 7 ++++++ database.py | 17 +++++++++++++- templates/index.html | 55 ++++++++++++++++++++++++++++++++++++-------- 3 files changed, 68 insertions(+), 11 deletions(-) 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个✅ 无限制
定时任务❌ 不可用✅ 可用
批量操作❌ 不可用✅ 可用
截图功能❌ 不可用✅ 可用
详细进度显示基础显示✅ 详细显示
技术支持标准支持✅ 优先支持