From 4be6ae37c7834d4d115ea705208e6bdd7b777f75 Mon Sep 17 00:00:00 2001 From: youpaishidifu Date: Fri, 24 Jul 2026 22:49:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20QQ=E5=8D=95=E7=8B=AC=E8=B5=B0=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E5=88=97=E8=A1=A8(=E6=B6=88=E6=81=AF=E5=88=97?= =?UTF-8?q?=E8=A1=A8UIA=E4=B8=8D=E6=9B=B4=E6=96=B0)+=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E4=BF=9D=E6=8C=81=E6=B6=88=E6=81=AF=E5=88=97=E8=A1=A8=E4=BC=98?= =?UTF-8?q?=E5=85=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitor.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/monitor.py b/monitor.py index 8fa43cc..0cb8151 100644 --- a/monitor.py +++ b/monitor.py @@ -182,11 +182,16 @@ class MessageMonitor: def _read_messages(self, window, platform: str = "") -> list: """每轮重新定位 ListControl。""" - # 都优先读"消息"(当前选中对话的最新消息) + if platform == "qq": + # QQ NT: 消息列表 UIA 不更新,走会话列表(摘要文本实时) + texts = self._read_conversation_list(window) + if texts: + return texts + # 微信/默认: 优先读"消息"(当前选中对话的最新消息) texts = self._read_message_list(window) if texts: return texts - # 兜底:会话列表(任何对话的摘要变化) + # 兜底:会话列表 texts = self._read_conversation_list(window) if texts: return texts