mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-25 20:35:03 +08:00
Fix: Check LOGIN_CONFIRM before GET_SHIP (fixed #1152)
This commit is contained in:
@@ -40,6 +40,18 @@ class LoginHandler(Combat):
|
|||||||
self.device.get_orientation()
|
self.device.get_orientation()
|
||||||
orientation_timer.reset()
|
orientation_timer.reset()
|
||||||
|
|
||||||
|
if self.appear_then_click(LOGIN_CHECK, interval=5):
|
||||||
|
if not login_success:
|
||||||
|
logger.info('Login success')
|
||||||
|
login_success = True
|
||||||
|
|
||||||
|
if self.appear(MAIN_CHECK):
|
||||||
|
if confirm_timer.reached():
|
||||||
|
logger.info('Login to main confirm')
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
confirm_timer.reset()
|
||||||
|
|
||||||
if self.handle_get_items():
|
if self.handle_get_items():
|
||||||
continue
|
continue
|
||||||
if self.handle_get_ship():
|
if self.handle_get_ship():
|
||||||
@@ -69,18 +81,6 @@ class LoginHandler(Combat):
|
|||||||
if self.appear_then_click(GOTO_MAIN, offset=(30, 30), interval=5):
|
if self.appear_then_click(GOTO_MAIN, offset=(30, 30), interval=5):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.appear_then_click(LOGIN_CHECK, interval=5):
|
|
||||||
if not login_success:
|
|
||||||
logger.info('Login success')
|
|
||||||
login_success = True
|
|
||||||
|
|
||||||
if self.appear(MAIN_CHECK):
|
|
||||||
if confirm_timer.reached():
|
|
||||||
logger.info('Login to main confirm')
|
|
||||||
break
|
|
||||||
else:
|
|
||||||
confirm_timer.reset()
|
|
||||||
|
|
||||||
self.config.start_time = datetime.now()
|
self.config.start_time = datetime.now()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user