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,