{"id":68220,"date":"2026-01-29T21:41:37","date_gmt":"2026-01-29T13:41:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/68220.html"},"modified":"2026-01-29T21:41:37","modified_gmt":"2026-01-29T13:41:37","slug":"%e5%9f%ba%e4%ba%8e%e8%93%9d%e7%89%99%e4%bf%a1%e6%a0%87%e6%8a%80%e6%9c%af%e5%8c%bb%e9%99%a2%e6%82%a3%e8%80%85%e5%ae%9a%e4%bd%8d%e4%bb%8e%e5%8e%9f%e7%90%86%e5%88%b0%e6%a0%b8%e5%bf%83%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/68220.html","title":{"rendered":"\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u8be6\u89e3"},"content":{"rendered":"<p style=\"margin-left:0.0001pt;margin-right:0px\">hello~\u8fd9\u91cc\u662f\u7ef4\u6784lbs\u667a\u80fd\u5b9a\u4f4d&#xff0c;\u5982\u679c\u6709\u9879\u76ee\u9700\u6c42\u548c\u6280\u672f\u4ea4\u6d41\u6b22\u8fce\u6765\u79c1\u4fe1\u6211\u4eec~\u70b9\u51fb\u6587\u7ae0\u6700\u4e0b\u65b9\u53ef\u83b7\u53d6\u514d\u8d39\u83b7\u53d6\u6280\u672f\u6587\u6863\u548c\u89e3\u51b3\u65b9\u6848<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u60a3\u8005\u5b89\u5168\u4e0e\u884c\u4e3a\u7ba1\u7406\u96be&#xff1f;\u5173\u952e\u533a\u57df\u4eba\u5458\u7ba1\u63a7\u96be&#xff1f;\u84dd\u7259\u4fe1\u6807\u80fd\u505a\u5230\u7cbe\u51c6\u5b9a\u4f4d&#xff0c;\u5b9e\u73b0\u667a\u6167\u533b\u9662\u7684\u7f8e\u597d\u56fe\u666f&#xff0c;\u8ba9\u533b\u9662\u7ba1\u7406\u771f\u6b63\u5b9e\u73b0\u201c\u770b\u5f97\u89c1\u3001\u7ba1\u5f97\u51c6\u3001\u54cd\u5e94\u5feb\u201d&#xff01;\u672c\u6587\u5c06\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u5c55\u5f00\u8bba\u8ff0\u3002<\/p>\n<h3 style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">\u4e00\u3001<span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d<\/span><\/span><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u539f\u7406<\/span><\/span><\/h3>\n<p style=\"text-align:left\">\u84dd\u7259\u4fe1\u6807\u4f5c\u4e3a\u4e00\u79cd\u5c0f\u578b\u3001\u4f4e\u529f\u8017\u3001\u4f4e\u6210\u672c\u7684\u65e0\u7ebf\u4fe1\u53f7\u53d1\u5c04\u88c5\u7f6e&#xff0c;\u4ec5\u5355\u5411\u5e7f\u64ad\u81ea\u8eab\u5b58\u5728\u4fe1\u606f&#xff0c;\u4e0d\u63a5\u6536\u6216\u8fde\u63a5\u5176\u4ed6\u8bbe\u5907\u3002\u667a\u80fd\u624b\u673a\u7b49\u7ec8\u7aef\u63a5\u6536\u5230\u4fe1\u53f7\u540e&#xff0c;\u901a\u8fc7\u89e3\u6790\u4fe1\u53f7\u5f3a\u5ea6&#xff08;RSSI&#xff09;\u4f30\u7b97\u4e0e\u4fe1\u6807\u7684\u8ddd\u79bb&#xff0c;\u5b9e\u73b0\u533a\u57df\u7ea7\u5b9a\u4f4d\u3002<\/p>\n<li style=\"text-align:left\">\u4fe1\u6807\u90e8\u7f72:\u5728\u533b\u9662\u5404\u4e2a\u5173\u952e\u4f4d\u7f6e&#xff08;\u8d70\u5eca\u4ea4\u53c9\u53e3\u3001\u79d1\u5ba4\u95e8\u53e3&#xff09;\u5b89\u88c5\u84dd\u7259\u5b9a\u4f4d\u4fe1\u6807\u3002\u6bcf\u4e2a\u4fe1\u6807\u90fd\u6709\u5176\u552f\u4e00id&#xff0c;\u5e76\u5728\u540e\u53f0\u7cfb\u7edf\u4e2d\u8bb0\u5f55\u5176id\u5bf9\u5e94\u7684\u7269\u7406\u4f4d\u7f6e\u3002&#xff08;\u5982id-789&#xff1d;\u4f4f\u9662\u90e8b\u680b\u4e1c\u4fa7\u697c\u68af\u53e3&#xff09;<\/li>\n<li style=\"text-align:left\">\u4fe1\u53f7\u63a5\u6536:\u60a3\u8005\u6253\u5f00\u533b\u9662\u7684\u5c0f\u7a0b\u5e8f\u6216\u8005APP&#xff0c;\u5e76\u5f00\u542f\u624b\u673a\u84dd\u7259&#xff0c;\u624b\u673a\u4f1a\u81ea\u52a8\u626b\u63cf\u5230\u9644\u8fd1\u6240\u6709\u4fe1\u6807\u7684\u5e7f\u64ad\u4fe1\u53f7\u3002<\/li>\n<li style=\"text-align:left\">\u5b9a\u4f4d\u8ba1\u7b97:\u624b\u673a\u7684app\u4f1a\u540c\u65f6\u63a5\u6536\u5230\u591a\u4e2a\u4fe1\u6807\u7684\u4fe1\u53f7&#xff0c;\u901a\u8fc7\u4e09\u89d2\u5b9a\u4f4d\u6216\u6307\u7eb9\u5b9a\u4f4d\u7b97\u6cd5&#xff0c;\u7efc\u5408\u5224\u65ad\u8fd9\u4e9b\u4fe1\u53f7\u7684\u5f3a\u5ea6&#xff0c;\u8ba1\u7b97\u51fa\u7528\u6237\u7684\u6240\u5904\u4f4d\u7f6e\u3002<\/li>\n<p>\u5b8c\u6574\u540e\u7aef\u4ee3\u7801&#xff1a;<br \/>\nfrom flask import Flask, request,<br \/>\n jsonify<br \/>\nimport<br \/>\n sqlite3<br \/>\nimport<br \/>\n math<br \/>\nfrom datetime import<br \/>\n datetime<\/p>\n<p># \u521d\u59cb\u5316Flask\u5e94\u7528<br \/>\napp<br \/>\n&#061; Flask(__name__)<\/p>\n<p># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- \u6570\u636e\u5e93\u521d\u59cb\u5316&#xff08;\u4fe1\u6807\u8868&#043;\u6307\u7eb9\u5e93\u8868&#xff09;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\ndef init_db():<br \/>\n    &#034;&#034;&#034;\u521b\u5efa\u6570\u636e\u5e93\u548c\u4e24\u5f20\u6838\u5fc3\u8868&#xff1a;1.\u4fe1\u6807\u57fa\u7840\u4fe1\u606f\u8868 2.\u5b9a\u4f4d\u6307\u7eb9\u5e93\u8868&#034;&#034;&#034;<br \/>\n    conn<br \/>\n&#061; sqlite3.connect(&#039;hospital_beacon.db&#039;)<br \/>\n    cursor<br \/>\n&#061; conn.cursor()<\/p>\n<p>    # 1. \u4fe1\u6807\u57fa\u7840\u4fe1\u606f\u8868&#xff08;\u5b58\u50a8\u4fe1\u6807ID\u4e0e\u7269\u7406\u4f4d\u7f6e\u7684\u6620\u5c04&#xff09;<br \/>\n    cursor<br \/>\n.execute(<br \/>\n&#039;&#039;&#039;<br \/>\n    CREATE TABLE IF NOT EXISTS beacon_info (<br \/>\n        id INTEGER PRIMARY KEY AUTOINCREMENT,<br \/>\n        beacon_unique_id TEXT UNIQUE NOT NULL,  &#8212; \u4fe1\u6807\u552f\u4e00ID&#xff08;\u84dd\u7259UUID&#043;Major&#043;Minor&#xff0c;\u5168\u5c40\u552f\u4e00&#xff09;<br \/>\n        physical_location TEXT NOT NULL,       &#8212; \u7269\u7406\u4f4d\u7f6e\u63cf\u8ff0&#xff08;\u5982&#xff1a;\u4f4f\u9662\u90e8B\u680b\u4e1c\u4fa7\u697c\u68af\u53e3&#xff09;<br \/>\n        x REAL DEFAULT 0,                      &#8212; \u4fe1\u6807\u6a2a\u5750\u6807&#xff08;\u53ef\u9009&#xff0c;\u7528\u4e8e\u4e09\u89d2\u5b9a\u4f4d&#xff09;<br \/>\n        y REAL DEFAULT 0,                      &#8212; \u4fe1\u6807\u7eb5\u5750\u6807&#xff08;\u53ef\u9009&#xff0c;\u7528\u4e8e\u4e09\u89d2\u5b9a\u4f4d&#xff09;<br \/>\n        install_time DATETIME DEFAULT CURRENT_TIMESTAMP,  &#8212; \u90e8\u7f72\u65f6\u95f4<br \/>\n        status INTEGER DEFAULT 1               &#8212; \u72b6\u6001&#xff1a;1&#061;\u6b63\u5e38&#xff0c;0&#061;\u6545\u969c<br \/>\n    )<br \/>\n    &#039;&#039;&#039;<br \/>\n)<\/p>\n<p>    # 2. \u5b9a\u4f4d\u6307\u7eb9\u5e93\u8868&#xff08;\u79bb\u7ebf\u91c7\u96c6\u7684\u4fe1\u6807RSSI\u6307\u7eb9&#xff0c;\u7528\u4e8e\u6307\u7eb9\u5b9a\u4f4d&#xff09;<br \/>\n    # \u6bcf\u6761\u8bb0\u5f55\u5bf9\u5e94\u4e00\u4e2a\u7269\u7406\u4f4d\u7f6e\u7684\u300c\u4fe1\u6807ID-RSSI\u300d\u96c6\u5408&#xff08;\u6307\u7eb9&#xff09;<br \/>\n    cursor<br \/>\n.execute(<br \/>\n&#039;&#039;&#039;<br \/>\n    CREATE TABLE IF NOT EXISTS location_fingerprint (<br \/>\n        id INTEGER PRIMARY KEY AUTOINCREMENT,<br \/>\n        physical_location TEXT NOT NULL,       &#8212; \u7269\u7406\u4f4d\u7f6e\u63cf\u8ff0&#xff08;\u4e0ebeacon_info\u5173\u8054&#xff09;<br \/>\n        beacon_rssi_map TEXT NOT NULL,         &#8212; \u4fe1\u6807ID\u4e0e\u5bf9\u5e94RSSI\u7684\u6620\u5c04&#xff08;JSON\u683c\u5f0f\u5b57\u7b26\u4e32&#xff09;<br \/>\n        collect_time DATETIME DEFAULT CURRENT_TIMESTAMP  &#8212; \u6307\u7eb9\u91c7\u96c6\u65f6\u95f4<br \/>\n    )<br \/>\n    &#039;&#039;&#039;<br \/>\n)<\/p>\n<p>    # \u63d2\u5165\u6d4b\u8bd5\u6570\u636e&#xff08;\u65b9\u4fbf\u6f14\u793a&#xff0c;\u5b9e\u9645\u9700\u540e\u53f0\u5f55\u5165\u6216\u6279\u91cf\u5bfc\u5165&#xff09;<br \/>\n    try:<br \/>\n        # \u6d4b\u8bd5\u4fe1\u68071<br \/>\n        cursor<br \/>\n.execute(&#039;INSERT INTO beacon_info (beacon_unique_id, physical_location, x, y) VALUES (?, ?, ?, ?)&#039;,<br \/>\n                       (&#039;789&#039;, &#039;\u4f4f\u9662\u90e8B\u680b\u4e1c\u4fa7\u697c\u68af\u53e3&#039;, 10.0, 20.0))<br \/>\n        # \u6d4b\u8bd5\u4fe1\u68072<br \/>\n        cursor<br \/>\n.execute(&#039;INSERT INTO beacon_info (beacon_unique_id, physical_location, x, y) VALUES (?, ?, ?, ?)&#039;,<br \/>\n                       (&#039;123&#039;, &#039;\u5185\u79d1\u95e8\u8bca\u95e8\u53e3&#039;, 30.0, 20.0))<br \/>\n        # \u6d4b\u8bd5\u6307\u7eb9\u5e93&#xff08;\u4f4f\u9662\u90e8B\u680b\u4e1c\u4fa7\u697c\u68af\u53e3\u9644\u8fd1\u7684\u6307\u7eb9&#xff09;<br \/>\n        cursor<br \/>\n.execute(&#039;INSERT INTO location_fingerprint (physical_location, beacon_rssi_map) VALUES (?, ?)&#039;,<br \/>\n                       (&#039;\u4f4f\u9662\u90e8B\u680b\u4e1c\u4fa7\u697c\u68af\u53e3&#039;, &#039;{&#034;789&#034;: -50, &#034;123&#034;: -70}&#039;))<br \/>\n        conn<br \/>\n.commit()<br \/>\n    except sqlite3.IntegrityError:<br \/>\n        # \u907f\u514d\u91cd\u590d\u63d2\u5165\u6d4b\u8bd5\u6570\u636e<br \/>\n        pass<br \/>\n    finally:<br \/>\n        conn<br \/>\n.close()<\/p>\n<p># \u542f\u52a8\u65f6\u521d\u59cb\u5316\u6570\u636e\u5e93<br \/>\ninit_db<br \/>\n()<\/p>\n<p># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- \u6838\u5fc3\u63a5\u53e3 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n&#064;app.route(&#039;\/api\/beacon\/query&#039;, methods&#061;[&#039;GET&#039;])<br \/>\ndef query_beacon():<br \/>\n    &#034;&#034;&#034;\u67e5\u8be2\u5355\u4e2a\u4fe1\u6807\u4fe1\u606f&#xff08;\u6839\u636ebeacon_unique_id&#xff09;&#034;&#034;&#034;<br \/>\n    beacon_id<br \/>\n&#061; request.args.get(&#039;beacon_id&#039;)<br \/>\n    if not beacon_id:<br \/>\n        return jsonify({&#039;code&#039;: 400, &#039;msg&#039;: &#039;\u7f3a\u5c11\u4fe1\u6807ID\u53c2\u6570&#039;, &#039;data&#039;: None})<\/p>\n<p>    conn<br \/>\n&#061; sqlite3.connect(&#039;hospital_beacon.db&#039;)<br \/>\n    cursor<br \/>\n&#061; conn.cursor()<br \/>\n    cursor<br \/>\n.execute(&#039;SELECT * FROM beacon_info WHERE beacon_unique_id &#061; ?&#039;, (beacon_id,))<br \/>\n    result<br \/>\n&#061; cursor.fetchone()<br \/>\n    conn<br \/>\n.close()<\/p>\n<p>    if not result:<br \/>\n        return jsonify({&#039;code&#039;: 404, &#039;msg&#039;: &#039;\u4fe1\u6807\u4e0d\u5b58\u5728&#039;, &#039;data&#039;: None})<\/p>\n<p>    # \u6784\u9020\u8fd4\u56de\u6570\u636e<br \/>\n    beacon_data<br \/>\n&#061; {<br \/>\n        &#039;id&#039;: result[0],<br \/>\n        &#039;beacon_unique_id&#039;: result[1],<br \/>\n        &#039;physical_location&#039;: result[2],<br \/>\n        &#039;x&#039;: result[3],<br \/>\n        &#039;y&#039;: result[4],<br \/>\n        &#039;install_time&#039;: result[5],<br \/>\n        &#039;status&#039;: result[6]<br \/>\n    }<br \/>\n    return jsonify({&#039;code&#039;: 200, &#039;msg&#039;: &#039;\u67e5\u8be2\u6210\u529f&#039;, &#039;data&#039;: beacon_data})<\/p>\n<p>&#064;app.route(&#039;\/api\/location\/fingerprint&#039;, methods&#061;[&#039;POST&#039;])<br \/>\ndef fingerprint_location():<br \/>\n    &#034;&#034;&#034;\u6307\u7eb9\u5b9a\u4f4d\u6838\u5fc3\u63a5\u53e3&#xff1a;\u63a5\u6536\u524d\u7aef\u63d0\u4ea4\u7684\u4fe1\u6807RSSI\u5217\u8868&#xff0c;\u5339\u914d\u6307\u7eb9\u5e93\u8fd4\u56de\u7269\u7406\u4f4d\u7f6e&#034;&#034;&#034;<br \/>\n    try:<br \/>\n        # \u63a5\u6536\u524d\u7aef\u63d0\u4ea4\u7684\u6570\u636e&#xff08;JSON\u683c\u5f0f&#xff1a;{&#034;beacon_rssi_map&#034;: {&#034;789&#034;: -52, &#034;123&#034;: -72}}&#xff09;<br \/>\n        req_data<br \/>\n&#061; request.get_json()<br \/>\n        current_beacon_rssi<br \/>\n&#061; req_data.get(&#039;beacon_rssi_map&#039;)<br \/>\n        if not current_beacon_rssi or not isinstance(current_beacon_rssi, dict):<br \/>\n            return jsonify({&#039;code&#039;: 400, &#039;msg&#039;: &#039;\u65e0\u6548\u7684\u4fe1\u6807RSSI\u6570\u636e&#039;, &#039;data&#039;: None})<\/p>\n<p>        # 1. \u4ece\u6307\u7eb9\u5e93\u4e2d\u8bfb\u53d6\u6240\u6709\u6709\u6548\u6307\u7eb9<br \/>\n        conn<br \/>\n&#061; sqlite3.connect(&#039;hospital_beacon.db&#039;)<br \/>\n        cursor<br \/>\n&#061; conn.cursor()<br \/>\n        cursor<br \/>\n.execute(&#039;SELECT physical_location, beacon_rssi_map FROM location_fingerprint&#039;)<br \/>\n        fingerprints<br \/>\n&#061; cursor.fetchall()<br \/>\n        conn<br \/>\n.close()<\/p>\n<p>        if not fingerprints:<br \/>\n            return jsonify({&#039;code&#039;: 404, &#039;msg&#039;: &#039;\u6307\u7eb9\u5e93\u4e3a\u7a7a&#xff0c;\u65e0\u6cd5\u8fdb\u884c\u5b9a\u4f4d&#039;, &#039;data&#039;: None})<\/p>\n<p>        # 2. \u6838\u5fc3\u5339\u914d\u903b\u8f91&#xff1a;\u8ba1\u7b97\u5f53\u524dRSSI\u4e0e\u6307\u7eb9\u5e93\u4e2d\u6bcf\u6761\u8bb0\u5f55\u7684\u300c\u76f8\u4f3c\u5ea6\u300d&#xff08;\u8bef\u5dee\u5e73\u65b9\u548c\u6700\u5c0f&#xff09;<br \/>\n        min_error<br \/>\n&#061; float(&#039;inf&#039;)  # \u6700\u5c0f\u8bef\u5dee\u503c<br \/>\n        best_location<br \/>\n&#061; None      # \u5339\u914d\u5230\u7684\u6700\u4f73\u7269\u7406\u4f4d\u7f6e<\/p>\n<p>        for location, fingerprint_rssi_str in fingerprints:<br \/>\n            # \u89e3\u6790\u6307\u7eb9\u5e93\u4e2d\u7684RSSI\u6620\u5c04&#xff08;\u5b57\u7b26\u4e32\u8f6c\u5b57\u5178&#xff09;<br \/>\n            import<br \/>\n json<br \/>\n            try:<br \/>\n                fingerprint_rssi<br \/>\n&#061; json.loads(fingerprint_rssi_str)<br \/>\n            except:<br \/>\n                continue<\/p>\n<p>            # \u8ba1\u7b97\u8bef\u5dee\u5e73\u65b9\u548c&#xff08;\u53ea\u5bf9\u6bd4\u53cc\u65b9\u90fd\u5b58\u5728\u7684\u4fe1\u6807ID&#xff09;<br \/>\n            error_sum<br \/>\n&#061; 0<br \/>\n            common_beacons<br \/>\n&#061; set(current_beacon_rssi.keys()) &amp; set(fingerprint_rssi.keys())<br \/>\n            if not common_beacons:<br \/>\n                continue<\/p>\n<p>            for beacon_id in common_beacons:<br \/>\n                current_rssi<br \/>\n&#061; int(current_beacon_rssi[beacon_id])<br \/>\n                fingerprint_rssi_val<br \/>\n&#061; int(fingerprint_rssi[beacon_id])<br \/>\n                error_sum<br \/>\n&#043;&#061; (current_rssi &#8211; fingerprint_rssi_val) ** 2<\/p>\n<p>            # \u66f4\u65b0\u6700\u5c0f\u8bef\u5dee\u548c\u6700\u4f73\u4f4d\u7f6e<br \/>\n            if error_sum &lt; min_error:<br \/>\n                min_error<br \/>\n&#061;<br \/>\n error_sum<br \/>\n                best_location<br \/>\n&#061;<br \/>\n location<\/p>\n<p>        # 3. \u8fd4\u56de\u5b9a\u4f4d\u7ed3\u679c<br \/>\n        if best_location:<br \/>\n            return jsonify({&#039;code&#039;: 200, &#039;msg&#039;: &#039;\u5b9a\u4f4d\u6210\u529f&#039;, &#039;data&#039;: {&#039;physical_location&#039;: best_location}})<br \/>\n        else:<br \/>\n            return jsonify({&#039;code&#039;: 500, &#039;msg&#039;: &#039;\u672a\u5339\u914d\u5230\u6709\u6548\u4f4d\u7f6e&#039;, &#039;data&#039;: None})<\/p>\n<p>    except Exception as e:<br \/>\n        return jsonify({&#039;code&#039;: 500, &#039;msg&#039;: f&#039;\u670d\u52a1\u5668\u5f02\u5e38&#xff1a;{str(e)}&#039;, &#039;data&#039;: None})<\/p>\n<p>&#064;app.route(&#039;\/api\/location\/triangle&#039;, methods&#061;[&#039;POST&#039;])<br \/>\ndef triangle_location():<br \/>\n    &#034;&#034;&#034;\u4e09\u89d2\u5b9a\u4f4d\u6838\u5fc3\u63a5\u53e3&#xff08;\u8865\u5145&#xff09;&#xff1a;\u6839\u636e\u4fe1\u6807\u5750\u6807\u548cRSSI\u8ba1\u7b97\u7528\u6237\u4f4d\u7f6e&#034;&#034;&#034;<br \/>\n    try:<br \/>\n        # \u63a5\u6536\u524d\u7aef\u6570\u636e&#xff1a;{&#034;beacon_list&#034;: [{&#034;id&#034;: &#034;789&#034;, &#034;rssi&#034;: -50}, {&#034;id&#034;: &#034;123&#034;, &#034;rssi&#034;: -70}]}<br \/>\n        req_data<br \/>\n&#061; request.get_json()<br \/>\n        beacon_list<br \/>\n&#061; req_data.get(&#039;beacon_list&#039;)<br \/>\n        if not beacon_list or not isinstance(beacon_list, list):<br \/>\n            return jsonify({&#039;code&#039;: 400, &#039;msg&#039;: &#039;\u65e0\u6548\u7684\u4fe1\u6807\u6570\u636e&#039;, &#039;data&#039;: None})<\/p>\n<p>        # 1. \u6279\u91cf\u67e5\u8be2\u4fe1\u6807\u5750\u6807\u548c\u53c2\u8003RSSI&#xff08;RSSI0&#xff1a;1\u7c73\u5904\u7684\u4fe1\u53f7\u5f3a\u5ea6&#xff0c;\u9ed8\u8ba4-40&#xff0c;\u5b9e\u9645\u9700\u79bb\u7ebf\u91c7\u96c6&#xff09;<br \/>\n        beacon_coords<br \/>\n&#061; {}<br \/>\n        for beacon in beacon_list:<br \/>\n            beacon_id<br \/>\n&#061; beacon.get(&#039;id&#039;)<br \/>\n            if not beacon_id:<br \/>\n                continue<br \/>\n            conn<br \/>\n&#061; sqlite3.connect(&#039;hospital_beacon.db&#039;)<br \/>\n            cursor<br \/>\n&#061; conn.cursor()<br \/>\n            cursor<br \/>\n.execute(&#039;SELECT x, y FROM beacon_info WHERE beacon_unique_id &#061; ?&#039;, (beacon_id,))<br \/>\n            result<br \/>\n&#061; cursor.fetchone()<br \/>\n            conn<br \/>\n.close()<br \/>\n            if result:<br \/>\n                beacon_coords<br \/>\n[beacon_id] &#061; {<br \/>\n                    &#039;x&#039;: result[0],<br \/>\n                    &#039;y&#039;: result[1],<br \/>\n                    &#039;rssi&#039;: beacon.get(&#039;rssi&#039;, -100)<br \/>\n                }<\/p>\n<p>        if len(beacon_coords) &lt; 3:<br \/>\n            return jsonify({&#039;code&#039;: 400, &#039;msg&#039;: &#039;\u4e09\u89d2\u5b9a\u4f4d\u9700\u8981\u81f3\u5c113\u4e2a\u6709\u6548\u4fe1\u6807&#039;, &#039;data&#039;: None})<\/p>\n<p>        # 2. RSSI\u8f6c\u8ddd\u79bb&#xff08;\u7ecf\u5178\u5bf9\u6570\u8ddd\u79bb\u8def\u5f84\u635f\u8017\u6a21\u578b&#xff09;<br \/>\n        # \u516c\u5f0f&#xff1a;d &#061; 10^((RSSI0 &#8211; RSSI) \/ (10 * n))<br \/>\n        # RSSI0&#xff1a;1\u7c73\u5904\u4fe1\u53f7\u5f3a\u5ea6&#xff08;\u9ed8\u8ba4-40&#xff09;&#xff0c;n&#xff1a;\u8def\u5f84\u635f\u8017\u6307\u6570&#xff08;\u5ba4\u5185\u53d62.5~3.5&#xff0c;\u8fd9\u91cc\u53d63.0&#xff09;<br \/>\n        RSSI0<br \/>\n&#061; -40<br \/>\n        n<br \/>\n&#061; 3.0<br \/>\n        beacon_distances<br \/>\n&#061; []<br \/>\n        for beacon_id, data in beacon_coords.items():<br \/>\n            rssi<br \/>\n&#061; data[&#039;rssi&#039;]<br \/>\n            if rssi &#061;&#061; 0:<br \/>\n                distance<br \/>\n&#061; 0<br \/>\n            else:<br \/>\n                distance<br \/>\n&#061; math.pow(10, (RSSI0 &#8211; rssi) \/ (10 * n))<br \/>\n            beacon_distances<br \/>\n.append({<br \/>\n                &#039;x&#039;: data[&#039;x&#039;],<br \/>\n                &#039;y&#039;: data[&#039;y&#039;],<br \/>\n                &#039;d&#039;:<br \/>\n distance<br \/>\n            })<\/p>\n<p>        # 3. \u4e09\u70b9\u5b9a\u4f4d\u89e3\u7b97&#xff08;\u7b80\u5316\u7248&#xff0c;\u57fa\u4e8e\u5e73\u9762\u76f4\u89d2\u5750\u6807\u7cfb&#xff09;<br \/>\n        A<br \/>\n, B, C &#061; beacon_distances[0], beacon_distances[1], beacon_distances[2]<br \/>\n        # \u89e3\u7b97\u516c\u5f0f&#xff08;\u63a8\u5bfc\u7565&#xff0c;\u9002\u5408\u65b0\u624b\u76f4\u63a5\u4f7f\u7528&#xff09;<br \/>\n        x1<br \/>\n, y1, d1 &#061; A[&#039;x&#039;], A[&#039;y&#039;], A[&#039;d&#039;]<br \/>\n        x2<br \/>\n, y2, d2 &#061; B[&#039;x&#039;], B[&#039;y&#039;], B[&#039;d&#039;]<br \/>\n        x3<br \/>\n, y3, d3 &#061; C[&#039;x&#039;], C[&#039;y&#039;], C[&#039;d&#039;]<\/p>\n<p>        # \u907f\u514d\u9664\u96f6\u9519\u8bef<br \/>\n        denominator<br \/>\n&#061; 2 * ((y3 &#8211; y1) * (x2 &#8211; x1) &#8211; (y2 &#8211; y1) * (x3 &#8211; x1))<br \/>\n        if denominator &#061;&#061; 0:<br \/>\n            return jsonify({&#039;code&#039;: 500, &#039;msg&#039;: &#039;\u4fe1\u6807\u5e03\u5c40\u4e0d\u5408\u7406&#xff0c;\u65e0\u6cd5\u89e3\u7b97&#039;, &#039;data&#039;: None})<\/p>\n<p>        # \u8ba1\u7b97\u7528\u6237\u5750\u6807(x, y)<br \/>\n        x<br \/>\n&#061; (<br \/>\n            (y3 &#8211; y1) * (x2**2 &#8211; x1**2 &#043; y2**2 &#8211; y1**2 &#043; d1**2 &#8211; d2**2)<br \/>\n            &#8211; (y2 &#8211; y1) * (x3**2 &#8211; x1**2 &#043; y3**2 &#8211; y1**2 &#043; d1**2 &#8211; d3**2)<br \/>\n        ) \/<br \/>\n denominator<\/p>\n<p>        y<br \/>\n&#061; (<br \/>\n            (x2 &#8211; x1) * (x3**2 &#8211; x1**2 &#043; y3**2 &#8211; y1**2 &#043; d1**2 &#8211; d3**2)<br \/>\n            &#8211; (x3 &#8211; x1) * (x2**2 &#8211; x1**2 &#043; y2**2 &#8211; y1**2 &#043; d1**2 &#8211; d2**2)<br \/>\n        ) \/<br \/>\n denominator<\/p>\n<p>        # 4. \u5339\u914d\u6700\u8fd1\u7684\u7269\u7406\u4f4d\u7f6e&#xff08;\u7b80\u5316&#xff1a;\u8fd4\u56de\u5750\u6807&#043;\u6700\u8fd1\u7684\u4fe1\u6807\u4f4d\u7f6e&#xff09;<br \/>\n        conn<br \/>\n&#061; sqlite3.connect(&#039;hospital_beacon.db&#039;)<br \/>\n        cursor<br \/>\n&#061; conn.cursor()<br \/>\n        cursor<br \/>\n.execute(&#039;SELECT physical_location, x, y FROM beacon_info&#039;)<br \/>\n        all_beacons<br \/>\n&#061; cursor.fetchall()<br \/>\n        conn<br \/>\n.close()<\/p>\n<p>        nearest_location<br \/>\n&#061; None<br \/>\n        min_dist<br \/>\n&#061; float(&#039;inf&#039;)<br \/>\n        for loc, bx, by in all_beacons:<br \/>\n            dist<br \/>\n&#061; math.hypot(x &#8211; bx, y &#8211; by)<br \/>\n            if dist &lt; min_dist:<br \/>\n                min_dist<br \/>\n&#061;<br \/>\n dist<br \/>\n                nearest_location<br \/>\n&#061;<br \/>\n loc<\/p>\n<p>        return jsonify({<br \/>\n            &#039;code&#039;: 200,<br \/>\n            &#039;msg&#039;: &#039;\u5b9a\u4f4d\u6210\u529f&#039;,<br \/>\n            &#039;data&#039;: {<br \/>\n                &#039;user_coords&#039;: {&#039;x&#039;: round(x, 2), &#039;y&#039;: round(y, 2)},<br \/>\n                &#039;nearest_physical_location&#039;:<br \/>\n nearest_location<br \/>\n            }<br \/>\n        })<\/p>\n<p>    except Exception as e:<br \/>\n        return jsonify({&#039;code&#039;: 500, &#039;msg&#039;: f&#039;\u670d\u52a1\u5668\u5f02\u5e38&#xff1a;{str(e)}&#039;, &#039;data&#039;: None})<\/p>\n<p># \u542f\u52a8\u670d\u52a1<br \/>\nif __name__ &#061;&#061; &#039;__main__&#039;:<br \/>\n    app<br \/>\n.run(host&#061;&#039;0.0.0.0&#039;, port&#061;5000, debug&#061;True)<br \/>\n&#xfffc;<\/p>\n<h3 style=\"text-align:left\">\u4e8c\u3001\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u7684\u6838\u5fc3\u529f\u80fd<\/h3>\n<h4 style=\"text-align:left\">1.<span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u60a3\u8005\u5b89\u5168\u4e0e\u667a\u80fd\u76d1\u62a4<\/span><\/span><\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\"><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u5b9e\u65f6\u5b9a\u4f4d\u4e0e\u7535\u5b50\u56f4\u680f&#xff1a;\u52a8\u6001\u8ffd\u8e2a\u7279\u6b8a\u60a3\u8005\u4f4d\u7f6e&#xff0c;\u8d8a\u754c\u3001\u6ede\u7559\u3001\u805a\u96c6\u81ea\u52a8\u544a\u8b66<\/span><\/span>\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\"><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u4e00\u952eSOS\u7d27\u6025\u547c\u53eb&#xff1a;\u60a3\u8005\u89e6\u53d1\u6c42\u52a9&#xff0c;\u7ba1\u7406\u5e73\u53f0\u5373\u65f6\u63a5\u6536\u4f4d\u7f6e\u4fe1\u606f\u5e76\u8054\u52a8\u54cd\u5e94\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u8f68\u8ff9\u8ffd\u6eaf\u4e0e\u884c\u4e3a\u5206\u6790&#xff1a;\u5b8c\u6574\u8fd8\u539f\u4eba\u5458\u5386\u53f2\u6d3b\u52a8\u8f68\u8ff9&#xff0c;\u4e3a\u4f18\u5316\u670d\u52a1\u6d41\u7a0b\u63d0\u4f9b\u6570\u636e\u652f\u6491\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260129134135-697b638fceff1.jpg\" \/><\/p>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">2.<span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u6bcd\u5a74\u5b89\u5168\u4fdd\u969c\u4f53\u7cfb<\/span><\/span><\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u65b0\u751f\u513f\u9632\u76d7\u5b9a\u4f4d&#xff1a;\u5b9e\u65f6\u76d1\u63a7\u5a74\u513f\u4f4d\u7f6e&#xff0c;\u975e\u6cd5\u79bb\u5e8a\u3001\u8155\u5e26\u526a\u65ad\u5373\u65f6\u544a\u8b66&#xff0c;\u675c\u7edd\u5b89\u5168\u9690\u60a3<\/span><\/span><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u533a\u57df\u667a\u80fd\u7ba1\u63a7&#xff1a;\u5bf9\u4ea7\u623f\u3001\u65b0\u751f\u513f\u5ba4\u7b49\u91cd\u70b9\u533a\u57df\u5b9e\u73b0\u7535\u5b50\u56f4\u680f\u9632\u62a4\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260129134136-697b63900e14b.jpg\" \/><\/p>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\"><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">3.<\/span><\/span><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u533b\u62a4\u7ba1\u7406\u4e0e\u8fd0\u8425\u589e\u6548<\/span><\/span><\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u533b\u62a4\u4eba\u5458\u5b9a\u4f4d\u4e0e\u8c03\u5ea6&#xff1a;\u5feb\u901f\u5b9a\u4f4d\u533b\u62a4\u4f4d\u7f6e&#xff0c;\u5b9e\u73b0\u7d27\u6025\u4e8b\u4ef6\u4e00\u952e\u8c03\u5ea6\u3001\u5c31\u8fd1\u652f\u63f4\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\"><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u667a\u80fd\u5de1\u68c0\u4e0e\u7b7e\u5230&#xff1a;\u89c4\u8303\u5de1\u68c0\u8def\u7ebf\u4e0e\u5728\u5c97\u7ba1\u7406&#xff0c;\u81ea\u52a8\u751f\u6210\u5230\u5c97\u8bb0\u5f55\u4e0e\u5de5\u4f5c\u91cf\u62a5\u8868\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\"><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260129134136-697b63903d5e7.jpg\" \/><\/span><\/span><\/p>\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\"><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">4.<\/span><\/span><span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u5168\u9662\u53ef\u89c6\u5316\u4e0e\u51b3\u7b56\u652f\u6301<\/span><\/span><\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u4eba\u6d41\u91cf\u70ed\u529b\u56fe\u4e0e\u5206\u6790\u770b\u677f&#xff1a;<span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u5b9e\u65f6\u5448\u73b0\u533a\u57df\u4eba\u6d41\u5bc6\u5ea6&#xff0c;\u8f85\u52a9\u758f\u5bfc\u5206\u6d41\u4e0e\u8d44\u6e90\u8c03\u914d<\/span><\/span>\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u5b89\u9632\u8054\u52a8<span style=\"background-color:#ffffff\"><span style=\"color:#0f1115\">\u4e0e\u5e94\u6025\u6307\u6325<\/span><\/span>&#xff1a;\u4e0e\u533a\u57df\u5185\u7684\u6444\u50cf\u5934\u8054\u52a8&#xff0c;\u7a81\u53d1\u4e8b\u4ef6\u5feb\u901f\u5b9a\u4f4d\u4e0e\u53ef\u89c6\u5316\u5904\u7f6e\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260129134136-697b63906c8be.jpg\" \/><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u84dd\u7259\u4fe1\u6807\u4f5c\u4e3a\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u7684\u201c\u795e\u7ecf\u672b\u68a2\u201d&#xff0c;\u662f\u5b9e\u73b0\u4f4e\u6210\u672c\u3001\u9ad8\u8986\u76d6\u5ba4\u5185\u5b9a\u4f4d\u670d\u52a1\u7684\u5173\u952e\u57fa\u7840\u8bbe\u65bd\u3002\u5b83\u4e0d\u4ec5\u63d0\u4f9b\u7cbe\u51c6\u7684\u5bfc\u822a\u8def\u6807&#xff0c;\u66f4\u662f\u9690\u5f62\u7684\u5b89\u5168\u5b88\u62a4\u8005&#xff0c;\u901a\u8fc7\u4f18\u5316\u4eba\u5458\u6d41\u52a8\u7ba1\u7406\u3001\u63d0\u5347\u5e94\u6025\u54cd\u5e94\u6548\u7387&#xff0c;\u4e3a\u6784\u5efa\u5b89\u5168\u3001\u9ad8\u6548\u3001\u4eba\u6027\u5316\u7684\u667a\u6167\u533b\u9662\u63d0\u4f9b\u6838\u5fc3\u652f\u6491\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u5e0c\u671b\u672c\u7bc7\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9~\u70b9\u51fb\u4e0b\u65b9\u53ef\u83b7\u53d6\u514d\u8d39\u83b7\u53d6\u6280\u672f\u6587\u6863\u548c\u89e3\u51b3\u65b9\u6848\u2193\u2193\u2193\u2193\u2193\u2193\u2193<\/p>\n","protected":false},"excerpt":{"rendered":"<p>hello~\u8fd9\u91cc\u662f\u7ef4\u6784lbs\u667a\u80fd\u5b9a\u4f4d&#xff0c;\u5982\u679c\u6709\u9879\u76ee\u9700\u6c42\u548c\u6280\u672f\u4ea4\u6d41\u6b22\u8fce\u6765\u79c1\u4fe1\u6211\u4eec~\u70b9\u51fb\u6587\u7ae0\u6700\u4e0b\u65b9\u53ef\u83b7\u53d6\u514d\u8d39\u83b7\u53d6\u6280\u672f\u6587\u6863\u548c\u89e3\u51b3\u65b9\u6848\u60a3\u8005\u5b89\u5168\u4e0e\u884c\u4e3a\u7ba1\u7406\u96be&#xff1f;\u5173\u952e\u533a\u57df\u4eba\u5458\u7ba1\u63a7\u96be&#xff1f;\u84dd\u7259\u4fe1\u6807\u80fd\u505a\u5230\u7cbe\u51c6\u5b9a\u4f4d&#xff0c;\u5b9e\u73b0\u667a\u6167\u533b\u9662\u7684\u7f8e\u597d\u56fe\u666f&#xff0c;\u8ba9\u533b\u9662\u7ba1\u7406\u771f\u6b63\u5b9e\u73b0\u201c\u770b\u5f97\u89c1\u3001\u7ba1\u5f97\u51c6\u3001\u54cd\u5e94\u5feb\u201d&#xff01;\u672c\u6587\u5c06\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u5c55\u5f00\u8bba\u8ff0\u3002\u4e00\u3001\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u539f\u7406\u84dd\u7259\u4fe1\u6807\u4f5c\u4e3a\u4e00\u79cd\u5c0f\u578b\u3001\u4f4e\u529f\u8017\u3001\u4f4e\u6210\u672c\u7684\u65e0\u7ebf\u4fe1\u53f7\u53d1\u5c04\u88c5\u7f6e&amp;#xff0c<\/p>\n","protected":false},"author":2,"featured_media":68216,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7201],"topic":[],"class_list":["post-68220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-7201"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/68220.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"hello~\u8fd9\u91cc\u662f\u7ef4\u6784lbs\u667a\u80fd\u5b9a\u4f4d&#xff0c;\u5982\u679c\u6709\u9879\u76ee\u9700\u6c42\u548c\u6280\u672f\u4ea4\u6d41\u6b22\u8fce\u6765\u79c1\u4fe1\u6211\u4eec~\u70b9\u51fb\u6587\u7ae0\u6700\u4e0b\u65b9\u53ef\u83b7\u53d6\u514d\u8d39\u83b7\u53d6\u6280\u672f\u6587\u6863\u548c\u89e3\u51b3\u65b9\u6848\u60a3\u8005\u5b89\u5168\u4e0e\u884c\u4e3a\u7ba1\u7406\u96be&#xff1f;\u5173\u952e\u533a\u57df\u4eba\u5458\u7ba1\u63a7\u96be&#xff1f;\u84dd\u7259\u4fe1\u6807\u80fd\u505a\u5230\u7cbe\u51c6\u5b9a\u4f4d&#xff0c;\u5b9e\u73b0\u667a\u6167\u533b\u9662\u7684\u7f8e\u597d\u56fe\u666f&#xff0c;\u8ba9\u533b\u9662\u7ba1\u7406\u771f\u6b63\u5b9e\u73b0\u201c\u770b\u5f97\u89c1\u3001\u7ba1\u5f97\u51c6\u3001\u54cd\u5e94\u5feb\u201d&#xff01;\u672c\u6587\u5c06\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u5c55\u5f00\u8bba\u8ff0\u3002\u4e00\u3001\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u539f\u7406\u84dd\u7259\u4fe1\u6807\u4f5c\u4e3a\u4e00\u79cd\u5c0f\u578b\u3001\u4f4e\u529f\u8017\u3001\u4f4e\u6210\u672c\u7684\u65e0\u7ebf\u4fe1\u53f7\u53d1\u5c04\u88c5\u7f6e&amp;#xff0c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/68220.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-29T13:41:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260129134135-697b638fceff1.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/68220.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/68220.html\",\"name\":\"\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-29T13:41:37+00:00\",\"dateModified\":\"2026-01-29T13:41:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/68220.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/68220.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/68220.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u8be6\u89e3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/68220.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"hello~\u8fd9\u91cc\u662f\u7ef4\u6784lbs\u667a\u80fd\u5b9a\u4f4d&#xff0c;\u5982\u679c\u6709\u9879\u76ee\u9700\u6c42\u548c\u6280\u672f\u4ea4\u6d41\u6b22\u8fce\u6765\u79c1\u4fe1\u6211\u4eec~\u70b9\u51fb\u6587\u7ae0\u6700\u4e0b\u65b9\u53ef\u83b7\u53d6\u514d\u8d39\u83b7\u53d6\u6280\u672f\u6587\u6863\u548c\u89e3\u51b3\u65b9\u6848\u60a3\u8005\u5b89\u5168\u4e0e\u884c\u4e3a\u7ba1\u7406\u96be&#xff1f;\u5173\u952e\u533a\u57df\u4eba\u5458\u7ba1\u63a7\u96be&#xff1f;\u84dd\u7259\u4fe1\u6807\u80fd\u505a\u5230\u7cbe\u51c6\u5b9a\u4f4d&#xff0c;\u5b9e\u73b0\u667a\u6167\u533b\u9662\u7684\u7f8e\u597d\u56fe\u666f&#xff0c;\u8ba9\u533b\u9662\u7ba1\u7406\u771f\u6b63\u5b9e\u73b0\u201c\u770b\u5f97\u89c1\u3001\u7ba1\u5f97\u51c6\u3001\u54cd\u5e94\u5feb\u201d&#xff01;\u672c\u6587\u5c06\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u5c55\u5f00\u8bba\u8ff0\u3002\u4e00\u3001\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u539f\u7406\u84dd\u7259\u4fe1\u6807\u4f5c\u4e3a\u4e00\u79cd\u5c0f\u578b\u3001\u4f4e\u529f\u8017\u3001\u4f4e\u6210\u672c\u7684\u65e0\u7ebf\u4fe1\u53f7\u53d1\u5c04\u88c5\u7f6e&amp;#xff0c","og_url":"https:\/\/www.wsisp.com\/helps\/68220.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-29T13:41:37+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260129134135-697b638fceff1.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/68220.html","url":"https:\/\/www.wsisp.com\/helps\/68220.html","name":"\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-29T13:41:37+00:00","dateModified":"2026-01-29T13:41:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/68220.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/68220.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/68220.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8e\u84dd\u7259\u4fe1\u6807\u6280\u672f\u533b\u9662\u60a3\u8005\u5b9a\u4f4d\u4ece\u539f\u7406\u5230\u6838\u5fc3\u529f\u80fd\u8be6\u89e3"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/68220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=68220"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/68220\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/68216"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=68220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=68220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=68220"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=68220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}