Commit Graph
515 Commits
Author SHA1 Message Date
Your Name 29d930b1de refactor(gui): get_params 复用 _vars_ + device_var,删除子集 dict (855 → 825) 2026-05-30 17:23:43 +08:00
Your Name df758cf224 refactor(gui): config_io 复用 _vars_ 全集,删除 _config_io_vars 子集字典 (982 → 855) 2026-05-30 17:20:52 +08:00
Your Name 47865f5dfa refactor(gui): setup_*_tab 调用直接传 _vars_ 全集 (1110 → 982) 2026-05-30 17:17:55 +08:00
Your Name 9744b75878 refactor(gui): 抽 127 个 Var 声明到 components/config_vars 工厂 (1373 → 1110) 2026-05-30 17:14:39 +08:00
Your Name 200f3a53fc docs(specs): 更新 gui_app 拆分最终成果(5476 → 1373, -75%) 2026-05-30 17:09:08 +08:00
Your Name 7a840120b3 refactor(gui): 抽底部操作按钮区到 components/action_buttons (1417 → 1373) 2026-05-30 17:06:36 +08:00
Your Name e314161b6c refactor(gui): 抽右侧主 Notebook + 实时工具栏到 components/main_notebook (1444 → 1417) 2026-05-30 17:02:35 +08:00
Your Name 3a7a7a3b75 refactor(gui): 抽 keywords_tab UI 到 components/keywords_tab (1461 → 1444) 2026-05-30 16:58:53 +08:00
Your Name 8575f04ab9 refactor(gui): 抽截图预览 Tab 整段 UI 到 components/preview_tab (1537 → 1461) 2026-05-30 16:54:53 +08:00
Your Name 728ef3cd79 refactor(gui): 5 个简单文本 Tab 用 simple_tabs 模板复用 (1571 → 1537) 2026-05-30 16:49:01 +08:00
Your Name 32e374e2c2 refactor(gui): 抽行为日志工具栏到 components/actions_log_toolbar (1649 → 1571) 2026-05-30 16:45:02 +08:00
Your Name aa0f4e05f2 refactor(gui): 抽中奖记录 Tab 整段 UI 到 components/win_record_tab (1739 → 1649) 2026-05-30 16:40:49 +08:00
Your Name 5e3015f59b refactor(gui): 抽日志搜索工具栏到 components/log_search_toolbar (1813 → 1739) 2026-05-30 16:36:43 +08:00
Your Name dc1744a93f refactor(gui): 重排 log_text 创建到搜索栏之前(为下一步抽搜索栏铺路) 2026-05-30 16:33:00 +08:00
Your Name b686a4e3d5 refactor(gui): 抽 log_text 颜色配置到 components/log_text_colors (1878 → 1813) 2026-05-30 16:29:27 +08:00
Your Name 29cef2c578 refactor(gui): 抽 realtime_tab UI 创建到 components/realtime_tab (2037 → 1878) 2026-05-30 16:25:51 +08:00
Your Name e784efd5f8 refactor(gui): 抽 filter_tab UI 创建到 components/filter_tab (2122 → 2037) 2026-05-30 16:18:29 +08:00
Your Name 6c7bbf0945 refactor(gui): 抽 run_tab UI 创建到 components/run_tab (2192 → 2122) 2026-05-30 16:15:24 +08:00
Your Name fe27063913 refactor(gui): 抽 reservation_tab UI 创建到 components/reservation_tab (2334 → 2192) 2026-05-30 16:11:47 +08:00
Your Name 3f04bb23c2 refactor(gui): 抽 yanghao_tab UI 创建到 components/yanghao_tab (2456 → 2334) 2026-05-30 16:06:40 +08:00
Your Name bcb0e363d1 refactor(gui): 抽 logging_tab UI 创建到 components/logging_tab (2656 → 2456) 2026-05-30 15:54:46 +08:00
Your Name b447b6a6a4 refactor(gui): 抽 debug_tab UI 创建到 components/debug_tab (3052 → 2656) 2026-05-30 15:50:58 +08:00
Your Name 3ac8664817 docs(specs): 更新 gui_app 拆分最终成果(5476 → 3052, -44.3%) 2026-05-30 15:42:56 +08:00
Your Name 6bac014c3d refactor(gui): 抽 load_config_to_ui + save_ui_to_config 到 components/config_io (3538 → 3052) 2026-05-30 15:41:27 +08:00
Your Name 3d433080c2 docs(specs): 更新 gui_app 拆分最终成果(5476 → 3538, -35.4%) 2026-05-30 15:27:44 +08:00
Your Name f6d382b0e7 refactor(gui): 抽 get_params 到 components/run_params_builder (3563 → 3538) 2026-05-30 15:26:17 +08:00
Your Name 2a05be2319 refactor(gui): 抽 save_logging_config 到 components/logging_config_io (3590 → 3563) 2026-05-30 15:22:29 +08:00
Your Name f9839f3dee docs(specs): 补充 gui_app 拆分实际成果(5476 → 3590, -34%) 2026-05-30 15:18:13 +08:00
Your Name 97935d9c48 refactor(gui): 抽 _generic_search_widget 到 components/text_search (3669 → 3590) 2026-05-30 15:16:42 +08:00
Your Name 64c210dd5a refactor(gui): 抽 refresh_run_log 到 components/run_log_view (3715 → 3669) 2026-05-30 15:12:38 +08:00
Your Name 68d1224b53 refactor(gui): 抽 _on_scan_one_click + _handle_scan_result 到 components/wifi_adb_one_click_scan (3775 → 3715) 2026-05-30 15:08:35 +08:00
Your Name 92d524297b refactor(gui): 抽预览 Tab 全部 8 个动作到 components/preview_view (3891 → 3775) 2026-05-30 15:03:45 +08:00
Your Name 59ebe8c1e7 refactor(gui): 抽 win_record Tab 全部 7 个动作到 components/win_record_view (4044 → 3891) 2026-05-30 14:53:11 +08:00
Your Name a7ef92fc7c refactor(gui): 抽 pump_logs 到 components/log_pump (4117 → 4044) 2026-05-30 14:37:03 +08:00
Your Name c5df7a05d2 refactor(gui): 抽 update_ocr_results 到 components/ocr_results_view (4148 → 4117) 2026-05-30 14:30:42 +08:00
Your Name b3380042b8 refactor(gui): 抽 _try_reconnect_last_wifi 到 components/wifi_adb_reconnect (4268 → 4148) 2026-05-30 14:24:19 +08:00
Your Name 4993fad004 refactor(gui): 抽 _open_scan_pick_dialog 到 components/wifi_adb_pick_dialog (4337 → 4268) 2026-05-30 14:18:19 +08:00
Your Name 44b091466d refactor(gui): 抽 actions_log 视图相关到 components/actions_log_view (4463 → 4337) 2026-05-30 14:10:30 +08:00
Your Name 8ea676562c refactor(gui): 抽 do_screenshot + OCR_REGIONS 到 components/screenshot_action (4635 → 4463) 2026-05-30 14:03:31 +08:00
Your Name a07ef00b5e refactor(gui): 抽 refresh_high_value_rooms 到 components/high_value_view (4656 → 4635) 2026-05-30 13:56:36 +08:00
Your Name 5329561b3a refactor(gui): 抽 refresh_reservations 到 components/reservations_view (4913 → 4656) 2026-05-30 13:52:39 +08:00
Your Name 6bffcae2de refactor(gui): 抽 open_wifi_adb_dialog 到 components/wifi_adb_dialog (5274 → 4913) 2026-05-30 13:48:22 +08:00
Your Name ac464788e1 refactor(gui): 抽 open_scan_dialog 到 components/wifi_adb_scan_dialog (5476 → 5274) 2026-05-30 13:43:17 +08:00
Your Name 8dace383ec docs(plans): 添加 gui/gui_app.py 拆分实施计划 2026-05-30 13:26:42 +08:00
Your Name 26f9e5a553 docs(specs): 添加 gui/gui_app.py 拆分设计文档 2026-05-30 13:24:07 +08:00
CodexandClaude Sonnet 4.5 bb90e2983f fix(pil): 补充修复剩余 PIL Image 资源泄漏
覆盖 14 个文件中的 Image.open() 未正确关闭问题:
- fansclub_handler: 5 处(pic/pic_rgb/img 未 close)
- image_ops: 2 处(crop 后 pic 未 close)
- douyin_popups: 2 处(pic.convert 重赋值泄漏原始句柄)
- douyin_fudai: 1 处(open().convert() 链式调用泄漏)
- douyin_robot: 2 处(同上)
- save_files/direct_attend/finder/stage/find_open/detail/_common/ocr_preprocess: 各 1-2 处

