This commit is contained in:
Your Name committed 2026-01-25 15:35:19 +08:00
commit f97c83f6f0
1 file changed
+31 -12
+31 -12
View File
@@ -1977,25 +1977,44 @@ class fudai_analyse:
if just_recorded:
self._just_recorded_reservation = False # 清除标志
try:
needswitch = bool(getattr(self, "needswitch", True))
self._log_kv(
"预约",
"[预约] 刚刚记录预约,继续在新直播间搜索福袋",
)
except Exception:
needswitch = True
if needswitch:
pass
try:
needswitch_cfg = bool(getattr(self, "needswitch", True))
except Exception:
needswitch_cfg = True
if needswitch_cfg:
try:
self.swipe_up_to_next_live()
except Exception as exc:
try:
self._log_kv(
"预约",
"[预约] 执行上滑切换失败",
error=str(exc),
error_type=type(exc).__name__,
)
except Exception:
pass
else:
try:
self._log_kv(
"预约",
"[预约] 刚刚记录预约,强制切换直播间避免循环",
"[预约] just_recorded_reservation 触发,但 needswitch=False,未切换",
)
except Exception:
pass
self.swipe_up_to_next_live()
elapsed = time.time() - start_time
self._log_kv(
"流程",
"run_once_basic完成(强制切换直播间)",
elapsed_seconds=round(elapsed, 2),
)
return
elapsed = time.time() - start_time
self._log_kv(
"流程",
"run_once_basic完成(记录预约后切换直播间)",
elapsed_seconds=round(elapsed, 2),
)
return
except Exception:
pass