Files
douyi_guaji_main/douyin/reservation
CodexandClaude Opus 4.7 0629906449 refactor(reservation): 抽 process_reservation_attend_window 中 3 个独立块到 helper
- calculate_dynamic_ahead:计算动态提前量 + 估计回退步数(约 32 行 → 4 行调用)
- log_target_reservation_info:记录目标预约的详细信息日志(约 19 行 → 1 行调用)
- is_queue_full_immediate_attend_mode:检查并记录"队列满立即参与模式"状态(约 22 行 → 1 行调用)

attend_window.py: 293 → 231 行 (-62)
attend_window_helpers.py: 1143 → 1234 行

attend_window.py 跌破 250 行(1437 → 231,本会话累计削减 1206 行 = -84%)
process_reservation_attend_window 函数从约 376 → 215 行

验证:
- pytest 1013 passed
- compile OK

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 14:12:02 +08:00
..