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
|
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
|
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 |
|
 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 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 |
|