Your Name
|
ffebc8d0dc
|
add direct attend button ocr fallback
|
2026-06-24 00:56:36 +08:00 |
|
Your Name
|
df46d723c3
|
avoid back exit during reservation direct attend
|
2026-06-24 00:17:45 +08:00 |
|
Your Name
|
e41796d43a
|
keep reservation after coupon popup during direct attend
|
2026-06-24 00:10:20 +08:00 |
|
Your Name
|
5d3d58a2f9
|
fix: retry reservation direct attend icon scan
|
2026-06-23 12:07:36 +08:00 |
|
Your Name
|
25df550304
|
fix: prioritize reservation conflicts by value
|
2026-06-23 11:46:02 +08:00 |
|
Your Name
|
a449b7634c
|
fix: speed up fansclub reservation prejoin
|
2026-06-23 10:43:17 +08:00 |
|
Your Name
|
ba9ac4cb0e
|
fix: prejoin fansclub before reservation
|
2026-06-23 09:57:06 +08:00 |
|
Your Name
|
f95832579a
|
fix: avoid live-room back on fudai retry
|
2026-06-23 03:09:14 +08:00 |
|
Your Name
|
25f7f9af9e
|
fix: use ocr live tab and merge stuck room titles
|
2026-06-23 02:06:53 +08:00 |
|
Your Name
|
8389f85124
|
fix: speed up reservation direct attend
|
2026-06-23 01:43:17 +08:00 |
|
Your Name
|
b533c4e96e
|
Fix reservation direct attend timing guard
|
2026-06-19 21:52:32 +08:00 |
|
Your Name
|
0f1baac92f
|
Prevent stale run from restoring room map
|
2026-06-19 20:24:11 +08:00 |
|
Your Name
|
48b0a32e24
|
Guard fudai retry and reservation seek verification
|
2026-06-19 20:01:46 +08:00 |
|
Your Name
|
a06218dd16
|
Clear stale reservation direct attend state
|
2026-06-19 19:37:24 +08:00 |
|
Your Name
|
c5b7198145
|
Fix fudai return guards and sample selection
|
2026-06-19 11:42:34 +08:00 |
|
Your Name
|
ec51772cf0
|
Fix fudai countdown and room mapping guards
|
2026-06-18 19:25:46 +08:00 |
|
Your Name
|
c97e4edc74
|
Fix reservation backtracking after failed title verify
|
2026-06-18 11:06:21 +08:00 |
|
Your Name
|
fe1a62e92d
|
Fix fudai live flow state and icon fallback
|
2026-06-18 10:40:47 +08:00 |
|
Your Name
|
9ffbe47bdb
|
Improve fudai live flow diagnostics
|
2026-06-18 04:48:16 +08:00 |
|
Your Name
|
1adaefdce6
|
Add lightweight fudai flow diagnostics
|
2026-06-18 03:52:18 +08:00 |
|
Your Name
|
62c84939ee
|
add fudai detail and reservation verdict markers
|
2026-06-05 15:46:43 +08:00 |
|
Your Name
|
40f9812ab1
|
收口像素检测调试图输出
|
2026-06-03 12:05:27 +08:00 |
|
Your Name
|
1d37d57c90
|
修复福袋详情OCR v2与调试日志
|
2026-06-03 01:22:13 +08:00 |
|
Your Name
|
147892a144
|
fix: 根因修复同房三连与映射合并,避免双切房
|
2026-06-01 21:13:58 +08:00 |
|
Your Name
|
36e374ef67
|
refactor: split large modules and harden live-room fudai flow
|
2026-06-01 18:39:44 +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
|
6f38907119
|
fix(fudai/reservation): 修 3 处拆模块遗留 NameError
- douyin_fudai_core.py: get_fudai_contain 引用 TASK_LIST / PARTICIPATE_BUTTON
但只导入了 LIVE_ROOM_TITLE,运行时必触发 NameError
- douyin_reservation_verify.py: match_reservation 末尾日志引用
current_title,但该变量仅在 if expected_title 块内赋值,
expected_title 为空时 NameError(被 try/except 吞掉但丢失日志)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-05-23 13:28:54 +08:00 |
|
 CodexandClaude Opus 4.7
