Skip to content

Commit

Permalink
修复唤醒 双弹窗不点击的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 6, 2024
1 parent 7e33865 commit 1ff7055
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions task/NewManXunTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,14 +446,12 @@ def try_handle_laohen_choices(self, huanxing, boxes):
self.log_debug(f'烙痕唤醒 黑名单 {black}')
else:
target = huanxing[0]
if target.x < self.width_of_screen(0.5):
self.log_info('点击右边唤醒')
self.click_relative(0.27, 0.71)
else:
self.click_relative(0.75, 0.71)
self.log_info('点击左边唤醒')
if target.x < self.width_of_screen(0.5):
self.log_info('点击右边唤醒')
self.click_relative(0.27, 0.71)
else:
self.click_relative(0.5, 0.71)
self.click_relative(0.75, 0.71)
self.log_info('点击左边唤醒')

def do_find_choices(self):
choices = self.ocr(box=self.choice_zone)
Expand Down

0 comments on commit 1ff7055

Please sign in to comment.