解决锁的问题
This commit is contained in:
@@ -223,11 +223,10 @@ class ScriptManager():
|
||||
LogManager.method_error("找不到首页按钮。出错了", "养号", udid)
|
||||
|
||||
if isComment and random.random() > 0.70:
|
||||
print("点击进行评论")
|
||||
self.comment_flow(filePath, session, udid, recomend_cx, recomend_cy)
|
||||
event.wait(timeout=2)
|
||||
|
||||
print("123456", session.source())
|
||||
|
||||
home = AiUtils.findHomeButton(session)
|
||||
if not home:
|
||||
raise Exception("没有找到首页按钮,重置")
|
||||
@@ -539,6 +538,7 @@ class ScriptManager():
|
||||
LogManager.method_info(f"输入主播id:{aid or '暂无数据'}", "关注打招呼", udid)
|
||||
input.set_text(f"{aid or '暂无数据'}\n")
|
||||
|
||||
|
||||
# 定位 "关注" 按钮 通过关注按钮的位置点击主播首页
|
||||
|
||||
session.appium_settings({"snapshotMaxDepth": 25})
|
||||
@@ -621,6 +621,8 @@ class ScriptManager():
|
||||
event.wait(timeout=1)
|
||||
LogManager.method_info("停止脚本成功", method="task")
|
||||
|
||||
|
||||
|
||||
# 使用OCR进行评论
|
||||
if isComment:
|
||||
self.comment_flow(filePath, session, udid, 100, 100)
|
||||
@@ -665,6 +667,8 @@ class ScriptManager():
|
||||
msgButton = AiUtils.getSendMesageButton(session)
|
||||
event.wait(timeout=2)
|
||||
|
||||
|
||||
|
||||
if msgButton.exists:
|
||||
# 进入聊天页面
|
||||
msgButton.click()
|
||||
|
||||
Reference in New Issue
Block a user