mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-25 17:08:13 +08:00
Fix: handle mail reward in mail_delete (#4707)
due to slow network causing get_items slow to appear
This commit is contained in:
@@ -79,6 +79,8 @@ class MailWhite(UI):
|
|||||||
continue
|
continue
|
||||||
if self.ui_main_appear_then_click(page_mail, offset=(30, 30), interval=3):
|
if self.ui_main_appear_then_click(page_mail, offset=(30, 30), interval=3):
|
||||||
continue
|
continue
|
||||||
|
if self._handle_mail_reward():
|
||||||
|
continue
|
||||||
|
|
||||||
def _mail_quit(self, skip_first_screenshot=True):
|
def _mail_quit(self, skip_first_screenshot=True):
|
||||||
"""
|
"""
|
||||||
@@ -197,6 +199,8 @@ class MailWhite(UI):
|
|||||||
if self.handle_popup_confirm('MAIL_CLAIM'):
|
if self.handle_popup_confirm('MAIL_CLAIM'):
|
||||||
deleted = True
|
deleted = True
|
||||||
continue
|
continue
|
||||||
|
if self._handle_mail_reward():
|
||||||
|
continue
|
||||||
|
|
||||||
# info_bar appears if mail success to delete and no mail deleted
|
# info_bar appears if mail success to delete and no mail deleted
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user