Skip to content

Commit

Permalink
超时匹配房主再点击匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
cndaqiang committed Nov 4, 2024
1 parent f2c9703 commit 95fda1d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions wzry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,12 +1053,14 @@ def 进行人机匹配(self, times=0):
while True:
if self.Tool.存在同步文件():
return True
if self.Tool.timelimit(timekey="超时确认匹配", limit=60*7, init=False):
if self.Tool.timelimit(timekey="超时确认匹配", limit=60*8, init=False):
return self.创建同步文件("超时太久,退出匹配")
# 每隔3分钟,点击一次确定/取消匹配按钮
if self.Tool.timelimit(timekey="未检测到确认匹配", limit=60*3, init=False):
TimeErr("没有找到确定匹配,再次点击")
self.Tool.touch_record_pos(房间中的开始按钮.record_pos, self.移动端.resolution, "房间中的开始匹配按钮")
TimeECHO("没有找到确定匹配/3min")
if self.房主:
TimeECHO("再次点击确定匹配/3min")
self.Tool.touch_record_pos(房间中的开始按钮.record_pos, self.移动端.resolution, "房间中的开始匹配按钮")
#
自己确定匹配 = self.Tool.existsTHENtouch(self.图片.确定匹配按钮, "确定匹配按钮")
自己曾经确定过匹配 = 自己曾经确定过匹配 or 自己确定匹配
Expand Down

0 comments on commit 95fda1d

Please sign in to comment.