{"id":1791,"date":"2026-07-20T10:15:51","date_gmt":"2026-07-20T02:15:51","guid":{"rendered":"https:\/\/www.izhuhn.cn\/?p=1791"},"modified":"2026-07-20T10:18:37","modified_gmt":"2026-07-20T02:18:37","slug":"%e6%b7%98%e5%ae%9d%e6%8a%bd%e8%b5%8f%e4%bd%99%e9%87%8f%e7%9b%91%e6%8e%a7%e7%ae%80%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/www.izhuhn.cn\/index.php\/2026\/07\/20\/%e6%b7%98%e5%ae%9d%e6%8a%bd%e8%b5%8f%e4%bd%99%e9%87%8f%e7%9b%91%e6%8e%a7%e7%ae%80%e8%ae%b0\/","title":{"rendered":"\u6dd8\u5b9d\u62bd\u8d4f\u4f59\u91cf\u76d1\u63a7\u7b80\u8bb0"},"content":{"rendered":"<h2 class=\"wp-block-heading\">\u4e00\u3001\u80cc\u666f<\/h2>\n\n<p class=\"wp-block-paragraph\">\u670b\u53cb\u5728\u6dd8\u5b9d\u73a9\u4e00\u4e2a\u6210\u5c31\u62bd\u8d4f\u6d3b\u52a8\uff0c\u60f3\u5b9e\u65f6\u76d1\u63a7\u5269\u4f59\u62bd\u8d4f\u5f20\u6570\u7684\u53d8\u5316\u3002\u9875\u9762\u662f\u4e2a\u5185\u5d4c\u5728 WebView \u4e2d\u7684\u5c0f\u7a0b\u5e8f\uff0c\u6570\u636e\u901a\u8fc7\u52a0\u5bc6 API\uff08\u6dd8\u5b9d MTop \u534f\u8bae\uff09\u4f20\u8f93\uff0c\u76f4\u63a5\u6293\u5305\u4e0d\u53ef\u884c\u3002\u624b\u673a\u7aef\u6ca1\u6709 API \u8c03\u7528\u6743\u9650\uff0c\u53ea\u80fd\u5728\u624b\u673a\u4e0a\u5f00\u7740\u9875\u9762\u770b\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u6211\u7684\u65b9\u6848\u662f\u653e\u5f03\u7834\u89e3\u52a0\u5bc6\uff0c\u6539\u7528<strong>\u89c6\u89c9+\u65e0\u969c\u788d\u65b9\u6848<\/strong>\uff1a\u7528 ADB \u8fde\u624b\u673a\uff0c\u901a\u8fc7 Android \u81ea\u5e26\u7684 <code>uiautomator dump<\/code> \u547d\u4ee4\u8bfb\u53d6\u5f53\u524d\u754c\u9762\u7684 Accessibility Tree\uff0c\u76f4\u63a5\u4ece\u7cfb\u7edf\u5c42\u9762\u62ff\u5230\u6240\u6709\u6587\u5b57\u4fe1\u606f\uff08\u5305\u62ec\u5269\u4f59\u5f20\u6570\uff09\u3002\u6bcf\u6b21\u68c0\u67e5\u524d\u81ea\u52a8\u70b9\u51fb tab \u89e6\u53d1\u9875\u9762\u5237\u65b0\uff0c\u786e\u4fdd\u6570\u636e\u662f\u6700\u65b0\u7684\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u53d8\u5316\u65f6\u901a\u8fc7\u4f01\u4e1a\u5fae\u4fe1 API \u53d1\u9001\u901a\u77e5\u5230\u624b\u673a\uff0c\u4e5f\u652f\u6301 macOS \u7cfb\u7edf\u901a\u77e5\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u539f\u7406<\/h2>\n\n<p class=\"wp-block-paragraph\">\u6574\u4f53\u6d41\u7a0b:<\/p>\n\n\n<ul class=\"wp-block-list\">\n<li>\u624b\u673a\u8fde\u63a5\u7535\u8111\uff0c\u5f00\u542f USB \u8c03\u8bd5<\/li>\n<li>Python \u811a\u672c\u901a\u8fc7 ADB \u63a7\u5236\u624b\u673a<\/li>\n<li>\u6bcf\u6b21\u68c0\u67e5: \u70b9 tab \u2192 \u7b49 0.5s \u2192 <code>uiautomator dump<\/code> \u2192 \u89e3\u6790 XML \u2192 \u63d0\u53d6\u5269\u4f59\u5f20\u6570<\/li>\n<li>\u6570\u5b57\u53d8\u5316\u65f6: \u4f01\u4e1a\u5fae\u4fe1 API \u2192 \u6d88\u606f\u63a8\u9001\u5230\u5fae\u4fe1<\/li>\n<\/ul>\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 <code>uiautomator dump<\/code> \u800c\u4e0d\u662f OCR \u6216\u622a\u56fe\u7684\u539f\u56e0:<\/p>\n\n\n<ul class=\"wp-block-list\">\n<li>Uiautomator \u4ece\u7cfb\u7edf\u5c42\u9762\u76f4\u63a5\u62ff\u5230 TextView \u7684\u6587\u5b57\u5185\u5bb9\u548c\u5750\u6807\uff0c\u4e0d\u9700\u8981\u4efb\u4f55 OCR \u5f15\u64ce<\/li>\n<li>\u4e0d\u4f9d\u8d56 Tesseract\u3001EasyOCR \u7b49\u7b2c\u4e09\u65b9\u5e93\uff0c\u96f6\u5b89\u88c5\u6210\u672c<\/li>\n<li>\u901f\u5ea6\u5feb\u3001\u51c6\u786e\u7387 100%\uff08\u7cfb\u7edf\u63d0\u4f9b\u7684\u6570\u636e\uff0c\u4e0d\u662f\u8bc6\u522b\u7ed3\u679c\uff09<\/li>\n<li>\u6570\u636e\u5305\u542b\u5b8c\u6574\u7684\u8282\u70b9\u6811\u548c\u5750\u6807\u4fe1\u606f\uff0c\u53ef\u4ee5\u7cbe\u786e\u5b9a\u4f4d\u5230\u6570\u5b57\u533a\u57df<\/li>\n<\/ul>\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u6587\u4ef6\u7ed3\u6784<\/h2>\n\n<pre class=\"wp-block-code\"><code>taobao-chouwan-monitor\/\n\u251c\u2500\u2500 fast_monitor.py        # \u4e3b\u811a\u672c\uff08\u540e\u53f0\u76d1\u63a7 + \u4f01\u4e1a\u5fae\u4fe1\u901a\u77e5\uff09\n\u251c\u2500\u2500 uia_monitor.py         # \u8be6\u7ec6\u89e3\u6790\u7248\uff08\u5e26\u5b8c\u6574\u5956\u54c1\u6570\u636e\u548c\u4e2d\u5956\u8bb0\u5f55\uff09\n\u251c\u2500\u2500 visual_monitor.py      # OCR \u65b9\u6848\uff08\u5907\u9009\uff0c\u9700\u8981 tesseract\/easyocr\uff09\n\u251c\u2500\u2500 monitor.log            # \u8fd0\u884c\u65e5\u5fd7\n\u251c\u2500\u2500 monitor_stdout.log     # \u540e\u53f0\u8fdb\u7a0b\u6807\u51c6\u8f93\u51fa\n\u2514\u2500\u2500 .uia_state.json        # \u72b6\u6001\u6587\u4ef6\uff08\u8bb0\u5f55\u4e0a\u6b21\u5269\u4f59\u6570\u548c\u5386\u53f2\uff09\n<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">\u6838\u5fc3\u6587\u4ef6\u662f <code>fast_monitor.py<\/code>\uff0c\u5176\u4ed6\u4e3a\u5907\u9009\u6216\u8f85\u52a9\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u73af\u5883\u51c6\u5907<\/h2>\n\n<h3 class=\"wp-block-heading\">4.1 \u7535\u8111\u7aef<\/h3>\n\n<p class=\"wp-block-paragraph\">\u9700\u8981 macOS \u6216 Linux \u7cfb\u7edf\uff0c\u5b89\u88c5 ADB\uff08Android Debug Bridge\uff09:<\/p>\n\n<pre class=\"wp-block-code\"><code># macOS\nbrew install android-platform-tools\n\n# Linux (Ubuntu\/Debian)\nsudo apt install adb\n\n# \u9a8c\u8bc1\u5b89\u88c5\nadb --version\n<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">Python 3.6+ \u5373\u53ef\uff0c\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u7b2c\u4e09\u65b9\u5e93\uff08\u4ec5\u4f7f\u7528\u6807\u51c6\u5e93\uff09\u3002<\/p>\n\n<h3 class=\"wp-block-heading\">4.2 \u624b\u673a\u7aef<\/h3>\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b89\u5353\u624b\u673a\uff08\u4e0d\u9650\u54c1\u724c\uff09<\/li>\n<li>\u5f00\u542f\u5f00\u53d1\u8005\u9009\u9879: \u8bbe\u7f6e \u2192 \u5173\u4e8e\u624b\u673a \u2192 \u8fde\u70b9 7 \u6b21\u7248\u672c\u53f7<\/li>\n<li>\u5f00\u542f USB \u8c03\u8bd5: \u8bbe\u7f6e \u2192 \u5f00\u53d1\u8005\u9009\u9879 \u2192 USB \u8c03\u8bd5<\/li>\n<li>\u7528 USB \u7ebf\u8fde\u63a5\u7535\u8111<\/li>\n<li>\u624b\u673a\u4e0a\u5f39\u51fa\"\u5141\u8bb8 USB \u8c03\u8bd5\"\u63d0\u793a \u2192 \u70b9\u51fb\u5141\u8bb8<\/li>\n<\/ul>\n\n\n<p class=\"wp-block-paragraph\">\u9a8c\u8bc1\u8fde\u63a5:<\/p>\n\n<pre class=\"wp-block-code\"><code>adb devices\n# \u5e94\u663e\u793a: &lt;\u8bbe\u5907\u53f7&gt;       device\n<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\">4.3 \u4f01\u4e1a\u5fae\u4fe1\u901a\u77e5\uff08\u53ef\u9009\uff09<\/h3>\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u9700\u8981\u624b\u673a\u6536\u5230\u53d8\u5316\u901a\u77e5\uff0c\u9700\u8981\u6ce8\u518c\u4f01\u4e1a\u5fae\u4fe1\u81ea\u5efa\u5e94\u7528:<\/p>\n\n\n<ol class=\"wp-block-list\">\n<li>\u767b\u5f55 <a href=\"https:\/\/work.weixin.qq.com\/\" target=\"_blank\"  rel=\"nofollow\" >\u4f01\u4e1a\u5fae\u4fe1\u7ba1\u7406\u540e\u53f0<\/a><\/li>\n<li>\u300c\u5e94\u7528\u7ba1\u7406\u300d\u2192 \u300c\u81ea\u5efa\u300d\u2192 \u300c\u521b\u5efa\u5e94\u7528\u300d<\/li>\n<li>\u586b\u5199\u5e94\u7528\u540d\u79f0\uff0c\u9009\u62e9\u53ef\u89c1\u8303\u56f4\uff08\u4f60\u7684\u4f01\u4e1a\u5fae\u4fe1\u53f7\uff09<\/li>\n<li>\u521b\u5efa\u540e\u62ff\u5230:\n   <ul>\n      <li><strong>corpid<\/strong>: \u300c\u6211\u7684\u4f01\u4e1a\u300d\u9875\u9762\u5e95\u90e8<\/li>\n      <li><strong>corpsecret<\/strong>: \u81ea\u5efa\u5e94\u7528\u7684 Secret<\/li>\n      <li><strong>agentid<\/strong>: \u81ea\u5efa\u5e94\u7528\u7684 AgentId\uff08\u7eaf\u6570\u5b57\uff09<\/li>\n      <li><strong>\u63a5\u6536\u4eba userid<\/strong>: \u901a\u8baf\u5f55\u4e2d\u4f60\u7684\u8d26\u53f7<\/li>\n   <\/ul>\n<\/li>\n<li>\u5728\u300c\u5fae\u4fe1\u63d2\u4ef6\u300d\u4e2d\u5f00\u542f\u300c\u5141\u8bb8\u6210\u5458\u63a5\u6536\u5e94\u7528\u6d88\u606f\u300d\uff0c\u8fd9\u6837\u624d\u80fd\u63a8\u9001\u5230\u4e2a\u4eba\u5fae\u4fe1<\/li>\n<\/ol>\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4e0d\u914d\u7f6e\u4f01\u4e1a\u5fae\u4fe1\uff0c\u811a\u672c\u53ea\u4f1a\u5728 Mac \u4e0a\u5f39\u7cfb\u7edf\u901a\u77e5\uff08\u901a\u8fc7 <code>osascript<\/code>\uff09\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u5b8c\u6574\u4ee3\u7801<\/h2>\n\n<p class=\"wp-block-paragraph\">\u6838\u5fc3\u811a\u672c <code>fast_monitor.py<\/code>:<\/p>\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env python3\n\"\"\"\n\u6dd8\u5b9d\u6210\u5c31\u62bd\u8d4f - \u540e\u53f0\u76d1\u63a7\uff08\u4f01\u4e1a\u5fae\u4fe1\u901a\u77e5\uff09\n\u53d8\u5316\u65f6\u81ea\u52a8\u53d1\u6d88\u606f\u5230\u4f01\u4e1a\u5fae\u4fe1\uff08\u53ef\u8f6c\u53d1\u4e2a\u4eba\u5fae\u4fe1\uff09\n\n\u7528\u6cd5:\n  python3 fast_monitor.py                     # \u524d\u53f0\u5b9e\u65f6\u8f93\u51fa\n  python3 fast_monitor.py --daemon --interval 30  # \u540e\u53f0\u8fd0\u884c\n  pkill -f fast_monitor.py                     # \u505c\u6b62\n  \n\u914d\u7f6e: \u6587\u4ef6\u5934\u90e8 WX_* \u53d8\u91cf\n\"\"\"\nimport subprocess, sys, re, json, os, time, urllib.request\nimport xml.etree.ElementTree as ET\nfrom datetime import datetime\n\n# \u2550\u2550\u2550\u2550\u2550\u2550\u2550 \u4f01\u4e1a\u5fae\u4fe1\u914d\u7f6e\uff08\u9700\u624b\u52a8\u4fee\u6539\uff09 \u2550\u2550\u2550\u2550\u2550\u2550\u2550\nWX_CORPID = \"your_corpid\"          # \u4f01\u4e1a\u5fae\u4fe1 corp ID\nWX_CORPSECRET = \"your_corpsecret\"  # \u81ea\u5efa\u5e94\u7528 Secret\nWX_AGENTID = \"1000002\"             # \u81ea\u5efa\u5e94\u7528 AgentId\nWX_USER = \"userid\"                 # \u901a\u77e5\u63a5\u6536\u4eba userid\n\n# \u2550\u2550\u2550\u2550\u2550\u2550\u2550 \u76d1\u63a7\u914d\u7f6e \u2550\u2550\u2550\u2550\u2550\u2550\u2550\nADB = \"adb\"\nSCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))\nSTATE_FILE = os.path.join(SCRIPT_DIR, \".uia_state.json\")\nLOG_FILE = os.path.join(SCRIPT_DIR, \"monitor.log\")\nTOKEN_FILE = os.path.join(SCRIPT_DIR, \".wx_token.json\")\n\nHISTORY = []\n\n\n# ---------- \u4f01\u4e1a\u5fae\u4fe1\u901a\u77e5 ----------\nWX_TOKEN = None\nWX_TOKEN_EXPIRES = 0\n\n\ndef wx_get_token():\n    \"\"\"\u83b7\u53d6\u4f01\u4e1a\u5fae\u4fe1 access token\uff08\u5e26\u6587\u4ef6\u7f13\u5b58\uff09\"\"\"\n    global WX_TOKEN, WX_TOKEN_EXPIRES\n    now = time.time()\n    if WX_TOKEN and now &lt; WX_TOKEN_EXPIRES - 60:\n        return WX_TOKEN\n\n    if os.path.exists(TOKEN_FILE):\n        try:\n            with open(TOKEN_FILE) as f:\n                d = json.load(f)\n            if d.get(\"expires_at\", 0) > now + 60:\n                WX_TOKEN = d[\"token\"]\n                WX_TOKEN_EXPIRES = d[\"expires_at\"]\n                return WX_TOKEN\n        except:\n            pass\n\n    url = f\"https:\/\/qyapi.weixin.qq.com\/cgi-bin\/gettoken?corpid={WX_CORPID}&amp;corpsecret={WX_CORPSECRET}\"\n    try:\n        req = urllib.request.Request(url)\n        resp = urllib.request.urlopen(req, timeout=10)\n        data = json.loads(resp.read())\n        if data.get(\"errcode\") == 0:\n            WX_TOKEN = data[\"access_token\"]\n            WX_TOKEN_EXPIRES = now + data[\"expires_in\"]\n            with open(TOKEN_FILE, \"w\") as f:\n                json.dump({\"token\": WX_TOKEN, \"expires_at\": WX_TOKEN_EXPIRES}, f)\n            return WX_TOKEN\n        else:\n            log(f\"WX token error: {data}\")\n    except Exception as e:\n        log(f\"WX token request failed: {e}\")\n    return None\n\n\ndef wx_send(title, text, emoji=\"\ud83c\udfaf\"):\n    \"\"\"\u53d1\u9001\u4f01\u4e1a\u5fae\u4fe1\u6587\u672c\u6d88\u606f\"\"\"\n    token = wx_get_token()\n    if not token:\n        return False\n\n    content = f\"{emoji} {title}\\n{text}\"\n    if len(content) > 2000:\n        content = content[:1997] + \"...\"\n\n    msg_data = {\n        \"touser\": WX_USER,\n        \"msgtype\": \"text\",\n        \"agentid\": int(WX_AGENTID),\n        \"text\": {\"content\": content},\n        \"safe\": 0,\n        \"enable_duplicate_check\": 1,\n        \"duplicate_check_interval\": 30,\n    }\n\n    url = f\"https:\/\/qyapi.weixin.qq.com\/cgi-bin\/message\/send?access_token={token}\"\n    try:\n        req = urllib.request.Request(\n            url, data=json.dumps(msg_data).encode(\"utf-8\"),\n            headers={\"Content-Type\": \"application\/json\"}\n        )\n        resp = urllib.request.urlopen(req, timeout=10)\n        result = json.loads(resp.read())\n        if result.get(\"errcode\") == 0:\n            log(f\"WX sent: {title}\")\n            return True\n        else:\n            log(f\"WX send error: {result}\")\n    except Exception as e:\n        log(f\"WX send failed: {e}\")\n    return False\n\n\n# ---------- ADB \u63a7\u5236 ----------\ndef log(msg):\n    ts = datetime.now().strftime(\"%Y-%m-%d %H:%M:%S\")\n    with open(LOG_FILE, \"a\", encoding=\"utf-8\") as f:\n        f.write(f\"[{ts}] {msg}\\n\")\n\n\ndef refresh_and_dump():\n    \"\"\"\u70b9\u51fb tab \u5237\u65b0\u9875\u9762\uff0c\u7136\u540e dump UI \u6811\"\"\"\n    # \u5148\u5207\u5230\u5956\u6c60\u8d4f\u54c1\uff08\u5f3a\u5236\u5378\u8f7d\u5f53\u524d\u89c6\u56fe\uff09\n    subprocess.run([ADB, \"shell\", \"input\", \"tap\", \"821\", \"804\"],\n                   capture_output=True, timeout=10)\n    time.sleep(0.3)\n    # \u518d\u5207\u56de\u8d4f\u54c1\u4f59\u91cf\uff08\u89e6\u53d1\u6570\u636e\u91cd\u65b0\u52a0\u8f7d\uff09\n    subprocess.run([ADB, \"shell\", \"input\", \"tap\", \"612\", \"804\"],\n                   capture_output=True, timeout=10)\n    time.sleep(0.5)\n\n    subprocess.run([ADB, \"shell\", \"uiautomator\", \"dump\", \"\/sdcard\/ui.xml\"],\n                   capture_output=True, timeout=30)\n    xml_text = subprocess.run(\n        [ADB, \"shell\", \"cat\", \"\/sdcard\/ui.xml\"],\n        capture_output=True, text=True, timeout=30\n    ).stdout\n    subprocess.run([ADB, \"shell\", \"rm\", \"\/sdcard\/ui.xml\"],\n                   capture_output=True, timeout=10)\n\n    try:\n        root = ET.fromstring(xml_text)\n    except ET.ParseError:\n        return None, None\n\n    items = []\n    for elem in root.iter():\n        text = elem.get(\"text\", \"\")\n        clazz = elem.get(\"class\", \"\")\n        if text and \"TextView\" in clazz:\n            b = list(map(int, re.findall(r'\\d+', elem.get(\"bounds\", \"0 0 0 0\"))))\n            if len(b) == 4:\n                items.append((text, b[0], b[1], b[2], b[3]))\n\n    for i, (text, x1, y1, x2, y2) in enumerate(items):\n        if text.strip() == \"\u5269\u4f59:\":\n            r, s = None, None\n            if i + 1 &lt; len(items):\n                try:\n                    r = int(items[i + 1][0].strip())\n                except ValueError:\n                    pass\n            if i + 2 &lt; len(items):\n                m = re.match(r\"\/(\\d+)\u5f20\", items[i + 2][0])\n                if m:\n                    s = int(m.group(1))\n            return r, s\n    return None, None\n\n\ndef os_notify(title, text):\n    \"\"\"macOS \u901a\u77e5\u4e2d\u5fc3\"\"\"\n    subprocess.run([\"osascript\", \"-e\",\n        f'display notification \"{text}\" with title \"{title}\" sound name \"default\"'],\n        capture_output=True, timeout=5)\n\n\ndef load_state():\n    if os.path.exists(STATE_FILE):\n        with open(STATE_FILE) as f:\n            return json.load(f)\n    return {\"last_remaining\": None, \"total_drops\": 0, \"total_cycles\": 0}\n\n\ndef save_state(state):\n    os.makedirs(SCRIPT_DIR, exist_ok=True)\n    with open(STATE_FILE, \"w\") as f:\n        json.dump(state, f, ensure_ascii=False, indent=2)\n\n\ndef check_device():\n    r = subprocess.run([ADB, \"devices\"], capture_output=True, text=True, timeout=10)\n    for line in r.stdout.split(\"\\n\"):\n        if line.strip() and \"\\tdevice\" in line:\n            return True\n    return False\n\n\n# ---------- Main ----------\ndef main():\n    daemon = False\n    interval = 30\n\n    for arg in sys.argv[1:]:\n        if arg == \"--daemon\":\n            daemon = True\n        elif arg.startswith(\"--interval=\"):\n            interval = int(arg.split(\"=\")[1])\n\n    if not check_device():\n        msg = \"\u624b\u673a\u672a\u8fde\u63a5\uff01\u8bf7\u63d2 USB \u5e76\u5f00\u542f\u8c03\u8bd5\"\n        log(msg)\n        os_notify(\"\u62bd\u8d4f\u76d1\u63a7\", msg)\n        if daemon:\n            wx_send(\"\u76d1\u63a7\u5f02\u5e38\", msg, \"\u26a0\ufe0f\")\n        print(msg)\n        sys.exit(1)\n\n    state = load_state()\n    last = state.get(\"last_remaining\")\n    total_drops = state.get(\"total_drops\", 0)\n    total_cycles = state.get(\"total_cycles\", 0)\n    start_time = time.time()\n\n    if daemon:\n        print(f\"\u540e\u53f0\u76d1\u63a7\u542f\u52a8\uff08\u6bcf {interval}s\uff0c\u4f01\u4e1a\u5fae\u4fe1\u901a\u77e5\u5df2\u5f00\u542f\uff09\")\n        print(f\"   \u65e5\u5fd7: {LOG_FILE}\")\n        log(f\"=== \u76d1\u63a7\u542f\u52a8 (interval={interval}s) ===\")\n        wx_send(\"\u76d1\u63a7\u5df2\u542f\u52a8\",\n                f\"\u62bd\u8d4f\u76d1\u63a7\u5df2\u542f\u52a8\\n\u6bcf {interval} \u79d2\u68c0\u67e5\u4e00\u6b21\\n\u53d8\u5316\u65f6\u81ea\u52a8\u901a\u77e5\")\n    else:\n        print(f\"\u76d1\u63a7\u542f\u52a8\uff08\u6bcf {interval}s\uff09Ctrl+C \u505c\u6b62\")\n        print(f\"\u4f01\u4e1a\u5fae\u4fe1\u901a\u77e5: \u5f00\u542f\")\n\n    try:\n        while True:\n            cycle_start = time.time()\n            total_cycles += 1\n            remaining, stock = refresh_and_dump()\n\n            if remaining is not None:\n                if last is not None and remaining != last:\n                    diff = last - remaining\n                    if diff > 0:\n                        total_drops += diff\n                        pct = remaining \/ stock * 100 if stock else 0\n                        msg = (f\"\u51cf\u5c11 {diff} \u5f20: {last} \u2192 {remaining}\\n\"\n                               f\"\u5269\u4f59: {remaining}\/{stock} ({pct:.1f}%)\")\n                        log(msg)\n                        os_notify(\"\u62bd\u8d4f\", f\"\u51cf\u5c11 {diff} \u5f20\")\n                        wx_send(\"\u62bd\u8d4f\u6d88\u8017\", msg)\n                    else:\n                        msg = f\"\u8865\u8d27 {-diff} \u5f20: {last} \u2192 {remaining}\"\n                        log(msg)\n                        if abs(diff) >= 10:\n                            wx_send(\"\u62bd\u8d4f\u8865\u8d27\", msg)\n\n                last = remaining\n\n                if total_cycles % 10 == 0:\n                    state[\"last_remaining\"] = remaining\n                    state[\"total_drops\"] = total_drops\n                    state[\"total_cycles\"] = total_cycles\n                    state[\"last_stock\"] = stock\n                    state.setdefault(\"history\", []).append({\n                        \"t\": datetime.now().isoformat(),\n                        \"r\": remaining,\n                    })\n                    if len(state[\"history\"]) > 200:\n                        state[\"history\"] = state[\"history\"][-200:]\n                    save_state(state)\n\n                if daemon and total_cycles % 720 == 0:\n                    elapsed_h = int((time.time() - start_time) \/\/ 3600)\n                    wx_send(\"\u62bd\u8d4f\u65e5\u62a5\",\n                        f\"\u8fd0\u884c {elapsed_h}h\\n\"\n                        f\"\u5f53\u524d: {remaining}\/{stock}\\n\"\n                        f\"\u7d2f\u8ba1\u6d88\u8017: {total_drops} \u5f20\")\n\n            if not daemon and remaining is not None:\n                pct = remaining \/ stock * 100 if stock else 0\n                line = f\"[{datetime.now().strftime('%H:%M:%S')}]  {remaining:>4d}\/{stock:&lt;4d}  ({pct:.1f}%)\"\n                print(line)\n\n            elapsed = time.time() - cycle_start\n            time.sleep(max(0.0, interval - elapsed))\n\n    except KeyboardInterrupt:\n        mins = int((time.time() - start_time) \/\/ 60)\n        summary = f\"\u8fd0\u884c {mins} \u5206, {total_cycles} \u8f6e, \u7d2f\u8ba1\u964d {total_drops} \u5f20\"\n        if daemon:\n            wx_send(\"\u76d1\u63a7\u5df2\u505c\u6b62\", summary)\n        print(f\"\\n{summary}\")\n        save_state(state)\n\n\nif __name__ == \"__main__\":\n    main()\n<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">\u8f85\u52a9\u811a\u672c <code>uia_monitor.py<\/code>\uff08\u8be6\u7ec6\u89e3\u6790\u7248\uff0c\u53ef\u67e5\u770b\u5b8c\u6574\u5956\u54c1\u5217\u8868\u548c\u4e2d\u5956\u8bb0\u5f55\uff09:<\/p>\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env python3\n\"\"\"\n\u6dd8\u5b9d\u6210\u5c31\u62bd\u8d4f - \u8be6\u7ec6\u89e3\u6790\u7248\n\u901a\u8fc7 uiautomator dump \u8bfb\u53d6\u5b8c\u6574 Accessibility Tree\n\u53ef\u67e5\u770b\u5956\u54c1\u4f59\u91cf\u3001\u4e2d\u5956\u8bb0\u5f55\u3001\u62bd\u8d4f\u6309\u94ae\u7b49\u4fe1\u606f\n\n\u7528\u6cd5:\n  python3 uia_monitor.py              # \u5355\u6b21\u8bfb\u53d6\n  python3 uia_monitor.py --watch      # \u6301\u7eed\u76d1\u63a7\n  python3 uia_monitor.py --watch --interval 60  # \u6bcf60\u79d2\n\"\"\"\nimport subprocess, sys, re, json, os, time, argparse\nimport xml.etree.ElementTree as ET\nfrom datetime import datetime\n\nADB = \"adb\"\nSTATE_FILE = os.path.join(os.path.dirname(__file__), \".uia_state.json\")\n\n\ndef adb_shell(cmd):\n    r = subprocess.run([ADB, \"shell\", cmd],\n                       capture_output=True, text=True, timeout=30)\n    if r.returncode != 0:\n        raise RuntimeError(f\"ADB: {r.stderr.strip()}\")\n    return r.stdout.strip()\n\n\ndef check_device():\n    r = subprocess.run([ADB, \"devices\"],\n                       capture_output=True, text=True, timeout=10)\n    for line in r.stdout.split(\"\\n\"):\n        if line.strip() and \"\\tdevice\" in line:\n            return True\n    print(\"\u8bbe\u5907\u672a\u8fde\u63a5\")\n    sys.exit(1)\n\n\ndef dump_ui():\n    adb_shell(\"uiautomator dump \/sdcard\/ui.xml\")\n    xml_text = subprocess.run(\n        [ADB, \"shell\", \"cat\", \"\/sdcard\/ui.xml\"],\n        capture_output=True, text=True, timeout=30\n    ).stdout\n    adb_shell(\"rm \/sdcard\/ui.xml\")\n    return xml_text\n\n\ndef get_all_texts(xml_text):\n    \"\"\"\u89e3\u6790 XML\uff0c\u8fd4\u56de\u6240\u6709 TextView \u7684 (text, bounds)\"\"\"\n    items = []\n    try:\n        root = ET.fromstring(xml_text)\n    except ET.ParseError:\n        return items\n    for elem in root.iter():\n        text = elem.get(\"text\", \"\")\n        clazz = elem.get(\"class\", \"\")\n        if not text or \"TextView\" not in clazz:\n            continue\n        b = list(map(int, re.findall(r'\\d+',\n                 elem.get(\"bounds\", \"0 0 0 0\"))))\n        if len(b) == 4:\n            items.append((text, b[0], b[1], b[2], b[3]))\n    return items\n\n\ndef parse_data(xml_text):\n    \"\"\"\u89e3\u6790 UI \u6570\u636e\"\"\"\n    items = get_all_texts(xml_text)\n    result = {\n        \"total_remaining\": None,\n        \"total_stock\": None,\n        \"prizes\": [],\n        \"recent_wins\": [],\n        \"visible_counts\": [],\n        \"draw_info\": {},\n    }\n\n    # \u89e3\u6790\u5269\u4f59\u603b\u5f20\u6570\n    for i, (text, x1, y1, x2, y2) in enumerate(items):\n        if text.strip() == \"\u5269\u4f59:\":\n            if i + 1 &lt; len(items):\n                try:\n                    result[\"total_remaining\"] = int(items[i + 1][0].strip())\n                except ValueError:\n                    pass\n            if i + 2 &lt; len(items):\n                m = re.match(r\"\/(\\d+)\u5f20\", items[i + 2][0])\n                if m:\n                    result[\"total_stock\"] = int(m.group(1))\n            break\n\n    # \u89e3\u6790\u4f59\u91cf\u6a21\u5f0f X\/Y\n    prize_re = re.compile(r\"^(\\d+)\/(\\d+)$\")\n    for text, x1, y1, x2, y2 in items:\n        m = prize_re.match(text)\n        if m and x2 > x1 + 2 and x2 > 20:\n            result[\"visible_counts\"].append({\n                \"current\": int(m.group(1)),\n                \"total\": int(m.group(2)),\n                \"y\": (y1 + y2) \/\/ 2,\n            })\n\n    # \u89e3\u6790\u4e2d\u5956\u8bb0\u5f55\n    skip = {\"\u89c4\u5219\", \"\u5269\u4f59:\", \"\u8d4f\u54c1\u4f59\u91cf\", \"\u5956\u6c60\u8d4f\u54c1\",\n            \"\u4e2d\u5956\u8bb0\u5f55\", \"\u53ea\u8d60\u9001\u4e0d\u552e\u5356\"}\n    wins = []\n    i = 0\n    while i &lt; len(items):\n        text, x1, y1, x2, y2 = items[i]\n        if re.match(r\"^\\d{2}-\\d{2}$\", text) and x1 == 0:\n            date_val = text\n            time_val = \"\"\n            winner = \"\"\n            prize = \"\"\n            if i + 1 &lt; len(items) and \\\n               re.match(r\"^\\d{2}:\\d{2}:\\d{2}$\", items[i+1][0]):\n                time_val = items[i+1][0]\n                for j in range(i + 2, min(i + 6, len(items))):\n                    t, bx1, by1, bx2, by2 = items[j]\n                    if bx1 != 0 or bx2 != 0:\n                        break\n                    if \"\u83b7\u5f97\" in t:\n                        winner = t.replace(\"\u83b7\u5f97\", \"\").strip()\n                    elif winner and not t.startswith(\"\/\") and t not in skip:\n                        prize = t\n                if winner and prize:\n                    wins.append({\"date\": date_val, \"time\": time_val,\n                                 \"winner\": winner, \"prize\": prize})\n        i += 1\n    result[\"recent_wins\"] = wins[:50]\n\n    return result\n\n\ndef format_output(data):\n    lines = []\n    ts = datetime.now().strftime(\"%Y-%m-%d %H:%M:%S\")\n    lines.append(f\"\u2550\u2550\u2550 \u6dd8\u5b9d\u6210\u5c31\u62bd\u8d4f @ {ts} \u2550\u2550\u2550\")\n\n    tr = data.get(\"total_remaining\")\n    ts_val = data.get(\"total_stock\")\n    if tr is not None:\n        pct = f\" ({tr\/ts_val*100:.1f}%)\" if ts_val else \"\"\n        lines.append(f\"\u5269\u4f59    {tr} \/ {ts_val}{pct}\")\n\n    if data.get(\"visible_counts\"):\n        lines.append(\"\")\n        lines.append(\"\u5956\u54c1\u4f59\u91cf:\")\n        for vc in data[\"visible_counts\"]:\n            lines.append(f\"  {vc['current']:>3d}\/{vc['total']:&lt;4d}\")\n\n    if data.get(\"recent_wins\"):\n        lines.append(\"\")\n        lines.append(\"\u6700\u65b0\u4e2d\u5956:\")\n        for w in data[\"recent_wins\"][:8]:\n            lines.append(f\"  {w['date']} {w['time']}  \"\n                         f\"{w['winner']} \u2192 {w['prize']}\")\n\n    return \"\\n\".join(lines)\n\n\ndef load_state():\n    if os.path.exists(STATE_FILE):\n        with open(STATE_FILE) as f:\n            return json.load(f)\n    return {}\n\n\ndef main():\n    parser = argparse.ArgumentParser()\n    parser.add_argument(\"--watch\", \"-w\", action=\"store_true\")\n    parser.add_argument(\"--interval\", \"-i\", type=int, default=60)\n    args = parser.parse_args()\n\n    check_device()\n    state = load_state()\n\n    if not args.watch:\n        xml_text = dump_ui()\n        data = parse_data(xml_text)\n        print(format_output(data))\n        return\n\n    print(f\"\u76d1\u63a7\u6a21\u5f0f\uff08\u6bcf {args.interval}s\uff09\")\n    try:\n        while True:\n            xml_text = dump_ui()\n            data = parse_data(xml_text)\n            output = format_output(data)\n            print(\"\\033[2J\\033[H\", end=\"\")\n            print(output)\n            time.sleep(args.interval)\n    except KeyboardInterrupt:\n        print(\"\\n\u5df2\u505c\u6b62\")\n\n\nif __name__ == \"__main__\":\n    main()\n<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u914d\u7f6e\u4e0e\u4f7f\u7528<\/h2>\n\n<h3 class=\"wp-block-heading\">6.1 \u5feb\u901f\u4e0a\u624b\uff08\u53ea\u76d1\u63a7 + \u5f39\u7cfb\u7edf\u901a\u77e5\uff09<\/h3>\n\n<pre class=\"wp-block-code\"><code># 1. \u4e0b\u8f7d\u811a\u672c\nmkdir taobao-chouwan-monitor &amp;&amp; cd taobao-chouwan-monitor\n# \u5c06\u4e0a\u9762\u7684 fast_monitor.py \u4fdd\u5b58\u5230\u6b64\u76ee\u5f55\n\n# 2. \u8fde\u63a5\u624b\u673a\u5e76\u6253\u5f00\u6dd8\u5b9d\u62bd\u8d4f\u9875\u9762\nadb devices  # \u786e\u8ba4\u8bbe\u5907\u5df2\u8fde\u63a5\n\n# 3. \u524d\u53f0\u8fd0\u884c\u4e00\u6b21\u6d4b\u8bd5\npython3 fast_monitor.py\n\n# 4. \u540e\u53f0\u8fd0\u884c\nnohup python3 -u fast_monitor.py --daemon --interval=30 \\\n  > monitor_stdout.log 2>&amp;1 &amp;\n\n# 5. \u505c\u6b62\npkill -f fast_monitor.py\n<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\">6.2 \u914d\u7f6e\u4f01\u4e1a\u5fae\u4fe1\u901a\u77e5<\/h3>\n\n<p class=\"wp-block-paragraph\">\u7f16\u8f91 <code>fast_monitor.py<\/code> \u5934\u90e8\u914d\u7f6e\u9879:<\/p>\n\n<pre class=\"wp-block-code\"><code>WX_CORPID = \"ww****************\"  # \u4f60\u7684\u4f01\u4e1a ID\nWX_CORPSECRET = \"****\"           # \u5e94\u7528 Secret\nWX_AGENTID = \"1000002\"           # \u5e94\u7528 AgentId\nWX_USER = \"YourUserID\"           # \u63a5\u6536\u4eba userid\n<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\">6.3 \u8c03\u6574\u76d1\u63a7\u9891\u7387<\/h3>\n\n<pre class=\"wp-block-code\"><code># \u6bcf 10 \u79d2\uff08\u6700\u9ad8\u9891\u7387\uff0c\u6ce8\u610f\u8017\u7535\uff09\nnohup python3 -u fast_monitor.py --daemon --interval=10 \\\n  > monitor_stdout.log 2>&amp;1 &amp;\n\n# \u6bcf 5 \u5206\u949f\uff08\u7701\u7535\u6a21\u5f0f\uff09\nnohup python3 -u fast_monitor.py --daemon --interval=300 \\\n  > monitor_stdout.log 2>&amp;1 &amp;\n<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\">6.4 \u67e5\u770b\u8be6\u60c5\uff08\u5956\u54c1\u5217\u8868 + \u4e2d\u5956\u8bb0\u5f55\uff09<\/h3>\n\n<pre class=\"wp-block-code\"><code>python3 uia_monitor.py\n<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">\u8f93\u51fa\u793a\u4f8b:<\/p>\n\n<pre class=\"wp-block-code\"><code>\u2550\u2550\u2550 \u6dd8\u5b9d\u6210\u5c31\u62bd\u8d4f @ 2026-07-20 09:40:04 \u2550\u2550\u2550\n\u5269\u4f59    209 \/ 2000 (10.5%)\n\n\u5956\u54c1\u4f59\u91cf:\n    1\/1\n   27\/300\n    0\/1\n  183\/1700\n\n\u6700\u65b0\u4e2d\u5956:\n  07-20 09:19:58  \u963f**i \u2192 \u840c\u7c92\u624b\u529e\u76f2\u76d2\n  07-20 08:58:41  j**g  \u2192 \u51b7\u53d8\u676f-1\u4e2a\n  07-20 08:52:16  \u67da**6 \u2192 \u840c\u7c92\u624b\u529e\u76f2\u76d2\n<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u4e03\u3001\u8fd0\u884c\u6548\u679c<\/h2>\n\n<p class=\"wp-block-paragraph\">\u540e\u53f0\u8fd0\u884c\u65f6\uff0c\u65e5\u5fd7\u6587\u4ef6 <code>monitor.log<\/code> \u8bb0\u5f55\u6bcf\u6b21\u53d8\u5316:<\/p>\n\n<pre class=\"wp-block-code\"><code>[2026-07-20 10:05:09] === \u76d1\u63a7\u542f\u52a8 (interval=30s) ===\n[2026-07-20 10:05:09] WX sent: \u76d1\u63a7\u5df2\u542f\u52a8\n[2026-07-20 10:10:15] \u51cf\u5c11 1 \u5f20: 209 \u2192 208\n[2026-07-20 10:10:15] WX sent: \u62bd\u8d4f\u6d88\u8017\n<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">\u4f01\u4e1a\u5fae\u4fe1\u6536\u5230\u7684\u901a\u77e5\u793a\u4f8b:<\/p>\n\n<pre class=\"wp-block-code\"><code>\ud83c\udfaf \u62bd\u8d4f\u6d88\u8017\n\u51cf\u5c11 1 \u5f20: 209 \u2192 208\n\u5269\u4f59: 208\/2000 (10.4%)\n<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">\u516b\u3001\u6ce8\u610f\u4e8b\u9879<\/h2>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u624b\u673a\u5c4f\u5e55\u4e0d\u8981\u5173<\/strong>: uiautomator dump \u9700\u8981\u5c4f\u5e55\u4eae\u7740\u624d\u80fd\u6b63\u786e\u83b7\u53d6\u6570\u636e\u3002\u5982\u679c\u624b\u673a\u606f\u5c4f\uff0c\u5148 <code>adb shell input keyevent 26<\/code> \u4eae\u5c4f\u540e\u518d dump<\/li>\n<li><strong>USB \u4fdd\u6301\u8fde\u63a5<\/strong>: \u65ad\u5f00\u540e ADB \u65e0\u6cd5\u8bbf\u95ee\uff0c\u811a\u672c\u4f1a\u62a5\u9519\u5e76\u53d1\u901a\u77e5\u63d0\u9192<\/li>\n<li><strong>\u8017\u7535<\/strong>: uiautomator dump \u6bcf\u6b21\u7ea6 2-3 \u79d2\uff0c\u5efa\u8bae\u95f4\u9694\u4e0d\u4f4e\u4e8e 10 \u79d2\u3002\u65e5\u5e38\u6302\u673a 30-60 \u79d2\u6bd4\u8f83\u5408\u7406<\/li>\n<li><strong>\u4e0d\u4f9d\u8d56\u7f51\u7edc<\/strong>: \u6240\u6709\u6570\u636e\u4ece\u672c\u5730 ADB \u83b7\u53d6\uff0c\u4e0d\u8d70\u7f51\u7edc\u63a5\u53e3\u3002\u53ea\u6709\u53d1\u901a\u77e5\u65f6\u624d\u9700\u8981\u7f51\u7edc<\/li>\n<li><strong>\u4f01\u4e1a\u5fae\u4fe1 token<\/strong>: \u81ea\u52a8\u7f13\u5b58\u5230 <code>.wx_token.json<\/code>\uff0c\u6709\u6548\u671f 7200 \u79d2\uff082 \u5c0f\u65f6\uff09\uff0c\u5230\u671f\u81ea\u52a8\u5237\u65b0<\/li>\n<li><strong>\u9875\u9762\u7ed3\u6784\u53d8\u5316<\/strong>: \u5982\u679c\u6dd8\u5b9d\u66f4\u65b0\u4e86\u9875\u9762\u5e03\u5c40\uff0c<code>\u5269\u4f59:<\/code> \u6587\u5b57\u7684\u4f4d\u7f6e\u53ef\u80fd\u53d8\u5316\uff0c\u9700\u8981\u8c03\u6574 <code>refresh_and_dump()<\/code> \u4e2d\u7684\u5750\u6807\u3002\u5750\u6807\u901a\u8fc7 <code>uiautomator dump<\/code> \u8f93\u51fa\u7684 bounds \u83b7\u53d6<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u66f4\u65b0<\/strong>: \u5355\u4e2a tab \u70b9\u51fb\u4e0d\u4f1a\u89e6\u53d1\u5237\u65b0\uff0c\u56e0\u4e3a\u5f53\u524d tab \u5df2\u6fc0\u6d3b\u3002\u6539\u4e3a\u5148\u5207\u6362\u5230\u300c\u5956\u6c60\u8d4f\u54c1\u300d\u518d\u5207\u56de\u300c\u8d4f\u54c1\u4f59\u91cf\u300d\u3002\u4ee3\u7801\u4e2d <code>refresh_and_dump()<\/code> \u51fd\u6570\u5df2\u66f4\u65b0\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4e5d\u3001\u5176\u4ed6\u65b9\u6848\u5bf9\u6bd4<\/h2>\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr><th>\u65b9\u6848<\/th><th>\u96be\u5ea6<\/th><th>\u53ef\u9760\u6027<\/th><th>\u8bf4\u660e<\/th><\/tr>\n<\/thead>\n<tbody>\n<tr><td><strong>uiautomator dump<\/strong><\/td><td>\u4f4e<\/td><td>\u9ad8<\/td><td>\u672c\u65b9\u6848\uff0c\u96f6\u4f9d\u8d56\uff0c\u76f4\u63a5\u4ece\u7cfb\u7edf\u62ff\u6587\u5b57\uff0c\u63a8\u8350<\/td><\/tr>\n<tr><td>Playwright \u6d4f\u89c8\u5668\u81ea\u52a8\u5316<\/td><td>\u4e2d<\/td><td>\u4f4e<\/td><td>\u9700\u8981 GUI \u73af\u5883\uff0c\u9875\u9762\u7ed3\u6784\u590d\u6742\uff0c\u9009\u62e9\u5668\u96be\u9002\u914d<\/td><\/tr>\n<tr><td>\u624b\u673a\u6293\u5305 + API \u8c03\u7528<\/td><td>\u9ad8<\/td><td>\u4e2d<\/td><td>MTop \u7b7e\u540d\u52a0\u5bc6\uff0c\u7834\u89e3\u6210\u672c\u9ad8\uff0c\u4e14\u7b7e\u540d\u4f1a\u8fc7\u671f<\/td><\/tr>\n<tr><td>OCR\uff08Tesseract\/EasyOCR\uff09<\/td><td>\u4e2d<\/td><td>\u4e2d<\/td><td>\u9700\u8981\u5b89\u88c5 OCR \u5f15\u64ce\uff0c\u4e2d\u6587\u8bc6\u522b\u51c6\u786e\u7387\u53d6\u51b3\u4e8e\u5b57\u4f53\u548c\u80cc\u666f<\/td><\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n<p class=\"wp-block-paragraph\">\u7b80\u8bb0\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u80cc\u666f \u670b\u53cb\u5728\u6dd8\u5b9d\u73a9\u4e00\u4e2a\u6210\u5c31\u62bd\u8d4f\u6d3b\u52a8\uff0c\u60f3\u5b9e\u65f6\u76d1\u63a7\u5269\u4f59\u62bd\u8d4f\u5f20\u6570\u7684\u53d8\u5316\u3002\u9875\u9762\u662f\u4e2a\u5185\u5d4c\u5728 WebView \u4e2d\u7684\u5c0f\u7a0b\u5e8f\uff0c\u6570\u636e\u901a\u8fc7\u52a0\u5bc6 A &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[57,58,64,59,61,63,62,60],"class_list":["post-1791","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-adb","tag-android","tag-python","tag-59","tag-61","tag-63","tag-62","tag-60"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/posts\/1791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1791"}],"version-history":[{"count":3,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/posts\/1791\/revisions"}],"predecessor-version":[{"id":1794,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/posts\/1791\/revisions\/1794"}],"wp:attachment":[{"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.izhuhn.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}