|
@@ -1163,6 +1163,29 @@ class task_get_redPackage(dongri_task):
|
|
|
waitClickImg_noWait_withBool((special_activity_img.red_package, special_activity_img.red_package2, special_activity_img.msg_new, special_activity_img.red_package_open), 2, 0)
|
|
|
|
|
|
return True
|
|
|
+
|
|
|
+class task_read_mails(dongri_task):
|
|
|
+ def __init__(self):
|
|
|
+ super().__init__(f"读邮件")
|
|
|
+ def run(self):
|
|
|
+ basic_operate.go_town()
|
|
|
+ if waitClickImg_noWait_withBool(check_img.mail_btn, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ waitClickImg_noWait_withBool(check_img.mail_collect, 2, 1)
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(check_img.mail_union, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ if waitClickImg_noWait_withBool(check_img.mail_read, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ if waitClickImg_noWait_withBool(check_img.mail_system, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ if waitClickImg_noWait_withBool(check_img.mail_read, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ if waitClickImg_noWait_withBool(check_img.mail_reports, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ if waitClickImg_noWait_withBool(check_img.mail_read, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ return True
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
@@ -1195,4 +1218,5 @@ if __name__ == '__main__':
|
|
|
#task_returnAllLine().run()
|
|
|
#task_paticipateInTeam().run()
|
|
|
#task_fight_jina(True).run()
|
|
|
- task_get_redPackage().run()
|
|
|
+ #task_get_redPackage().run()
|
|
|
+ task_read_mails().run()
|