Преглед изворни кода

Merge pull request #868 from ohspecial/fix

fix(Secret):修复OCR识别错误后的退出逻辑
huangrunheng пре 1 година
родитељ
комит
c672652384
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')
                     break
                 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')
                     break
                 continue