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>
This commit is contained in:
1 parent
f5b603e39e
commit
8d426676f6
2 files changed
+1078
-1052