Skip to content

Commit

Permalink
Merge pull request #54 from li-zheng-hao/master
Browse files Browse the repository at this point in the history
修复问题
  • Loading branch information
AcademicDog authored Mar 8, 2020
2 parents e02dfc3 + 019de83 commit 857c79f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions explore/explore_leader.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def start(self):
self.log.info('结束本轮探索')
# 点击退出探索
self.click_until('退出按钮', 'img/QUE-REN.png',
*TansuoPos.quit_btn, 2)
*TansuoPos.quit_btn, 1)
# 点击确认
self.click_until('确认按钮', 'img/QUE-REN.png',
*TansuoPos.confirm_btn, 2, False)
*TansuoPos.confirm_btn, 1, False)

# 等待司机退出1s
if self.delay:
Expand Down
4 changes: 2 additions & 2 deletions explore/explore_passenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def start(self):
self.check_exp_full()

# 点击准备,直到进入战斗
self.click_until_knn('准备按钮', 'img/ZI-DONG.png', *
TansuoPos.ready_btn, mood.get1mood()/1000, False, 30)
self.click_until('准备按钮', 'img/ZI-DONG.png', *
TansuoPos.ready_btn, mood.get1mood()/1000, True)

# 检测是否打完
state = self.check_end()
Expand Down
4 changes: 2 additions & 2 deletions gameLib/game_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ def switch_to_scene(self, scene):
if scene == 3:
# 点击退出探索
self.click_until_multi('退出按钮', 'img/QUE-REN.png', 'img/TAN-SUO.png',
pos=TansuoPos.quit_btn[0], pos_end=TansuoPos.quit_btn[1], step_time=2)
pos=TansuoPos.quit_btn[0], pos_end=TansuoPos.quit_btn[1], step_time=0.5)

# 点击确认
self.click_until('确认按钮', 'img\\QUE-REN.png',
*TansuoPos.confirm_btn, 2, False)
*TansuoPos.confirm_btn, 1, False)
# 递归
self.switch_to_scene(scene)

Expand Down

0 comments on commit 857c79f

Please sign in to comment.