Просмотр исходного кода

fix(Secret): Exit the task correctly if it has completed

ryland 10 месяцев назад
Родитель
Сommit
74c1999a89
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      tasks/Secret/script_task.py

+ 2 - 0
tasks/Secret/script_task.py

@@ -82,10 +82,12 @@ class ScriptTask(GameUi, GeneralBattle, SwitchSoul, SecretAssets):
             if not layer:
                 if self.appear(WeeklyTriflesAssets.I_WT_SE_SHARE):
                     logger.warning('You have completed the weekly trifles, skip')
+                    self.ui_click(self.I_UI_BACK_BLUE, stop=self.I_UI_BACK_YELLOW)
                     break
                 text = self.O_SE_TOTAL_TIME.ocr_single(self.device.image)
                 if '尚未' not in text:
                     logger.warning('You have completed the weekly trifles, skip')
+                    self.ui_click(self.I_UI_BACK_BLUE, stop=self.I_UI_BACK_YELLOW)
                     break
                 continue
             if layer >= 6: