|
@@ -1152,12 +1152,20 @@ class task_fight_enemy(dongri_task):
|
|
|
return True
|
|
|
|
|
|
|
|
|
+class task_get_redPackage(dongri_task):
|
|
|
+ def __init__(self):
|
|
|
+ super().__init__(f"领取红包")
|
|
|
+ def run(self):
|
|
|
+ basic_operate.go_outside()
|
|
|
+ if waitClickImg_noWait_withBool((check_img.talk_in,check_img.talk_in2, check_img.talk_in3), 2, 1) == False:
|
|
|
+ return False
|
|
|
+ oldTime = time.time()
|
|
|
+ while True:
|
|
|
+ if time.time() - oldTime > 150:
|
|
|
+ break
|
|
|
+ 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
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
@@ -1188,5 +1196,6 @@ if __name__ == '__main__':
|
|
|
#task_collect(3).run()
|
|
|
#task_collect(4).run()
|
|
|
#task_returnAllLine().run()
|
|
|
- task_paticipateInTeam().run()
|
|
|
- #task_fight_jina(True).run()
|
|
|
+ #task_paticipateInTeam().run()
|
|
|
+ #task_fight_jina(True).run()
|
|
|
+ task_get_redPackage().run()
|