20250904-初步功能已完成

This commit is contained in:
2025-09-18 13:07:11 +08:00
parent db67024157
commit d7e1d993fb
4 changed files with 158 additions and 100 deletions

View File

@@ -492,16 +492,18 @@ class ScriptManager():
else:
msg = text
LogManager.method_info(f"即将发送的私信内容:{msg}", "关注打招呼", udid)
chatInput = session.xpath("//TextView")
# 准备发送一条信息
chatInput.click()
time.sleep(2)
# 发送消息
chatInput.set_text(f"{msg or '暂无数据'}\n")
if chatInput.exists:
chatInput.click()
time.sleep(2)
# 发送消息
chatInput.set_text(f"{msg or '暂无数据'}\n")
# input.set_text(f"{aid or '暂无数据'}\n")
# input.set_text(f"{aid or '暂无数据'}\n")
time.sleep(1)
time.sleep(1)
else:
print("无法发送信息")