修复发送已看过问题

This commit is contained in:
2025-11-14 17:03:25 +08:00
parent bc83fcd9d7
commit ecc8dadd0b
2 changed files with 6 additions and 2 deletions

View File

@@ -738,7 +738,8 @@ class AiUtils(object):
r"Only \d+ message can be sent .* accepts .* request",
r"此消息可能违反.*",
r"无法发送",
r"请告知我们"
r"请告知我们",
r"已看过"
]
SYSTEM_RE = re.compile("|".join(SYSTEM_PATTERNS), re.IGNORECASE)

View File

@@ -923,6 +923,8 @@ class ScriptManager():
if event.is_set():
break
with self.lock:
# 获取一个主播,
LogManager.method_info(f"开始获取数据", "关注打招呼(联盟号)", udid)
@@ -1768,7 +1770,7 @@ class ScriptManager():
udid)
text = "ok"
if last_out:
if last_out and last_out != "已看过":
text = last_out
if sel.exists:
@@ -1819,6 +1821,7 @@ class ScriptManager():
if last_in is None:
last_in = "ok"
if sel.exists:
sel.click() # 聚焦
event.wait(timeout=1)