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