Explorar o código

fix(Component): SwitchSoul #494

ryland %!s(int64=2) %!d(string=hai) anos
pai
achega
aee10fa9d4
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      tasks/Component/SwitchSoul/switch_soul.py

+ 3 - 3
tasks/Component/SwitchSoul/switch_soul.py

@@ -253,11 +253,11 @@ class SwitchSoul(BaseTask, SwitchSoulAssets):
         for i in range(5):
         for i in range(5):
             sleep(0.8)
             sleep(0.8)
             self.screenshot()
             self.screenshot()
-            self.O_SS_TEAM_NAME.keyword = teamName
-            if self.ocr_appear_click_by_rule(self.O_SS_TEAM_NAME, self.I_SOU_CLICK_PRESENT, interval=1):
-                continue
             if self.appear_then_click(self.I_SOU_SWITCH_SURE, interval=1):
             if self.appear_then_click(self.I_SOU_SWITCH_SURE, interval=1):
                 break
                 break
+            self.O_SS_TEAM_NAME.keyword = teamName
+            if self.ocr_appear_click_by_rule(self.O_SS_TEAM_NAME, self.I_SOU_CLICK_PRESENT, interval=1.5):
+                continue
         logger.info(f'Switch soul_one group {groupName} team {teamName}')
         logger.info(f'Switch soul_one group {groupName} team {teamName}')
 
 
     def ocr_appear_click_by_rule(self,
     def ocr_appear_click_by_rule(self,