فهرست منبع

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

Ref: https://github.com/runhey/OnmyojiAutoScript/pull/1886#issuecomment-6081045918
allesgutefy 1 ماه پیش
والد
کامیت
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: