Переглянути джерело

Merge pull request #1084 from BluettDream/dev_fix_switch_soul

fix: switch soul
huangrunheng 1 рік тому
батько
коміт
43865834a7
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      tasks/Component/SwitchSoul/switch_soul.py

+ 2 - 1
tasks/Component/SwitchSoul/switch_soul.py

@@ -136,7 +136,8 @@ class SwitchSoul(BaseTask, SwitchSoulAssets):
                 continue
                 continue
             if not self.appear_then_click(target_team, interval=3):
             if not self.appear_then_click(target_team, interval=3):
                 logger.warning(f'Click team {team} failed in group {group}')
                 logger.warning(f'Click team {team} failed in group {group}')
-
+        # 兜底若还出现确认按钮则点击
+        self.ui_click_until_disappear(self.I_SOU_SWITCH_SURE)
         logger.info(f'Switch soul_one group {group} team {team}')
         logger.info(f'Switch soul_one group {group} team {team}')
 
 
     def switch_souls(self, target: tuple or list[tuple]) -> None:
     def switch_souls(self, target: tuple or list[tuple]) -> None: