基本完成

This commit is contained in:
2026-08-25 23:30:05 +08:00
parent 20936d109f
commit 243359b1af
8 changed files with 434 additions and 27 deletions
+11 -6
View File
@@ -34,7 +34,7 @@ def main():
if not info.get("ok"):
log("无目标期望,退出")
return
s.click_at(info["x"], info["y"])
s.human_click(info["x"], info["y"])
time.sleep(2)
# 被动监听第一页薪资
reqs: dict[str, str] = {}
@@ -78,15 +78,20 @@ def main():
log("3) 卡片坐标:", pos)
if pos:
q = json.loads(pos)
s.click_at(q["x"], q["y"])
s.human_click(q["x"], q["y"])
time.sleep(1.5)
# 4) 可信点击立即沟通
xy = s.eval_js(_btn_xy_js(".op-btn-chat"))
# 4) 等面板加载,拟人点击立即沟通(重试)
xy = None
for _ in range(5):
xy = s.eval_js(_btn_xy_js(".op-btn-chat"))
if xy:
break
time.sleep(1)
log("4) 立即沟通坐标:", xy)
if xy:
p = json.loads(xy)
s.click_at(p["x"], p["y"])
s.human_click(p["x"], p["y"])
# 5) 等弹窗点留在此页
ok = False
@@ -95,7 +100,7 @@ def main():
stay = s.eval_js(_STAY_JS)
if stay:
q = json.loads(stay)
s.click_at(q["x"], q["y"])
s.human_click(q["x"], q["y"])
ok = True
log("5) 已点留在此页,投递完成")
break