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

fix: Appear special pop-ups when goto daily

runhey 3 лет назад
Родитель
Сommit
16f6a5dcc9

+ 1 - 0
tasks/GameUi/game_ui.py

@@ -261,6 +261,7 @@ class GameUi(BaseTask, GameUiAssets):
             if self.ocr_appear_click(self.O_CLICK_CLOSE_2, interval=1):
                 continue
         logger.info('Page arrive: Daily')
+        time.sleep(1)
         return
 
 

BIN
tasks/GameUi/page/page_main_goto_daily.png


+ 1 - 1
tasks/TalismanPass/script_task.py

@@ -52,5 +52,5 @@ if __name__ == '__main__':
     t = ScriptTask(c, d)
     t.screenshot()
 
-    t.get_all()
+    t.run()
 

+ 2 - 1
tasks/base_task.py

@@ -452,10 +452,11 @@ class BaseTask(GlobalGameAssets):
             self.screenshot()
 
             if self.ui_reward_appear_click():
+                sleep(0.5)
                 while 1:
                     self.screenshot()
                     # 等待动画结束
-                    if not self.appear(self.I_UI_REWARD, threshold=0.7):
+                    if not self.appear(self.I_UI_REWARD, threshold=0.6):
                         logger.info('Get reward success')
                         break