|
d60b83af68
|
refactor(reservation): 抽回退校验+二次回退到 attend_window_verify (1437 → 898)
attend_window.process_reservation_attend_window 中 L754-1293 是 540 行
"if ok:"分支:回退操作成功后等待直播间加载 → 调
douyin_reservation_verify.validate_back_to_reservation 校验 → 校验失败时
通过映射表重定位 + 二次回退。
抽到 reservation_logic/attend_window_verify.py:
- handle_back_verify(...) 入口,返回 Optional[bool]
- True/False → 主函数应立即返回该值
- None → 校验通过/禁用/异常,主函数继续设置锁定期
- _handle_verify_failure: 校验失败的处理流程
- _remap_target_via_room_titles: 映射表重定位(target + 当前直播间位置)
- _retry_seek_with_mapped_diff: 根据 mapped_pos_diff 决定是否二次回退
- diff=0 + room_pos_before_map 不一致 → 设置 _seek_direction_hint 重试
- diff=0 + 一致 → 跳过二次回退
主函数对应位置替换为 14 行委托。
1361 passed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-23 02:49:37 +08:00 |
|
 CodexandClaude Opus 4.7
|
85bd488f66
|
拆分 douyin_reservation_handler (1314 → 6 个子模块 + 29 行 shim)
把 douyin/reservation/douyin_reservation_handler.py 按职责拆成
douyin/reservation/douyin_reservation_handler_pkg/ 子包:
- find_room (169) find_room_pos_by_title 按标题查找直播间位置
- record_title (333) record_room_title_and_pos 记录直播间标题与位置
- seek_room (319) seek_reservation_room 回退到目标预约直播间
- direct_attend (441) handle_reservation_direct_attend 预约直接参与
- dump_state (180) _dump_room_pos_map_to_state 序列化映射到 state 文件
- handler (43) ReservationHandler 类(薄壳,每个 staticmethod 1 行 forwarding)
策略亮点:原 ReservationHandler 4 个方法都是 @staticmethod 且第一个参数为
analyser,搬出来成 module-level 函数后,类方法变成 1 行 forwarding。
公共 API 100% 保留:ReservationHandler.method(analyser, ...) 完全不需要改。
外部 import 路径不变:
``from douyin.reservation.douyin_reservation_handler import ReservationHandler``
仍可用(原文件改成 29 行 re-export shim)。
- ReservationHandler 5 处外部引用
- find_room_pos_by_title 2 处外部引用
- handle_reservation_direct_attend / _dump_room_pos_map_to_state 各 1 处
全部不需修改。
回归:
- 7 个新文件 + shim compileall 通过
- pytest 353 passed / 1 skipped
- ReservationHandler.find_room_pos_by_title / module-level 函数 / 顶层
_dump_room_pos_map_to_state 都能正常调用
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 18:21:40 +08:00 |
|
 CodexandClaude Opus 4.7
|
74209035f7
|
拆分 douyin_reservation_logic (2702 → 7 个子模块 + 53 行 shim)
把 douyin/reservation/douyin_reservation_logic.py 按职责拆成
douyin/reservation/reservation_logic/ 子包:
- _common (57) 共享错误处理工具占位 + ReservationItem 类型
- helpers (130) 内部工具:标题归一化 / 相似度 / 排序 / 时间戳
- add (447) add_reservation_core_logic 主入口(添加新预约)
- cleanup_validate (136) validate_back_to_reservation / cleanup_expired_reservations
- queue_full (305) handle_queue_full_wait_at_earliest 队列满时等待策略
- attend_window (1437) process_reservation_attend_window 进入预约窗口(最大头)
- record (328) record_high_value_reservation 高价值预约登记入口
原文件改为 53 行 re-export shim,17 个公共符号全部保留。
- process_reservation_attend_window 7 处外部引用
- handle_queue_full_wait_at_earliest 5 处外部引用
- _now_ts 5 处 / cleanup_expired_reservations 4 处 / _sort_reservations_inplace 4 处
- 其他 5 处以下
全部不需修改。
回归:
- 8 个新文件 + shim compileall 通过
- pytest 353 passed / 1 skipped
- 旧 import 路径与新子包路径返回同一函数对象
- _now_ts / _normalize_room_title / _calculate_string_similarity 等纯函数
调用结果与拆分前一致
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 17:03:55 +08:00 |
|
 CodexandClaude Opus 4.7
|
0c62696118
|
P3: 清理过期 TODO + 修正过期路径注释
- operations/__init__.py:
- 模块描述里 "Underlying_Operations.py 模块化" 改为
"douyin/core/underlying_operations.py 模块化拆分"(原文件已迁移)
- 删除 "TODO: 逐步迁移后改为从子模块导入"——
导入是有意保留的向后兼容层,不是待办
- douyin/reservation/core/__init__.py:
- 删除 "临时导入" "TODO: 迁移完成后改为从子模块导入"
- 这个 re-export 层也是有意保留的向后兼容设计
回归:140 .py 编译通过;operations + reservation.core 模块加载 OK;
test_filter_logging / check_web_gui_config_sync 通过。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 12:13:31 +08:00 |
|
 CodexandClaude Opus 4.7
|
0700a378ec
|
stage + reservation: 孤立 print → logger
- douyin/stage/douyin_stage.py:阶段诊断起始处的 [DEBUG] print 改为
_LOGGER.debug,原本是诊断日志,走 logging 更合适
- douyin/reservation/douyin_reservation.py:当 _RESERVATION_ERROR_UTILS
不可用时的 print 兜底改为 _LOGGER.error,避免日志静默丢失
- 两处都新增模块级 logger
回归:140 .py 编译通过;test_filter_logging / check_web_gui_config_sync 通过。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 11:52:28 +08:00 |
|
 CodexandClaude Opus 4.7
|
71f3653354
|
补回上次合并丢失的关键路径修复 + .gitignore 补强 + 依赖版本对齐
上次冲突解决时跳过了 982f57e (P0 清理) 和 b6ae970 (路径修复) 两个 commit,
本提交补回其中影响运行时正确性和文档一致性的 7 处。
E. 路径错位修复
- douyin/core/douyin_fudai.py: _reservations_state_path 与 room_pos_map
状态目录改为优先调用 path_config.get_reservations_path()
- douyin/core/path_config.py: get_reservations_path 注释明确"实际位置 + 写入方"
- gui/components/mapping_utils.py: 删除错误兜底 douyin/state/reservations.json
- gui/components/mapping_table.py: 同步删除 douyin/state/room_pos_map.json 错误兜底
- gui/web_gui.py: get_reservations() 内的兜底由 douyin/state/ 修正为 douyin/core/state/
- bin/run_cli.py: 移除对已删空文件 douyin_reservation_ops.py 的 shim 加载
- douyin/reservation/douyin_reservation_ops.py: 删除 0 字节空文件
F. .gitignore 补强
- 新增 *.bak_* 拦截带日期后缀的备份命名(修复 *.bak 命中失败的场景)
G. 依赖版本对齐
- requirements-minimal.txt: paddleocr/paddlepaddle 改为 >=3.0.0,与 requirements.txt 一致
- README.md: 安装指引中 paddlepaddle==2.5.2 改为 >=3.0.0
回归:全量 .py compileall 通过;7 项断言(path_config 路径、douyin_fudai 切换、
3 处兜底已清、shim 已移除、空文件已删、.gitignore 补强、版本对齐)全部 PASS;
test_filter_logging / check_web_gui_config_sync 通过。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 10:18:17 +08:00 |
|
 CodexandClaude Opus 4.5
|
8fe7ff0585
|
refactor: 根目录核心模块迁移到 douyin/core/ 和 douyin/logging/
将 4 个根目录核心模块迁移到合理位置:
- path_config.py -> douyin/core/path_config.py
- version.py -> douyin/core/version.py
- Underlying_Operations.py -> douyin/core/underlying_operations.py
- unified_logger.py -> douyin/logging/unified_logger.py
配套更新所有 import:
- path_config: 41 处 import 改为 douyin.core.path_config
- version: 4 处改为 douyin.core.version
- unified_logger: 5 处改为 douyin.logging.unified_logger
- Underlying_Operations: 14 处改为 douyin.core.underlying_operations
修复 path_config.PROJECT_ROOT 计算(向上 2 级而非当前目录)。
验证:python -m compileall 全项目通过。
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 00:23:14 +08:00 |
|
 CodexandClaude Opus 4.5
