{"id":102522,"date":"2026-09-09T01:40:56","date_gmt":"2026-09-08T17:40:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/102522.html"},"modified":"2026-09-09T01:40:56","modified_gmt":"2026-09-08T17:40:56","slug":"27%e5%b1%8a%e5%a4%a7%e6%a8%a1%e5%9e%8b%e9%9d%a2%e8%af%95%e5%87%86%e5%a4%87%ef%bc%88%e5%85%ab%e5%8d%81%e5%9b%9b%ef%bc%89%ef%bc%9a%e5%a4%a7%e6%a8%a1%e5%9e%8b%e7%bb%9f%e4%b8%80-api-%e7%bd%91%e5%85%b3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/102522.html","title":{"rendered":"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907\uff08\u516b\u5341\u56db\uff09\uff1a\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e"},"content":{"rendered":"<h2>27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907&#xff08;\u516b\u5341\u56db&#xff09;&#xff1a;\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e<\/h2>\n<h3>\u5f15\u8a00<\/h3>\n<p>\u672c\u6587\u662f\u7cfb\u5217\u7b2c 84 \u7bc7&#xff0c;\u4e5f\u662f\u672c\u6279&#xff08;A83\/A84&#xff09;\u7684\u6536\u5c3e\u3002\u524d\u9762\u5404\u7bc7\u8bb2\u7684\u90fd\u662f&#034;\u600e\u4e48\u628a\u5355\u4e2a\u6a21\u578b\u670d\u52a1\u597d&#034;&#xff0c;\u8fd9\u4e00\u7bc7\u8bb2\u5b83\u4e0a\u9762\u90a3\u5c42&#xff1a;\u5f53\u4e00\u4e2a\u7ec4\u7ec7\u91cc\u540c\u65f6\u7528\u7740\u81ea\u7814\u6a21\u578b\u3001\u51e0\u5bb6\u4e91\u5382\u5546 API\u3001\u5f00\u6e90\u81ea\u5efa\u670d\u52a1&#xff0c;\u600e\u4e48\u7ed9\u4e1a\u52a1\u65b9\u63d0\u4f9b\u4e00\u4e2a\u7a33\u5b9a\u3001\u7edf\u4e00\u3001\u53ef\u63a7\u7684\u5165\u53e3\u3002\u8fd9\u5c31\u662f\u5927\u6a21\u578b\u7edf\u4e00\u7f51\u5173&#xff08;LLM Gateway&#xff09;\u3002<\/p>\n<p>\u8fd9\u662f\u4f01\u4e1a\u843d\u5730\u5927\u6a21\u578b\u51e0\u4e4e\u5fc5\u7136\u8981\u5efa\u7684\u4e00\u5c42&#xff1a;\u6ca1\u6709\u5b83&#xff0c;\u6bcf\u4e2a\u4e1a\u52a1\u5404\u81ea\u63a5 API&#xff0c;\u5bc6\u94a5\u6ee1\u5929\u98de\u3001\u6210\u672c\u5931\u63a7\u3001\u67d0\u5bb6\u5382\u5546\u4e00\u6302\u5168\u7ebf\u5d29\u3001\u60f3\u6362\u6a21\u578b\u8981\u6539\u6240\u6709\u4ee3\u7801\u3002\u9762\u8bd5\u5b98\u95ee&#034;\u4f60\u4eec\u600e\u4e48\u7ba1\u7406\u591a\u4e2a\u6a21\u578b\u7684\u8c03\u7528&#034;\u65f6&#xff0c;\u7f51\u5173\u662f\u6807\u51c6\u7b54\u6848\u3002<\/p>\n<p>\u7edf\u4e00\u7f51\u5173\u67b6\u6784<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n   \u4e1a\u52a1\u65b9&#xff08;\u591a\u56e2\u961f \/ \u591a\u5e94\u7528&#xff09;<br \/>\n        \u2502  \u7edf\u4e00 OpenAI \u517c\u5bb9\u534f\u8bae<br \/>\n        \u25bc<br \/>\n \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n \u2502        \u7edf\u4e00 API \u7f51\u5173               \u2502<br \/>\n \u2502  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u2502<br \/>\n \u2502  \u2502 \u9274\u6743   \u2502 \u8def\u7531   \u2502 \u9650\u6d41\/\u914d\u989d  \u2502 \u2502<br \/>\n \u2502  \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \u2502<br \/>\n \u2502  \u2502 \u964d\u7ea7   \u2502 \u7f13\u5b58   \u2502 \u8ba1\u8d39\/\u8ba1\u91cf  \u2502 \u2502<br \/>\n \u2502  \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 \u2502<br \/>\n \u2502  \u2502 \u5ba1\u8ba1   \u2502 \u8131\u654f   \u2502 \u53ef\u89c2\u6d4b     \u2502 \u2502<br \/>\n \u2502  \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2502<br \/>\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                 \u2502 \u9002\u914d\u5c42<br \/>\n    \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n    \u25bc            \u25bc            \u25bc<br \/>\n \u81ea\u7814\u6a21\u578b     \u4e91\u5382\u5546 A      \u4e91\u5382\u5546 B<br \/>\n (vLLM)      (API)        (API)<\/p>\n<h3>\u4e00\u3001\u4e3a\u4ec0\u4e48\u9700\u8981\u7f51\u5173<\/h3>\n<table>\n<tr>\u75db\u70b9\u65e0\u7f51\u5173\u6709\u7f51\u5173<\/tr>\n<tbody>\n<tr>\n<td>\u5bc6\u94a5\u7ba1\u7406<\/td>\n<td>\u5404\u4e1a\u52a1\u6563\u843d&#xff0c;\u6cc4\u9732\u98ce\u9669\u9ad8<\/td>\n<td>\u96c6\u4e2d\u6258\u7ba1&#xff0c;\u4e1a\u52a1\u4fa7\u65e0\u5bc6\u94a5<\/td>\n<\/tr>\n<tr>\n<td>\u6362\u6a21\u578b<\/td>\n<td>\u6539\u6240\u6709\u4e1a\u52a1\u4ee3\u7801<\/td>\n<td>\u6539\u8def\u7531\u914d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td>\u5382\u5546\u6545\u969c<\/td>\n<td>\u5168\u7ebf\u4e0d\u53ef\u7528<\/td>\n<td>\u81ea\u52a8\u964d\u7ea7\u5230\u5907\u7528\u6a21\u578b<\/td>\n<\/tr>\n<tr>\n<td>\u6210\u672c<\/td>\n<td>\u65e0\u6cd5\u5f52\u56e0&#xff0c;\u65e0\u6cd5\u9650\u5236<\/td>\n<td>\u6309\u56e2\u961f\u8ba1\u91cf\u3001\u8bbe\u9884\u7b97<\/td>\n<\/tr>\n<tr>\n<td>\u5408\u89c4<\/td>\n<td>\u65e0\u6cd5\u7edf\u4e00\u5ba1\u8ba1\u8131\u654f<\/td>\n<td>\u7edf\u4e00\u7b56\u7565<\/td>\n<\/tr>\n<tr>\n<td>\u9650\u6d41<\/td>\n<td>\u5404\u4e1a\u52a1\u5404\u81ea\u4e3a\u653f<\/td>\n<td>\u5168\u5c40\u914d\u989d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6838\u5fc3\u4ef7\u503c\u4e00\u53e5\u8bdd&#xff1a;\u628a&#034;\u7528\u54ea\u4e2a\u6a21\u578b&#034;\u8fd9\u4e2a\u51b3\u7b56\u4ece\u4e1a\u52a1\u4ee3\u7801\u91cc\u62bd\u51fa\u6765&#xff0c;\u53d8\u6210\u53ef\u8fd0\u884c\u65f6\u8c03\u6574\u7684\u6cbb\u7406\u95ee\u9898\u3002<\/p>\n<h3>\u4e8c\u3001\u534f\u8bae\u7edf\u4e00&#xff1a;OpenAI \u517c\u5bb9\u5c42<\/h3>\n<p>\u4e8b\u5b9e\u6807\u51c6\u662f\u628a\u6240\u6709\u540e\u7aef&#xff08;\u65e0\u8bba\u81ea\u7814 vLLM\u3001\u5404\u5bb6\u4e91 API&#xff09;\u7edf\u4e00\u9002\u914d\u6210 OpenAI \u517c\u5bb9\u7684 \/v1\/chat\/completions \u534f\u8bae\u3002\u597d\u5904\u662f\u751f\u6001\u5de5\u5177&#xff08;SDK\u3001LangChain\u3001\u5404\u7c7b Agent \u6846\u67b6&#xff09;\u5f00\u7bb1\u53ef\u7528&#xff0c;\u4e1a\u52a1\u4fa7\u96f6\u6539\u9020\u3002<\/p>\n<p># \u9002\u914d\u5c42&#xff1a;\u628a\u4e0d\u540c\u540e\u7aef\u7edf\u4e00\u4e3a\u540c\u4e00\u63a5\u53e3<br \/>\nclass ProviderAdapter:<br \/>\n    def __init__(self, name, client, model_map):<br \/>\n        self.name, self.client, self.model_map &#061; name, client, model_map<\/p>\n<p>    async def chat(self, req):<br \/>\n        real_model &#061; self.model_map.get(req.model, req.model)<br \/>\n        try:<br \/>\n            return await self.client.chat_completions(<br \/>\n                model&#061;real_model, messages&#061;req.messages,<br \/>\n                temperature&#061;req.temperature, max_tokens&#061;req.max_tokens,<br \/>\n                stream&#061;req.stream)<br \/>\n        except ProviderError as e:<br \/>\n            raise UpstreamError(provider&#061;self.name, cause&#061;e)<\/p>\n<p>\u6ce8\u610f\u6a21\u578b\u540d\u6620\u5c04&#xff1a;\u4e1a\u52a1\u65b9\u7528\u903b\u8f91\u540d&#xff08;\u5982 gpt-pro\u3001gpt-lite&#xff09;&#xff0c;\u7f51\u5173\u6620\u5c04\u5230\u5177\u4f53\u5382\u5546\u4e0e\u7248\u672c\u3002\u8fd9\u6837\u6362\u5382\u5546\u65f6\u4e1a\u52a1\u5b8c\u5168\u65e0\u611f\u3002<\/p>\n<h3>\u4e09\u3001\u8def\u7531\u7b56\u7565<\/h3>\n<p>\u8def\u7531\u662f\u7f51\u5173\u7684\u7075\u9b42&#xff0c;\u5e38\u89c1\u7ef4\u5ea6&#xff1a;<\/p>\n<table>\n<tr>\u7b56\u7565\u8bf4\u660e\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>\u6309\u6a21\u578b\u540d<\/td>\n<td>\u903b\u8f91\u540d\u6620\u5c04<\/td>\n<td>\u57fa\u7840<\/td>\n<\/tr>\n<tr>\n<td>\u6309\u6210\u672c<\/td>\n<td>\u4fbf\u5b9c\u6a21\u578b\u4f18\u5148&#xff0c;\u8d85\u9884\u7b97\u964d\u7ea7<\/td>\n<td>\u6210\u672c\u654f\u611f<\/td>\n<\/tr>\n<tr>\n<td>\u6309\u5ef6\u8fdf<\/td>\n<td>\u9009\u6700\u5feb\u53ef\u7528\u540e\u7aef<\/td>\n<td>\u5b9e\u65f6\u4ea4\u4e92<\/td>\n<\/tr>\n<tr>\n<td>\u6309\u5185\u5bb9<\/td>\n<td>\u957f\u4e0a\u4e0b\u6587\/\u591a\u6a21\u6001\u8d70\u7279\u5b9a\u540e\u7aef<\/td>\n<td>\u80fd\u529b\u5339\u914d<\/td>\n<\/tr>\n<tr>\n<td>\u6309\u79df\u6237<\/td>\n<td>\u4e0d\u540c\u79df\u6237\u4e0d\u540c\u540e\u7aef&#xff08;\u5408\u89c4\u9694\u79bb&#xff09;<\/td>\n<td>B \u7aef<\/td>\n<\/tr>\n<tr>\n<td>\u6309\u6743\u91cd<\/td>\n<td>\u7070\u5ea6\/AB \u5206\u6d41<\/td>\n<td>\u65b0\u6a21\u578b\u4e0a\u7ebf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>def route(req, ctx, candidates):<br \/>\n    # 1. \u786c\u6027\u7ea6\u675f\u8fc7\u6ee4&#xff1a;\u4e0a\u4e0b\u6587\u957f\u5ea6\u3001\u591a\u6a21\u6001\u80fd\u529b\u3001\u5408\u89c4\u533a\u57df<br \/>\n    cands &#061; [c for c in candidates if c.max_ctx &gt;&#061; req.est_tokens<br \/>\n             and (not req.has_image or c.supports_vision)<br \/>\n             and c.region_allowed(ctx.tenant)]<br \/>\n    if not cands:<br \/>\n        raise NoAvailableProvider()<br \/>\n    # 2. \u6210\u672c\u4f18\u5148 &#043; \u5ef6\u8fdf\u7ea6\u675f<br \/>\n    cands &#061; [c for c in cands if c.p95_latency_ms &lt;&#061; ctx.sla_ms] or cands<br \/>\n    return min(cands, key&#061;lambda c: c.cost_per_1k_tokens)<\/p>\n<p>\u5173\u952e\u5de5\u7a0b\u70b9&#xff1a;\u8def\u7531\u5fc5\u987b\u6709\u786c\u6027\u7ea6\u675f\u8fc7\u6ee4&#xff08;\u80fd\u529b\u3001\u5408\u89c4&#xff09;\u5728\u524d&#xff0c;\u6210\u672c\/\u5ef6\u8fdf\u4f18\u5316\u5728\u540e\u3002\u987a\u5e8f\u53cd\u4e86\u4f1a\u628a\u591a\u6a21\u6001\u8bf7\u6c42\u8def\u7531\u5230\u4e0d\u652f\u6301\u89c6\u89c9\u7684\u5ec9\u4ef7\u6a21\u578b\u3002<\/p>\n<h3>\u56db\u3001\u964d\u7ea7\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e<\/h3>\n<p>\u5355\u4f9b\u5e94\u5546\u6545\u969c\u662f\u5fc5\u7136\u4e8b\u4ef6\u3002\u7f51\u5173\u8981\u63d0\u4f9b\u81ea\u52a8\u964d\u7ea7\u94fe&#xff1a;<\/p>\n<p>\u964d\u7ea7\u94fe&#xff08;\u793a\u4f8b&#xff09;<br \/>\n\u4e3b\u6a21\u578b&#xff1a;\u81ea\u7814 vLLM \u96c6\u7fa4<br \/>\n  \u251c\u2500 \u6545\u969c\/\u8d85\u65f6 \u2500&gt; \u4e91\u5382\u5546 A \u540c\u6863\u6a21\u578b<br \/>\n  \u2502                 \u251c\u2500 \u4e5f\u6545\u969c \u2500&gt; \u4e91\u5382\u5546 B<br \/>\n  \u2502                 \u2514\u2500 \u5168\u6302 \u2500&gt; \u5c0f\u6a21\u578b\u515c\u5e95 \/ \u7f13\u5b58\u515c\u5e95 \/ \u660e\u786e\u62a5\u9519<br \/>\n  \u2514\u2500 \u6210\u672c\u8d85\u9884\u7b97 \u2500&gt; \u964d\u7ea7\u5230\u4fbf\u5b9c\u6863\u6a21\u578b<\/p>\n<p>FALLBACK_CHAIN &#061; [&#034;selfhost-70b&#034;, &#034;vendorA-pro&#034;, &#034;vendorB-pro&#034;, &#034;selfhost-7b&#034;]<\/p>\n<p>async def chat_with_fallback(req, ctx):<br \/>\n    errors &#061; []<br \/>\n    for name in FALLBACK_CHAIN:<br \/>\n        if not health_ok(name):<br \/>\n            continue<br \/>\n        try:<br \/>\n            return await PROVIDERS[name].chat(req)<br \/>\n        except UpstreamError as e:<br \/>\n            errors.append((name, str(e)))<br \/>\n            circuit.record_failure(name)     # \u7194\u65ad\u8ba1\u6570<br \/>\n    raise AllProvidersFailed(errors)<\/p>\n<p>\u914d\u5957\u4e09\u4ef6\u4e8b&#xff1a;\u5065\u5eb7\u68c0\u67e5\/\u7194\u65ad&#xff08;\u8fde\u7eed\u5931\u8d25\u5373\u4e34\u65f6\u6458\u9664&#xff09;\u3001\u8d85\u65f6\u4e0e\u91cd\u8bd5\u9884\u7b97&#xff08;\u91cd\u8bd5\u4e0d\u8d85\u8fc7 1 \u6b21&#xff0c;\u907f\u514d\u96ea\u5d29&#xff09;\u3001\u964d\u7ea7\u53ef\u611f\u77e5&#xff08;\u54cd\u5e94\u5934\u91cc\u544a\u77e5\u5b9e\u9645\u7528\u4e86\u54ea\u4e2a\u6a21\u578b&#xff0c;\u4fbf\u4e8e\u6392\u67e5&#xff09;\u3002<\/p>\n<h3>\u4e94\u3001\u8ba1\u91cf\u3001\u914d\u989d\u4e0e\u6210\u672c\u5f52\u56e0<\/h3>\n<p>\u7f51\u5173\u662f\u505a\u6210\u672c\u6cbb\u7406\u7684\u6700\u4f73\u4f4d\u7f6e&#xff0c;\u56e0\u4e3a\u6240\u6709\u8c03\u7528\u90fd\u7ecf\u8fc7\u5b83&#xff1a;<\/p>\n<table>\n<tr>\u80fd\u529b\u5b9e\u73b0<\/tr>\n<tbody>\n<tr>\n<td>\u8ba1\u91cf<\/td>\n<td>\u8bb0\u5f55 input\/output token\u3001\u6a21\u578b\u3001\u79df\u6237\u3001\u5e94\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u914d\u989d<\/td>\n<td>\u6309\u56e2\u961f\/\u5e94\u7528\u8bbe\u65e5\/\u6708\u9884\u7b97&#xff0c;\u8d85\u9650\u62d2\u7edd\u6216\u964d\u7ea7<\/td>\n<\/tr>\n<tr>\n<td>\u5f52\u56e0<\/td>\n<td>\u6210\u672c\u5206\u644a\u5230\u56e2\u961f&#xff0c;\u51fa\u8d26\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u9884\u7b97\u544a\u8b66<\/td>\n<td>\u8fbe 80%\/100% \u544a\u8b66<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>def bill(resp, provider):<br \/>\n    rate &#061; PRICING[provider][resp.model]<br \/>\n    cost &#061; (resp.prompt_tokens \/ 1000 * rate[&#034;in&#034;]<br \/>\n            &#043; resp.completion_tokens \/ 1000 * rate[&#034;out&#034;])<br \/>\n    metrics.counter(&#034;llm_cost&#034;, cost, tags&#061;{<br \/>\n        &#034;tenant&#034;: resp.ctx.tenant, &#034;app&#034;: resp.ctx.app,<br \/>\n        &#034;model&#034;: resp.model, &#034;provider&#034;: provider})<br \/>\n    if budget_exceeded(resp.ctx.tenant):<br \/>\n        raise BudgetExceeded()<br \/>\n    return cost<\/p>\n<h3>\u516d\u3001\u7f13\u5b58\u3001\u5ba1\u8ba1\u4e0e\u8131\u654f<\/h3>\n<p>\u4e09\u9879\u76ee\u5e38\u88ab\u5ffd\u89c6\u4f46\u90fd\u5f88\u5173\u952e&#xff1a;<\/p>\n<ul>\n<li>\u7f13\u5b58&#xff1a;\u5b8c\u5168\u76f8\u540c\u6216\u8bed\u4e49\u76f8\u8fd1\u7684\u8bf7\u6c42\u53ef\u590d\u7528\u7ed3\u679c\u3002\u7cbe\u786e\u7f13\u5b58&#xff08;\u54c8\u5e0c&#xff09;\u5b89\u5168&#xff0c;\u8bed\u4e49\u7f13\u5b58&#xff08;\u5411\u91cf\u76f8\u4f3c&#xff09;\u8981\u8c28\u614e\u2014\u2014\u8bbe\u76f8\u4f3c\u5ea6\u9608\u503c\u5e76\u9650\u5b9a\u5728\u5e42\u7b49\u573a\u666f&#xff08;\u5982 FAQ&#xff09;&#xff0c;\u5426\u5219\u5bb9\u6613\u8fd4\u56de\u9519\u8bef\u7b54\u6848\u3002<\/li>\n<li>\u5ba1\u8ba1&#xff1a;\u8bb0\u5f55\u8c01\u3001\u4f55\u65f6\u3001\u7528\u4e86\u54ea\u4e2a\u6a21\u578b\u3001\u8f93\u5165\u8f93\u51fa\u6458\u8981\u3002\u5408\u89c4\u884c\u4e1a\u8981\u6c42\u53ef\u8ffd\u6eaf\u3002<\/li>\n<li>\u8131\u654f&#xff1a;\u51fa\u7f51\u524d\u5bf9 PII&#xff08;\u624b\u673a\u53f7\u3001\u8eab\u4efd\u8bc1\u3001\u94f6\u884c\u5361&#xff09;\u505a\u68c0\u6d4b\u4e0e\u8131\u654f&#xff0c;\u5c24\u5176\u662f\u8c03\u7528\u5916\u90e8\u5382\u5546 API \u65f6\u3002<\/li>\n<\/ul>\n<p>import re<\/p>\n<p>PII_PATTERNS &#061; {<br \/>\n    &#034;phone&#034;:    re.compile(r&#034;1[3-9]\\\\d{9}&#034;),<br \/>\n    &#034;id_card&#034;:  re.compile(r&#034;\\\\d{17}[\\\\dXx]&#034;),<br \/>\n    &#034;bank&#034;:     re.compile(r&#034;\\\\d{16,19}&#034;),<br \/>\n}<\/p>\n<p>def mask_pii(text):<br \/>\n    for name, pat in PII_PATTERNS.items():<br \/>\n        text &#061; pat.sub(f&#034;[REDACTED_{name.upper()}]&#034;, text)<br \/>\n    return text<\/p>\n<h3>\u9762\u8bd5\u901f\u7b54<\/h3>\n<p>\u95ee&#xff1a;\u4e3a\u4ec0\u4e48\u8981\u5efa\u7edf\u4e00\u7f51\u5173&#xff1f;<br \/>\n\u7b54&#xff1a;\u628a&#034;\u7528\u54ea\u4e2a\u6a21\u578b&#034;\u4ece\u4e1a\u52a1\u4ee3\u7801\u62bd\u51fa\u6765\u53d8\u6210\u8fd0\u884c\u65f6\u53ef\u6cbb\u7406\u7684\u95ee\u9898\u3002\u6536\u76ca\u662f\u96c6\u4e2d\u5bc6\u94a5\u7ba1\u7406\u3001\u6362\u6a21\u578b\u96f6\u6539\u9020\u3001\u4f9b\u5e94\u5546\u6545\u969c\u81ea\u52a8\u964d\u7ea7\u3001\u6309\u56e2\u961f\u8ba1\u91cf\u4e0e\u9650\u9884\u7b97\u3001\u7edf\u4e00\u5ba1\u8ba1\u8131\u654f\u3002<\/p>\n<p>\u95ee&#xff1a;\u591a\u4f9b\u5e94\u5546\u6545\u969c\u600e\u4e48\u5bb9\u707e&#xff1f;<br \/>\n\u7b54&#xff1a;\u964d\u7ea7\u94fe &#043; \u7194\u65ad\u3002\u6309\u4f18\u5148\u7ea7\u914d\u7f6e\u5019\u9009\u540e\u7aef&#xff0c;\u5065\u5eb7\u68c0\u67e5\u4e0e\u8fde\u7eed\u5931\u8d25\u7194\u65ad\u6458\u9664&#xff0c;\u8d85\u65f6\u4e0e\u91cd\u8bd5\u9884\u7b97\u63a7\u5236&#xff08;\u91cd\u8bd5\u22641 \u6b21\u9632\u96ea\u5d29&#xff09;&#xff0c;\u54cd\u5e94\u5934\u544a\u77e5\u5b9e\u9645\u4f7f\u7528\u7684\u6a21\u578b\u4fbf\u4e8e\u6392\u67e5\u3002<\/p>\n<p>\u95ee&#xff1a;\u8def\u7531\u7b56\u7565\u600e\u4e48\u8bbe\u8ba1&#xff1f;<br \/>\n\u7b54&#xff1a;\u5148\u786c\u6027\u7ea6\u675f\u8fc7\u6ee4&#xff08;\u4e0a\u4e0b\u6587\u957f\u5ea6\u3001\u591a\u6a21\u6001\u80fd\u529b\u3001\u5408\u89c4\u533a\u57df&#xff09;&#xff0c;\u518d\u505a\u6210\u672c\/\u5ef6\u8fdf\u4f18\u5316\u3002\u987a\u5e8f\u4e0d\u80fd\u53cd&#xff0c;\u5426\u5219\u4f1a\u628a\u591a\u6a21\u6001\u8bf7\u6c42\u8def\u7531\u5230\u4e0d\u652f\u6301\u89c6\u89c9\u7684\u5ec9\u4ef7\u6a21\u578b\u3002<\/p>\n<p>\u95ee&#xff1a;\u6210\u672c\u600e\u4e48\u6cbb\u7406&#xff1f;<br \/>\n\u7b54&#xff1a;\u7f51\u5173\u662f\u6700\u4f73\u4f4d\u7f6e\u2014\u2014\u6240\u6709\u8c03\u7528\u90fd\u7ecf\u8fc7\u3002\u8bb0\u5f55 input\/output token \u8ba1\u91cf&#xff0c;\u6309\u56e2\u961f\/\u5e94\u7528\u8bbe\u65e5\/\u6708\u914d\u989d\u4e0e\u9884\u7b97&#xff0c;\u8fbe\u9608\u503c\u544a\u8b66\u6216\u964d\u7ea7&#xff0c;\u6210\u672c\u5f52\u56e0\u51fa\u8d26\u5355\u3002<\/p>\n<h3>\u9ad8\u9891\u8ffd\u95ee\u6e05\u5355<\/h3>\n<li>\u8bed\u4e49\u7f13\u5b58\u7684\u76f8\u4f3c\u5ea6\u9608\u503c\u600e\u4e48\u5b9a&#xff1f;\u4ec0\u4e48\u573a\u666f\u7edd\u5bf9\u4e0d\u80fd\u7528&#xff1f;<\/li>\n<li>\u6d41\u5f0f\u54cd\u5e94&#xff08;SSE&#xff09;\u7ecf\u8fc7\u7f51\u5173\u65f6&#xff0c;\u8ba1\u91cf\u548c\u5ba1\u8ba1\u600e\u4e48\u505a&#xff08;\u7ed3\u675f\u65f6\u624d\u77e5 token \u6570&#xff09;&#xff1f;<\/li>\n<li>\u964d\u7ea7\u5230\u4e0d\u540c\u80fd\u529b\u7684\u6a21\u578b&#xff0c;\u8f93\u51fa\u683c\u5f0f\u4e0d\u4e00\u81f4\u600e\u4e48\u529e&#xff1f;<\/li>\n<li>\u7194\u65ad\u7684\u5931\u8d25\u9608\u503c\u4e0e\u6062\u590d\u63a2\u6d4b\u600e\u4e48\u8bbe&#xff1f;<\/li>\n<li>\u591a\u5bb6\u5382\u5546\u7684 token \u8ba1\u6570\u4e0d\u4e00\u81f4&#xff0c;\u8ba1\u8d39\u4ee5\u8c01\u4e3a\u51c6&#xff1f;<\/li>\n<li>\u957f\u8bf7\u6c42&#xff08;\u5206\u949f\u7ea7&#xff09;\u5360\u7528\u7f51\u5173\u8fde\u63a5&#xff0c;\u8fde\u63a5\u6c60\u600e\u4e48\u89c4\u5212&#xff1f;<\/li>\n<li>\u5408\u89c4\u8981\u6c42&#034;\u6570\u636e\u4e0d\u51fa\u5883&#034;&#xff0c;\u8def\u7531\u600e\u4e48\u5f3a\u5236\u7ea6\u675f&#xff1f;<\/li>\n<li>\u7f51\u5173\u672c\u8eab\u6210\u4e3a\u5355\u70b9\u6545\u969c&#xff0c;\u600e\u4e48\u505a\u9ad8\u53ef\u7528&#xff1f;<\/li>\n<li>\u7070\u5ea6\u65b0\u6a21\u578b\u65f6&#xff0c;\u600e\u4e48\u4fdd\u8bc1\u540c\u4e00\u7528\u6237\u7a33\u5b9a\u547d\u4e2d\u540c\u4e00\u7248\u672c&#xff1f;<\/li>\n<li>\u81ea\u7814\u6a21\u578b\u4e0e\u4e91 API \u6df7\u7528\u65f6&#xff0c;\u600e\u4e48\u516c\u5e73\u5bf9\u6bd4\u8d28\u91cf\u4e0e\u6210\u672c&#xff1f;<\/li>\n","protected":false},"excerpt":{"rendered":"<p>27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907&#xff08;\u516b\u5341\u56db&#xff09;&#xff1a;\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e<br \/>\n\u5f15\u8a00<br \/>\n\u672c\u6587\u662f\u7cfb\u5217\u7b2c 84 \u7bc7&#xff0c;\u4e5f\u662f\u672c\u6279&#xff08;A83\/A84&#xff09;\u7684\u6536\u5c3e\u3002\u524d\u9762\u5404\u7bc7\u8bb2\u7684\u90fd\u662f\\&#8221;\u600e\u4e48\u628a\u5355\u4e2a\u6a21\u578b\u670d\u52a1\u597d\\&#8221;&#xff0c;\u8fd9\u4e00\u7bc7\u8bb2\u5b83\u4e0a\u9762\u90a3\u5c42&#xff1a;\u5f53\u4e00\u4e2a\u7ec4\u7ec7\u91cc\u540c\u65f6\u7528\u7740\u81ea\u7814\u6a21\u578b\u3001\u51e0\u5bb6\u4e91\u5382\u5546 API\u3001\u5f00\u6e90\u81ea\u5efa\u670d\u52a1&#xff0c;\u600e\u4e48\u7ed9\u4e1a\u52a1\u65b9\u63d0\u4f9b\u4e00\u4e2a\u7a33\u5b9a\u3001\u7edf\u4e00\u3001\u53ef\u63a7\u7684\u5165\u53e3\u3002\u8fd9\u5c31\u662f\u5927\u6a21\u578b<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11680,132],"topic":[],"class_list":["post-102522","post","type-post","status-publish","format-standard","hentry","category-server","tag-11680","tag-132"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907\uff08\u516b\u5341\u56db\uff09\uff1a\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e - \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\/102522.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907\uff08\u516b\u5341\u56db\uff09\uff1a\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907&#xff08;\u516b\u5341\u56db&#xff09;&#xff1a;\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e \u5f15\u8a00 \u672c\u6587\u662f\u7cfb\u5217\u7b2c 84 \u7bc7&#xff0c;\u4e5f\u662f\u672c\u6279&#xff08;A83\/A84&#xff09;\u7684\u6536\u5c3e\u3002\u524d\u9762\u5404\u7bc7\u8bb2\u7684\u90fd\u662f&quot;\u600e\u4e48\u628a\u5355\u4e2a\u6a21\u578b\u670d\u52a1\u597d&quot;&#xff0c;\u8fd9\u4e00\u7bc7\u8bb2\u5b83\u4e0a\u9762\u90a3\u5c42&#xff1a;\u5f53\u4e00\u4e2a\u7ec4\u7ec7\u91cc\u540c\u65f6\u7528\u7740\u81ea\u7814\u6a21\u578b\u3001\u51e0\u5bb6\u4e91\u5382\u5546 API\u3001\u5f00\u6e90\u81ea\u5efa\u670d\u52a1&#xff0c;\u600e\u4e48\u7ed9\u4e1a\u52a1\u65b9\u63d0\u4f9b\u4e00\u4e2a\u7a33\u5b9a\u3001\u7edf\u4e00\u3001\u53ef\u63a7\u7684\u5165\u53e3\u3002\u8fd9\u5c31\u662f\u5927\u6a21\u578b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/102522.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-08T17:40:56+00:00\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102522.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/102522.html\",\"name\":\"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907\uff08\u516b\u5341\u56db\uff09\uff1a\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-08T17:40:56+00:00\",\"dateModified\":\"2026-09-08T17:40:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/102522.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/102522.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102522.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907\uff08\u516b\u5341\u56db\uff09\uff1a\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e\"}]},{\"@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":"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907\uff08\u516b\u5341\u56db\uff09\uff1a\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e - \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\/102522.html","og_locale":"zh_CN","og_type":"article","og_title":"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907\uff08\u516b\u5341\u56db\uff09\uff1a\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907&#xff08;\u516b\u5341\u56db&#xff09;&#xff1a;\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e \u5f15\u8a00 \u672c\u6587\u662f\u7cfb\u5217\u7b2c 84 \u7bc7&#xff0c;\u4e5f\u662f\u672c\u6279&#xff08;A83\/A84&#xff09;\u7684\u6536\u5c3e\u3002\u524d\u9762\u5404\u7bc7\u8bb2\u7684\u90fd\u662f\"\u600e\u4e48\u628a\u5355\u4e2a\u6a21\u578b\u670d\u52a1\u597d\"&#xff0c;\u8fd9\u4e00\u7bc7\u8bb2\u5b83\u4e0a\u9762\u90a3\u5c42&#xff1a;\u5f53\u4e00\u4e2a\u7ec4\u7ec7\u91cc\u540c\u65f6\u7528\u7740\u81ea\u7814\u6a21\u578b\u3001\u51e0\u5bb6\u4e91\u5382\u5546 API\u3001\u5f00\u6e90\u81ea\u5efa\u670d\u52a1&#xff0c;\u600e\u4e48\u7ed9\u4e1a\u52a1\u65b9\u63d0\u4f9b\u4e00\u4e2a\u7a33\u5b9a\u3001\u7edf\u4e00\u3001\u53ef\u63a7\u7684\u5165\u53e3\u3002\u8fd9\u5c31\u662f\u5927\u6a21\u578b","og_url":"https:\/\/www.wsisp.com\/helps\/102522.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-08T17:40:56+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/102522.html","url":"https:\/\/www.wsisp.com\/helps\/102522.html","name":"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907\uff08\u516b\u5341\u56db\uff09\uff1a\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-08T17:40:56+00:00","dateModified":"2026-09-08T17:40:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/102522.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/102522.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/102522.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"27\u5c4a\u5927\u6a21\u578b\u9762\u8bd5\u51c6\u5907\uff08\u516b\u5341\u56db\uff09\uff1a\u5927\u6a21\u578b\u7edf\u4e00 API \u7f51\u5173\u4e0e\u591a\u6a21\u578b\u63a5\u5165\u5de5\u7a0b\u2014\u2014\u8def\u7531\u3001\u964d\u7ea7\u3001\u8ba1\u8d39\u4e0e\u591a\u4f9b\u5e94\u5546\u5bb9\u707e"}]},{"@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\/102522","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=102522"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/102522\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=102522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=102522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=102522"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=102522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}