From 4fad0b1198cfcdda238bc767d93825b12d5b119e Mon Sep 17 00:00:00 2001 From: butubb <1422726308@qq.com> Date: Fri, 4 Sep 2026 14:36:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20tap=5Ftext=20UI=20=E6=A0=91=E5=91=BD?= =?UTF-8?q?=E4=B8=AD=E8=B7=AF=E5=BE=84=E2=80=94=E2=80=94u2=203.x=20?= =?UTF-8?q?=E7=9A=84=20el.bounds=20=E6=98=AF=E6=96=B9=E6=B3=95=E4=B8=8D?= =?UTF-8?q?=E6=98=AF=E5=B1=9E=E6=80=A7=EF=BC=8C=E5=8F=96=20bounds=20?= =?UTF-8?q?=E6=8A=9B=20TypeError=20=E8=A2=AB=E5=90=9E=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=B0=B8=E8=BF=9C=E8=B5=B0=20OCR=20=E5=85=9C=E5=BA=95=EF=BC=9B?= =?UTF-8?q?=E6=94=B9=E5=85=BC=E5=AE=B9=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/monitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/monitor.py b/web/monitor.py index 4731b6d..56d3596 100644 --- a/web/monitor.py +++ b/web/monitor.py @@ -563,7 +563,8 @@ def api_screen_tap_text(): try: el = d(**kw) if el.exists(timeout=1.5): - b = el.bounds + # u2 版本差异:3.x 部分版本 bounds 是方法(el.bounds()) + b = el.bounds() if callable(el.bounds) else el.bounds el.click() return jsonify({"ok": True, "found": True, "method": "ui", "matched": text,