Files
douyi_guaji_main/douyin/core
CodexandClaude Opus 4.7 2f21b2a0b4 refactor(fudai): 抽 _maybe_run_yanghao_during_run 实现到 maybe_run_yanghao_during_run
将"按间隔触发推荐页养号"逻辑(约 56 行)抽到 fudai_detail_helpers.maybe_run_yanghao_during_run。
跳过条件:interval <= 0 / 等待开奖 / 参与预约 / 有预约队列 /
预约焦点期内 / 距上次触发不足 interval。

类内方法保留薄包装。

douyin_fudai.py: 999 → 949 行 (-50)
fudai_detail_helpers.py: 3033 → 3094 行

douyin_fudai.py 跌破 950 行(4121 → 949,本会话累计削减 3172 行 = -77%)

验证:
- pytest 1013 passed
- compile OK

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