mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Fix: Increase retry interval in commission start for slow device
This commit is contained in:
@@ -489,7 +489,7 @@ class RewardCommission(UI, InfoHandler):
|
||||
comm (Commission):
|
||||
"""
|
||||
logger.info(f'Start commission {comm}')
|
||||
comm_timer = Timer(3)
|
||||
comm_timer = Timer(10)
|
||||
while 1:
|
||||
if comm_timer.reached():
|
||||
self.device.click(comm.button)
|
||||
@@ -498,10 +498,10 @@ class RewardCommission(UI, InfoHandler):
|
||||
if self.handle_popup_confirm():
|
||||
comm_timer.reset()
|
||||
pass
|
||||
if self.appear_then_click(COMMISSION_START, interval=3):
|
||||
if self.appear_then_click(COMMISSION_ADVICE, interval=3):
|
||||
comm_timer.reset()
|
||||
pass
|
||||
if self.appear_then_click(COMMISSION_ADVICE, interval=3):
|
||||
if self.appear_then_click(COMMISSION_START, interval=3):
|
||||
comm_timer.reset()
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user