diff --git a/tasks/reward/quest.py b/tasks/reward/quest.py index ee0c65f3..4aa202ce 100644 --- a/tasks/reward/quest.py +++ b/tasks/reward/quest.py @@ -14,7 +14,7 @@ def get_reward(): while auto.click_element("./assets/images/quest/receive.png", "image", 0.9, crop=(265.0 / 1920, 394.0 / 1080, 1400.0 / 1920, 504.0 / 1080)): time.sleep(0.5) # 领取奖励 - if auto.click_element("./assets/images/quest/gift.png", "image", 0.9, crop=(415.0 / 1920, 270.0 / 1080, 1252.0 / 1920, 114.0 / 1080)): + if auto.click_element("./assets/images/quest/gift.png", "image", 0.9, max_retries=10, crop=(415.0 / 1920, 270.0 / 1080, 1252.0 / 1920, 114.0 / 1080)): auto.click_element("./assets/images/base/click_close.png", "image", 0.9, max_retries=10) auto.find_element("./assets/images/screen/guide/guide2.png", "image", 0.9, max_retries=10) # 判断完成 diff --git a/tasks/reward/reward.py b/tasks/reward/reward.py index 9f82729e..4a53660c 100644 --- a/tasks/reward/reward.py +++ b/tasks/reward/reward.py @@ -18,8 +18,8 @@ def start(): reward_list = [] reward_mapping = { - "mail": lambda: auto.find_element("./assets/images/menu/mail_reward.png", "image", 0.95, take_screenshot=False, crop=(0.95, 0.1, 0.05, 0.6)), - "assist": lambda: auto.find_element("./assets/images/menu/assist_reward.png", "image", 0.95, take_screenshot=False), + "mail": lambda: auto.find_element("./assets/images/menu/mail_reward.png", "image", 0.9, take_screenshot=False, crop=(0.95, 0.1, 0.05, 0.6)), + "assist": lambda: auto.find_element("./assets/images/menu/assist_reward.png", "image", 0.9, take_screenshot=False), "dispatch": lambda: auto.find_element("./assets/images/menu/dispatch_reward.png", "image", 0.95, take_screenshot=False), "quest": lambda: auto.find_element("./assets/images/menu/quest_reward.png", "image", 0.95, take_screenshot=False), "srpass": lambda: auto.find_element("./assets/images/menu/pass_reward.png", "image", 0.95, take_screenshot=False),