Files
douyi_guaji_main/douyin/core/fudai_modules
CodexandClaude Opus 4.7 42ef73a9ee refactor(fudai): 抽 fudai_analyse.swipe 实现到 swipe_with_fallback
将 swipe 方法体(约 60 行)抽到 fudai_detail_helpers.swipe_with_fallback。
逻辑:
- 首选 operation.swipe
- 失败回退到 douyin_swipe_ops._adb_swipe_direct
- 最后兜底记录"swipe 失败"日志

类内 swipe 方法保留薄包装。

douyin_fudai.py: 1132 → 1078 行 (-54)
fudai_detail_helpers.py: 2975 → 3033 行

douyin_fudai.py 跌破 1100 行(4121 → 1078,本会话累计削减 3043 行 = -74%)

验证:
- pytest 1013 passed
- compile OK

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