From 28e930de65bd2e21232a77001f5deb779efaa190 Mon Sep 17 00:00:00 2001 From: "firedcto@gmail.com" Date: Tue, 15 Oct 2024 10:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=8A=A8=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=B8=B8=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/task/AutoLoginTask.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/task/AutoLoginTask.py b/src/task/AutoLoginTask.py index bad5027..4dc939f 100644 --- a/src/task/AutoLoginTask.py +++ b/src/task/AutoLoginTask.py @@ -26,10 +26,12 @@ class AutoLoginTask(BaseWWTask, TriggerTask): elif self.find_one('login_account', threshold=0.7): self.wait_until(lambda: self.find_one('login_account', threshold=0.7) is None, pre_action=lambda: self.click_relative(0.5, 0.9), - wait_until_check_delay=3, time_out=20) + wait_until_check_delay=3, time_out=30) self.wait_until(lambda: self.find_one('monthly_card', threshold=0.7) or self.in_team_and_world(), pre_action=lambda: self.click_relative(0.5, 0.9), - wait_until_check_delay=3, time_out=60) - self.click_relative(0.5, 0.9) + wait_until_check_delay=3, time_out=120) + self.wait_until(lambda: self.in_team_and_world(), + post_action=lambda: self.click_relative(0.5, 0.9), + wait_until_check_delay=3, time_out=5) self.log_info('Auto Login Success', notify=True) self._logged_in = True