Skip to content

Commit

Permalink
修复收菜签到卡住
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jun 13, 2024
1 parent 038884f commit 687e71c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions task/BJTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ def check_until_main(self):
self.log_debug(f'found main_screen_feature {main}')
self.click_relative(0.4, 0.05)
self.sleep(2)
self.click_to_continue()
self.sleep(3) # wait for animation
self.wait_ocr(box=self.main_menu_zone, match=re.compile(r"完成"))
return True
if self.ocr(box=self.main_menu_zone, match=re.compile(r"外勤作战")):
return True
start = self.find_one('start_screen_feature',
threshold=0.9, use_gray_scale=True)
self.log_debug(f'found start feature {start}')
Expand Down

0 comments on commit 687e71c

Please sign in to comment.