
CodexandClaude Opus 4.7
f5b603e39e
refactor(fudai): 抽 run_once_basic 中"高价值预约整段处理"块到 process_high_value_reservation_check
将 high_value_enabled and reservations_list 分支整段(含 4 个回调闭包 + 6 步处理流程)
约 99 行抽到 process_high_value_reservation_check helper,内部组合:
- try_handle_queue_full_wait
- log_skip_preemption_reason
- reset_to_first_room_after_all_reservations_done
- log_first_reservation_check
- process_reservation_multi_room_mode(多间模式)
- cleanup_expired_reservations_single_room(单间模式)
返回值约定:
- True:触发了早返回(队列满等待 / 所有预约完成重置),调用方应直接 return
- False:未触发早返回,调用方继续
douyin_fudai.py: 1319 → 1228 行 (-91)
fudai_detail_helpers.py: 2804 → 2890 行
douyin_fudai.py 跌破 1300 行(4121 → 1228,本会话累计削减 2893 行 = -70%)
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 12:41:27 +08:00
..
2025-12-28 14:47:31 +08:00
2026-05-21 11:43:44 +08:00
2026-05-22 08:01:51 +08:00
2026-05-22 12:41:27 +08:00
2026-05-22 07:59:24 +08:00
2026-05-22 08:04:31 +08:00
2026-01-02 23:57:03 +08:00
2026-05-21 00:23:14 +08:00
2025-12-28 14:47:31 +08:00
2025-12-28 14:47:31 +08:00
2026-01-08 20:37:49 +08:00
2025-12-29 20:48:09 +08:00