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

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

Ref: https://github.com/runhey/OnmyojiAutoScript/pull/1886#issuecomment-6081045918
allesgutefy 1 месяц назад
Родитель
Сommit
e930e2e1f7
1 измененных файлов с 1 добавлено и 2 удалено
  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()
                     if self.appear(self.I_I_DEFAULT):
                         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
         # 点击确认
         while 1: