Files
douyi_guaji_main/douyin/core
CodexandClaude Opus 4.7 df8942e7b8 refactor(fudai): 抽 _handle_in_fudai_detail 步骤1/2 分发到 step1_or_step2_dispatcher
将"is_second_open True/False 分发"块(约 44 行)整段抽到 helper:
- True:检查保存的详情,有效则直接参与;无则 reread_fudai_detail_fallback 兜底
- False:调用 handle_first_open_step2 完整流程

返回 (detail, skip, skip_reason) 或 None(已早返回)。

douyin_fudai.py: 809 → 775 行 (-34)
fudai_detail_helpers.py: 3174 → 3213 行

douyin_fudai.py 跌破 800 行(4121 → 775,本会话累计削减 3346 行 = -81%)
_handle_in_fudai_detail 从 131 → 96 行

验证:
- pytest 1013 passed
- compile OK

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