统一修复模式:分离 open 与 convert,try/finally 确保原始句柄关闭。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-23 22:49:50 +08:00
CodexandClaude Sonnet 4.5 c3746b0207 fix(pil): 修复 PIL Image 资源泄漏
Image.open() 后未 close() 导致文件句柄泄漏,用 _raw + try/finally 模式修复。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-23 22:42:22 +08:00
CodexandClaude Sonnet 4.5 b1fa6af9ce fix(gui): 修复启动后 GUI 卡死约 1.2 秒
delayed_refresh_preview 在 mainloop 启动 300ms 后同步加载大图(PIL
Image.open + load + convert),阻塞主线程。改为:
1. 延迟到 3 秒后再触发预览(GUI 已完全初始化)
2. 图片加载放到后台线程,完成后通过 root.after 回主线程更新

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-23 21:58:50 +08:00
CodexandClaude Sonnet 4.5 96fdc96f24 refactor(cleanup): 移除剩余死代码模块
- 删除 douyin/utils/douyin_text_utils.py 及其测试
- 移除 performance_tracker.py 中未使用的 track_function 方法
- 移除 param_usage_tracer.py 中未使用的 stop_tracing / is_enabled
- 清理 bin/run_cli.py 和 tests/test_imports.py 中的残留引用

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-23 21:58:41 +08:00
CodexandClaude Sonnet 4.5 c4544489ac refactor(coords): 提取点击坐标常量,消除硬编码
在 coords.py 添加 DETAIL_OUTSIDE_CLICK、PARTICIPATE_BTN_CLICK、
FANSCLUB_JOIN_CLICK、FANSCLUB_JOIN_FALLBACK_CLICK 常量,
替换 fudai_attend/fansclub_handler/join_decision 中的硬编码坐标。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-23 21:20:17 +08:00