Explorar el Código

fix: use interval=3 instead of sleep(0.8) per developer suggestion

Ref: https://github.com/runhey/OnmyojiAutoScript/pull/1886#issuecomment-6081045918
allesgutefy hace 1 mes
padre
commit
e930e2e1f7
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      tasks/Component/GeneralInvite/general_invite.py

+ 1 - 2
tasks/Component/GeneralInvite/general_invite.py

@@ -542,8 +542,7 @@ class GeneralInvite(BaseTask, GeneralInviteAssets):
                     self.screenshot()
                     self.screenshot()
                     if self.appear(self.I_I_DEFAULT):
                     if self.appear(self.I_I_DEFAULT):
                         break
                         break
-                    if self.appear_then_click(self.I_I_NO_DEFAULT, interval=1):
-                        sleep(0.8)
+                    if self.appear_then_click(self.I_I_NO_DEFAULT, interval=3):
                         continue
                         continue
         # 点击确认
         # 点击确认
         while 1:
         while 1: