Your Name
|
8389f85124
|
fix: speed up reservation direct attend
|
2026-06-23 01:43:17 +08:00 |
|
Your Name
|
48b0a32e24
|
Guard fudai retry and reservation seek verification
|
2026-06-19 20:01:46 +08:00 |
|
Your Name
|
c97e4edc74
|
Fix reservation backtracking after failed title verify
|
2026-06-18 11:06:21 +08:00 |
|
Your Name
|
1adaefdce6
|
Add lightweight fudai flow diagnostics
|
2026-06-18 03:52:18 +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 |
|