fix(fudai/reservation): 修 3 处拆模块遗留 NameError
- douyin_fudai_core.py: get_fudai_contain 引用 TASK_LIST / PARTICIPATE_BUTTON 但只导入了 LIVE_ROOM_TITLE,运行时必触发 NameError - douyin_reservation_verify.py: match_reservation 末尾日志引用 current_title,但该变量仅在 if expected_title 块内赋值, expected_title 为空时 NameError(被 try/except 吞掉但丢失日志) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
470c68a252
commit
6f38907119
2 files changed
+3
-1
No files matched your search
@@ -158,7 +158,7 @@ def get_fudai_contain(analyser, renwu: int = 2) -> Tuple[str, str, int, int, flo
|
||||
return run_heavy_ocr(analyser, fields)
|
||||
|
||||
# 切割直播间标题图片(用于并行 OCR)
|
||||
from douyin.fudai.core.coords import LIVE_ROOM_TITLE
|
||||
from douyin.fudai.core.coords import LIVE_ROOM_TITLE, PARTICIPATE_BUTTON, TASK_LIST
|
||||
analyser.cut_pic(*LIVE_ROOM_TITLE, "", "live_room_title_mid", analyser.y_pianyi)
|
||||
|
||||
# 切割内容/倒计时/价值(按 renwu 选 countdown_box)
|
||||
|
||||
@@ -380,6 +380,8 @@ def validate_back_to_reservation(
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
current_title = ""
|
||||
current_title_raw = ""
|
||||
if expected_title:
|
||||
try:
|
||||
# 回退校验时强制重新识别直播间标题,避免复用切换前的旧截图
|
||||
|
||||
Reference in new issue
Block a user