ChengRanORZ 1 year ago
parent
commit
39b0569de8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tasks/Restart/login.py

+ 3 - 2
tasks/Restart/login.py

@@ -1,6 +1,7 @@
 # This Python file uses the following encoding: utf-8
 # This Python file uses the following encoding: utf-8
 # @author runhey
 # @author runhey
 # github https://github.com/runhey
 # github https://github.com/runhey
+from scipy.special import three
 
 
 from module.base.timer import Timer
 from module.base.timer import Timer
 from module.exception import RequestHumanTakeover, GameTooManyClickError, GameStuckError
 from module.exception import RequestHumanTakeover, GameTooManyClickError, GameStuckError
@@ -239,12 +240,12 @@ class LoginHandler(BaseTask, RestartAssets):
                     self.click(self.I_HARVEST_MAIL_CONFIRM, interval=2)
                     self.click(self.I_HARVEST_MAIL_CONFIRM, interval=2)
                     timer_harvest.reset()
                     timer_harvest.reset()
                     continue
                     continue
-                if self.appear(self.I_HARVEST_MAIL_ALL):
+                if self.appear(self.I_HARVEST_MAIL_ALL, threshold=0.9):
                     self.click(self.I_HARVEST_MAIL_ALL, interval=2)
                     self.click(self.I_HARVEST_MAIL_ALL, interval=2)
                     self.wait_until_appear(self.I_HARVEST_MAIL_CONFIRM, wait_time=1)
                     self.wait_until_appear(self.I_HARVEST_MAIL_CONFIRM, wait_time=1)
                     timer_harvest.reset()
                     timer_harvest.reset()
                     continue
                     continue
-                if self.appear(self.I_HARVEST_MAIL_OPEN):
+                if self.appear(self.I_HARVEST_MAIL_OPEN, threshold=0.9):
                     self.click(self.I_HARVEST_MAIL_OPEN, interval=0.8)
                     self.click(self.I_HARVEST_MAIL_OPEN, interval=0.8)
                     timer_harvest.reset()
                     timer_harvest.reset()
                     continue
                     continue