mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-23 09:01:45 +00:00
Fix: 修复登录
This commit is contained in:
parent
ccc4a889ca
commit
4e58edadbd
@ -9,7 +9,7 @@ class LoginHandler(Combat):
|
||||
def handle_app_login(self):
|
||||
logger.hr('App login')
|
||||
|
||||
confirm_timer = Timer(2)
|
||||
confirm_timer = Timer(1)
|
||||
while 1:
|
||||
self.device.screenshot()
|
||||
|
||||
@ -30,11 +30,11 @@ class LoginHandler(Combat):
|
||||
if self.info_bar_count() and self.appear_then_click(LOGIN_CHECK, interval=0.5):
|
||||
logger.info('Login success')
|
||||
if self.appear(MAIN_CHECK):
|
||||
confirm_timer.start()
|
||||
|
||||
if confirm_timer.started() and confirm_timer.reached():
|
||||
logger.info('Login to main confirm')
|
||||
break
|
||||
if confirm_timer.reached():
|
||||
logger.info('Login to main confirm')
|
||||
break
|
||||
else:
|
||||
confirm_timer.reset()
|
||||
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user