fix:公招时间选择错误
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful

This commit is contained in:
EightyDollars 2024-10-27 17:59:48 +08:00
parent dc02c9bcf9
commit 7c9a095fb0

View file

@ -249,12 +249,20 @@ class RecruitSolver(SceneGraphSolver):
self.get_recruit_time("minute"), self.get_recruit_time("minute"),
] ]
if now_time[1] != recruit_time[1]: if now_time != recruit_time:
self.choose_time(now_time[1], recruit_time[1], mode="minute") if recruit_time == [9, 0]:
return pos = self.get_pos(self.find("one_hour"), 0.2, 0.8)
self.ctap(pos)
elif recruit_time == [3, 50]:
[self.tap_element("one_hour", 0.2, 0.2, 0.1) for _ in range(3)]
[self.tap_element("one_hour", 0.5, 0.8, 0.1) for _ in range(1)]
self.sleep(1)
if now_time[0] != recruit_time[0]: if now_time not in [[9, 0], [3, 50], [1, 0]]:
self.choose_time(now_time[0], recruit_time[0], mode="hour") # 可能按错了,回到公招主界面重开
del self.tags[self.recruit_index]
del self.agent_choose[self.recruit_index]
self.scene_graph_step(Scene.RECRUIT_MAIN)
return return
# # start recruit # # start recruit