Files
douyi_guaji_main/tests
CodexandClaude Opus 4.7 4cb5daa79e refactor(stage): 拆出抽奖结果弹窗 + 购物红包弹窗 OCR 检测(1284→1204,-80 行)
把 douyin_stage 中两个独立的"像素初筛 + OCR 二次确认"块抽到 douyin_stage_helpers:
- detect_lottery_result_popup:优先级1,抽奖结果弹窗(FUDai_RESULT)
- detect_shopping_redpacket_popup:优先级1.5,购物红包弹窗(SHOPPING_REDPACKET_POPUP)

两者都返回 (matched, stage, reason),命中时主流程直接 return。

新增 6 个单元测试,1273 → 1279 用例全过。

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