
CodexandClaude Opus 4.7
8d426676f6
refactor(fudai): 抽 attend_choujiang 中"粉丝团门槛"分支到 fudai_attend_fansclub
将 attend_choujiang 中"加入粉丝团/粉丝团"分支整段(1054 行)抽到
douyin/fudai/core/fudai_attend_fansclub.py:handle_fansclub_required。
逻辑:
- 保存 debug 截图(标注 OCR 区域)
- 第一步:点击参与按钮(OCR 区域中心 543, 2070)
- 第二步:OCR 识别"加入粉丝团"按钮位置并点击
- 第三步:关闭详情页
- 包含 OCR 重试、坐标缩放、自救恢复等深嵌套逻辑
主文件中保留 elif 分支头 + 7 行调用 helper。
fudai_attend.py: 1295 → 246 行 (-1049)
新增 fudai_attend_fansclub.py: 1075 行
attend_choujiang 函数从 1281 行跌到约 230 行。
fudai_attend.py 是本会话削减幅度最大的文件之一(1629 → 246,-85%)。
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 12:45:11 +08:00
..
2026-05-21 17:23:02 +08:00
2026-05-21 16:47:45 +08:00
2025-12-30 23:11:34 +08:00
2026-01-25 16:58:15 +08:00
2026-05-22 10:49:21 +08:00
2026-05-22 12:45:11 +08:00
2026-05-22 12:45:11 +08:00
2026-05-21 12:01:16 +08:00
2026-05-21 08:46:11 +08:00
2026-05-21 08:46:11 +08:00
2026-05-21 17:23:02 +08:00
2026-05-21 08:46:11 +08:00
2026-05-21 08:46:11 +08:00
2026-05-21 08:46:11 +08:00
2026-05-21 16:47:45 +08:00
2026-01-04 09:43:57 +08:00
2026-01-02 02:17:33 +08:00