ソースを参照

fix(Secret):修复OCR识别错误后的退出逻辑

ohspecial 1 年間 前
親
コミット
bb361cdd10
1 ファイル変更、1 行追加、1 行削除
  1. 1 1
      tasks/Secret/script_task.py

+ 1 - 1
tasks/Secret/script_task.py

@@ -84,7 +84,7 @@ class ScriptTask(GameUi, GeneralBattle, SwitchSoul, SecretAssets):
                     logger.warning('You have completed the weekly trifles, skip')
                     logger.warning('You have completed the weekly trifles, skip')
                     break
                     break
                 text = self.O_SE_TOTAL_TIME.ocr_single(self.device.image)
                 text = self.O_SE_TOTAL_TIME.ocr_single(self.device.image)
-                if '总耗时' in text:
+                if '尚未' not in text:
                     logger.warning('You have completed the weekly trifles, skip')
                     logger.warning('You have completed the weekly trifles, skip')
                     break
                     break
                 continue
                 continue