Ver Fonte

fix(Nain): Extend the wait time for matching

ryland há 2 anos atrás
pai
commit
d93d1dc768
3 ficheiros alterados com 3 adições e 2 exclusões
  1. 1 0
      tasks/Nian/script_task.py
  2. 1 1
      tasks/Restart/login.py
  3. 1 1
      tasks/Restart/script_task.py

+ 1 - 0
tasks/Nian/script_task.py

@@ -97,6 +97,7 @@ class ScriptTask(GameUi, GeneralBattle, GeneralRoom, GeneralInvite, NianAssets):
                 self.click(self.C_CLIC_SAFE)
                 click_timer = None
                 self.device.stuck_record_clear()
+                self.device.stuck_record_add('LOGIN_CHECK')
                 continue
 
             if check_timer.reached():

+ 1 - 1
tasks/Restart/login.py

@@ -34,7 +34,7 @@ class LoginHandler(BaseTask, RestartAssets):
             self.screenshot()
 
             # 确认进入庭院
-            if self.appear_then_click(self.I_LOGIN_SCROOLL_CLOSE, interval=2):
+            if self.appear_then_click(self.I_LOGIN_SCROOLL_CLOSE, interval=2, threshold=0.85):
                 logger.info('Open scroll')
                 continue
             if self.appear(self.I_LOGIN_SCROOLL_OPEN, interval=0.2):

+ 1 - 1
tasks/Restart/script_task.py

@@ -53,7 +53,7 @@ if __name__ == '__main__':
     config = Config('oas2')
     device = Device(config)
     task = ScriptTask(config, device)
-    task.app_start()
+    task.app_restart()