20250904-初步功能已完成

This commit is contained in:
2025-09-04 19:35:36 +08:00
parent b514b7c329
commit 4e705b51f1
9 changed files with 142 additions and 98 deletions

View File

@@ -417,6 +417,7 @@ class ScriptManager():
LogManager.method_info("视频看完了,重置试图查询深度", "关注打招呼", udid)
session.appium_settings({"snapshotMaxDepth": 25})
time.sleep(0.5)
# 向上滑动
session.swipe_down()
@@ -485,18 +486,18 @@ class ScriptManager():
print("即将要回复消息")
LogManager.method_info("即将要回复消息", "关注打招呼", udid)
if needReply:
print("如果需要回复主播消息。走此逻辑")
print("----------------------------------------------------------")
# if AiUtils.getUnReadMsgCount(session) > 0:
print("监控回复消息")
# 执行回复消息逻辑
self.monitorMessages(session, udid)
homeButton = AiUtils.findHomeButton(udid)
if homeButton.exists:
homeButton.click()
@@ -508,19 +509,13 @@ class ScriptManager():
time.sleep(3)
print("重新创建wda会话 防止wda会话失效")
client = wda.USBClient(udid)
session = client.session()
# 执行完成之后。继续点击搜索
session.appium_settings({"snapshotMaxDepth": 15})
# 点击搜索按钮
# ControlUtils.clickSearch(session)
else:
session.appium_settings({"snapshotMaxDepth": 15})
# 点击搜索按钮
# ControlUtils.clickSearch(session)
print("greetNewFollowers方法执行完毕")
# 检测消息