|
ff8de2c9b8
|
fix: 修复7个Critical并发安全和异常处理问题
1. OCR 单例无锁保护 - 添加 _ocr_lock 和 _ocr_coords_lock
2. ADB 文本广播命令注入 - 使用 shlex.quote() 转义
3. 截图文件 Race Condition - 添加 PNG 完整性验证
4. JSON 持久化无锁 - 添加文件级锁字典
5. 双检查锁不完整 - 修复 _ensure_debug_save_worker_started
6. Daemon 线程无 Graceful Shutdown - 添加 shutdown event 和 atexit
7. 关键路径异常处理 - 添加 logging.debug 替代 pass
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-20 22:25:35 +08:00 |
|
Your Name
|
4903e50ff2
|
优化:调整代码格式,增强可读性
|
2026-01-23 15:29:09 +08:00 |
|
Your Name
|
d31a3ffee3
|
优化:调整basic_join_decision函数中的失败计数逻辑,提升代码可读性
|
2026-01-18 14:22:40 +08:00 |
|
Your Name
|
27bb48c881
|
优化:增加连续失败处理逻辑,避免直播间卡死;调整抽奖参与逻辑,限制重试次数;添加购物红包OCR复查功能
|
2026-01-18 13:36:12 +08:00 |
|
Your Name
|
746f24636a
|
预约: 在seek_reservation_room中添加总时间上限30秒,防止卡死
|
2026-01-17 23:50:36 +08:00 |
|
Your Name
|
33119a8200
|
预约: 回退成功后更新映射表文件以覆盖原本的
|
2026-01-17 23:33:43 +08:00 |
|
Your Name
|
3ce0aa73dd
|
feat: 优化当前直播间标题获取逻辑,提升匹配准确性
|
2026-01-17 19:34:57 +08:00 |
|
Your Name
|
3488624b8f
|
feat: 优化预约逻辑,增强映射表记录功能,提升用户体验
|
2026-01-17 18:46:13 +08:00 |
|
Your Name
|
3fbd2b2d85
|
feat: 调整高价值福袋参与阈值,优化预约逻辑以提升用户体验
|
2026-01-17 09:26:41 +08:00 |
|
Your Name
|
c091e4d3f0
|
feat: 优化当前福袋内容标识的设置逻辑,增强代码可读性
|
2026-01-17 09:08:23 +08:00 |
|
Your Name
|
55a3f3a0af
|
feat: 增强福袋详情记录功能,优化映射表记录逻辑,修复重复标题处理
|
2026-01-17 08:48:23 +08:00 |
|
Your Name
|
716567dbb0
|
feat: 优化预约福袋参与逻辑,修复锁定期处理和映射表记录,新增重复标题去重功能
|
2026-01-17 08:43:21 +08:00 |
|
Your Name
|
db75248b98
|
feat: 优化滑动重置回退延迟,从2秒减少到0.1秒;完善预约系统二次回退机制
|
2026-01-16 21:54:09 +08:00 |
|
Your Name
|
54f9b39d2e
|
feat: 优化滑动重置和返回键回退逻辑,完善预约系统二次回退机制
|
2026-01-16 21:53:05 +08:00 |
|
Your Name
|
cc2d81c9ad
|
fix: 并行OCR时避免清理截图文件
- 在并行记录映射表时不清理截图文件,避免主线程OCR时文件不存在
- 通过检查 _screenshot_ready_for_ocr 标志来判断是否在并行处理中
|
2026-01-16 16:33:07 +08:00 |
|
Your Name
|
de2fb909a9
|
feat: 清理旧截图文件以避免复用过期截图,并优化截图文件检查逻辑
- 在程序启动时清理旧截图文件
- 在记录映射表前清理截图文件
- 增强截图文件过期检查(30秒超时)
- 避免程序启动时复用低置信度的过期截图
|
2026-01-16 16:30:40 +08:00 |
|