From c48bbaaa414a0e660725033cd8187a4b2299a651 Mon Sep 17 00:00:00 2001 From: fnvtk Date: Mon, 11 May 2026 17:21:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=95=E5=85=A5=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=9C=BA=E5=88=B6=EF=BC=8C=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=20UI=20=E9=80=82=E9=85=8D=E8=83=BD=E5=8A=9B=20(BUG-004)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/app/services/wechat_adb_engine.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk/app/services/wechat_adb_engine.py b/sdk/app/services/wechat_adb_engine.py index 148301c3cb..4419308225 100644 --- a/sdk/app/services/wechat_adb_engine.py +++ b/sdk/app/services/wechat_adb_engine.py @@ -123,6 +123,11 @@ class WeChatADBEngine: return "" def _find_text(self, text: str, xml: str = None) -> Optional[Tuple[int, int]]: + # 优先从导航缓存读取 + from services.wechat_nav_cache import nav_cache + cached = nav_cache.get_page("current") + if cached and text in cached.get("elements", {}): + return cached["elements"][text].get("center") if xml is None: xml = self._get_xml() if not xml: