{"id":181301,"date":"2024-05-08T20:54:06","date_gmt":"2024-05-08T12:54:06","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/181301.html"},"modified":"2024-05-08T20:54:13","modified_gmt":"2024-05-08T12:54:13","slug":"%e5%a6%82%e4%bd%95%e7%94%a8-php-%e8%af%86%e5%88%ab%e4%ba%8c%e7%bb%b4%e7%a0%81","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/181301.html","title":{"rendered":"\u5982\u4f55\u7528 PHP \u8bc6\u522b\u4e8c\u7ef4\u7801"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27070840\/fd75f8c5-b892-48e0-9a93-2a2f26170a49.webp\" alt=\"\u5982\u4f55\u7528 PHP \u8bc6\u522b\u4e8c\u7ef4\u7801\" \/><\/p>\n<p><p>\u4e8c\u7ef4\u7801\u8bc6\u522b\u901a\u5e38\u6307\u7684\u662f\u5c06\u5305\u542b\u5728\u4e8c\u7ef4\u7801\u56fe\u50cf\u4e2d\u7684\u4fe1\u606f\u63d0\u53d6\u51fa\u6765\u7684\u8fc7\u7a0b\u3002\u8981\u7528PHP\u8bc6\u522b\u4e8c\u7ef4\u7801\uff0c<strong>\u60a8\u9700\u8981\u4f9d\u8d56\u4e8c\u7ef4\u7801\u8bc6\u522b\u5e93\u3001\u5b89\u88c5\u76f8\u5e94\u7684PHP\u6269\u5c55<\/strong>\u3001\u6216\u8005\u4f7f\u7528\u5728\u7ebfAPI\u670d\u52a1\u3002\u4e00\u4e2a\u5e38\u7528\u7684PHP\u5e93\u662f<code>PHP QR Code<\/code>\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u751f\u6210\u548c\u89e3\u6790\u4e8c\u7ef4\u7801\u3002\u4e0d\u8fc7\uff0c\u5bf9\u4e8e\u4e8c\u7ef4\u7801\u7684\u8bc6\u522b\u6765\u8bb2\uff0c\u66f4\u5e38\u89c1\u7684\u9009\u62e9\u662f\u5229\u7528<code>Zxing<\/code>\uff08\u201cZebra Crossing\u201d\uff09\u7b49\u5f00\u6e90\u5de5\u5177\u3002\u5728\u7ebfAPI\u670d\u52a1\u5982Google\u7684Chart API\u66fe\u7ecf\u63d0\u4f9b\u4e86\u4e8c\u7ef4\u7801\u7684\u751f\u6210\uff0c\u4f46\u5bf9\u8bc6\u522b\u7684\u652f\u6301\u8f83\u5c11\u3002\u76ee\u524d\uff0c\u66f4\u63a8\u8350\u5982<code>api.qrserver.com<\/code>\u63d0\u4f9b\u7684\u5728\u7ebf\u89e3\u6790\u670d\u52a1\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5728PHP\u4e2d\u5b9e\u73b0\u4e8c\u7ef4\u7801\u8bc6\u522b\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528PHP\u5e93\u8fdb\u884c\u4e8c\u7ef4\u7801\u8bc6\u522b<\/h3>\n<\/p>\n<p><p><strong>\u9700\u8981\u9009\u62e9\u5408\u9002\u7684PHP\u5e93<\/strong>\u6765\u5904\u7406\u4e8c\u7ef4\u7801\u8bc6\u522b\u3002<strong><code>Zxing<\/code><\/strong> \u662f\u5176\u4e2d\u4e00\u4e2a\u5e7f\u6cdb\u5e94\u7528\u7684\u5f00\u6e90\u9879\u76ee\uff0c\u5b83\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u3002\u867d\u7136\u539f\u751f<code>Zxing<\/code>\u662fJava\u7f16\u5199\u7684\uff0c\u4f46\u6709PHP\u7248\u672c\u7684\u7aef\u53e3\u5982<code>khanamiryan\/qrcode-detector-decoder<\/code>\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5\u8fd9\u4e2a\u5e93\u3002\u901a\u5e38\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7<code>composer<\/code>\u6765\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">composer require khanamiryan\/qrcode-detector-decoder<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5b9e\u73b0\u8bc6\u522b<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u8bc6\u522b\u4e8c\u7ef4\u7801\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-php\">use Zxing\\QrReader;<\/p>\n<p>\/\/ \u4e8c\u7ef4\u7801\u56fe\u7247\u8def\u5f84<\/p>\n<p>$qrcode = &#039;path\/to\/qrcode.png&#039;;<\/p>\n<p>\/\/ \u521b\u5efaQR\u8bfb\u53d6\u5668\u5b9e\u4f8b<\/p>\n<p>$qrReader = new QrReader($qrcode);<\/p>\n<p>$text = $qrReader-&gt;text(); \/\/ \u83b7\u53d6\u89e3\u6790\u540e\u7684\u6587\u672c<\/p>\n<p>\/\/ \u8f93\u51fa\u8bc6\u522b\u7ed3\u679c<\/p>\n<p>echo $text;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528PHP\u6269\u5c55<\/h3>\n<\/p>\n<p><p>\u82e5\u8981\u901a\u8fc7PHP\u6269\u5c55\u5b9e\u73b0\u4e8c\u7ef4\u7801\u8bc6\u522b\uff0c\u5219\u53ef\u4ee5\u5b89\u88c5<code>php-zbar<\/code>\u6269\u5c55\uff0c\u5b83\u662f\u5bf9ZBar\u4e8c\u7ef4\u7801\u8bfb\u53d6\u5e93\u7684\u5c01\u88c5\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5\u6269\u5c55<\/h4>\n<\/p>\n<p><p><code>php-zbar<\/code>\u53ef\u80fd\u4e0d\u5728PHP\u9ed8\u8ba4\u7684\u6269\u5c55\u5e93\u4e2d\uff0c\u56e0\u6b64\u53ef\u80fd\u9700\u8981\u624b\u52a8\u7f16\u8bd1\u6216\u4ece\u9002\u5f53\u7684\u6e90\u4e0b\u8f7d\u3002<\/p>\n<\/p>\n<p><h4>\u5b9e\u73b0\u8bc6\u522b<\/h4>\n<\/p>\n<p><p>PHP\u6269\u5c55\u901a\u5e38\u63d0\u4f9b\u4e86\u66f4\u76f4\u63a5\u7684\u65b9\u5f0f\u6765\u8c03\u7528\u529f\u80fd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-php\">\/\/ \u5047\u5b9a\u6269\u5c55\u5df2\u5b89\u88c5\u4e14\u914d\u7f6e\u4e86\u76f8\u5173\u8def\u5f84<\/p>\n<p>$code = new ZBarCodeImage(&#039;\/path\/to\/qrcode.png&#039;);<\/p>\n<p>$scanner = new ZBarCodeScanner();<\/p>\n<p>$barcode = $scanner-&gt;scan($code);<\/p>\n<p>\/\/ \u8f93\u51fa\u8bc6\u522b\u7ed3\u679c<\/p>\n<p>echo $barcode;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ee3\u7801\u5c55\u793a\u4e86\u5982\u4f55\u5728\u5b89\u88c5\u4e86<code>php-zbar<\/code>\u6269\u5c55\u7684\u60c5\u51b5\u4e0b\uff0c\u8fdb\u884c\u4e8c\u7ef4\u7801\u626b\u63cf\u548c\u8bfb\u53d6\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u8c03\u7528\u5728\u7ebfAPI\u670d\u52a1<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4e0d\u60f3\u5728\u672c\u5730\u73af\u5883\u5b89\u88c5\u989d\u5916\u7684\u6269\u5c55\u6216\u5e93\uff0c<strong>\u53ef\u4ee5\u5229\u7528\u5728\u7ebfAPI\u8fdb\u884c\u4e8c\u7ef4\u7801\u8bc6\u522b<\/strong>\u3002\u8bb8\u591a\u670d\u52a1\u63d0\u4f9b\u4e86REST API\u8fdb\u884c\u4e8c\u7ef4\u7801\u8bc6\u522b\u3002\u5176\u4e2d\u4e4b\u4e00\u5c31\u662f<code>api.qrserver.com<\/code>\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528API\u670d\u52a1<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u51c6\u5907\u4e8c\u7ef4\u7801\u56fe\u7247\u7684URL\u6216\u5176\u5185\u5bb9\u7684BASE64\u7f16\u7801\u3002\u7136\u540e\uff0c\u53d1\u9001HTTP\u8bf7\u6c42\u5230API\u670d\u52a1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-php\">\/\/ \u4e8c\u7ef4\u7801\u56fe\u7247\u7684URL\u6216BASE64\u7f16\u7801\u6570\u636e<\/p>\n<p>$qrcode = &#039;YOUR_QRCODE_DATA&#039;;<\/p>\n<p>\/\/ \u6784\u5efa\u8bf7\u6c42URL<\/p>\n<p>$apiUrl = &#039;http:\/\/api.qrserver.com\/v1\/read-qr-code\/&#039;;<\/p>\n<p>\/\/ \u53d1\u8d77POST\u8bf7\u6c42<\/p>\n<p>$response = file_get_contents($apiUrl, false, stream_context_create([<\/p>\n<p>    &#039;http&#039; =&gt; [<\/p>\n<p>        &#039;method&#039; =&gt; &#039;POST&#039;,<\/p>\n<p>        &#039;header&#039; =&gt; &#039;Content-Type: application\/x-www-form-urlencoded&#039;,<\/p>\n<p>        &#039;content&#039; =&gt; http_build_query([&#039;fileurl&#039; =&gt; $qrcode])<\/p>\n<p>    ]<\/p>\n<p>]));<\/p>\n<p>\/\/ \u89e3\u6790\u54cd\u5e94<\/p>\n<p>$data = json_decode($response, true);<\/p>\n<p>\/\/ \u8f93\u51fa\u7ed3\u679c<\/p>\n<p>if (is_array($data) &amp;&amp; isset($data[0][&#039;symbol&#039;][0][&#039;data&#039;])) {<\/p>\n<p>    echo $data[0][&#039;symbol&#039;][0][&#039;data&#039;];<\/p>\n<p>} else {<\/p>\n<p>    echo &quot;\u65e0\u6cd5\u8bc6\u522b\u7684\u4e8c\u7ef4\u7801&quot;;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5f53\u8c03\u7528\u5b8c\u6210\u540e\uff0cAPI\u4f1a\u8fd4\u56deJSON\u683c\u5f0f\u7684\u8bc6\u522b\u7ed3\u679c\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u4ee3\u7801\u4e2d\u5bf9\u5176\u8fdb\u884c\u89e3\u6790\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8003\u8651\u6027\u80fd\u548c\u5b89\u5168\u6027<\/h3>\n<\/p>\n<p><p>\u5f53\u5728\u670d\u52a1\u5668\u7aef\u5b9e\u73b0\u4e8c\u7ef4\u7801\u8bc6\u522b\u65f6\uff0c<strong>\u5fc5\u987b\u8003\u8651\u5230\u6027\u80fd\u548c\u5b89\u5168\u6027\u95ee\u9898<\/strong>\u3002\u5bf9\u4e8e\u9ad8\u6d41\u91cf\u7684\u5e94\u7528\uff0c\u4f7f\u7528\u672c\u5730\u89e3\u6790\u5c06\u51cf\u5c11\u7f51\u7edc\u5ef6\u8fdf\uff0c\u5e76\u63d0\u9ad8\u54cd\u5e94\u901f\u5ea6\u3002\u540c\u65f6\uff0c\u786e\u4fdd\u4e0a\u4f20\u7684\u4e8c\u7ef4\u7801\u56fe\u50cf\u4e0d\u542b\u6709\u6076\u610f\u4ee3\u7801\uff0c\u662f\u9632\u6b62\u670d\u52a1\u5668\u53d7\u5230\u653b\u51fb\u4e0d\u53ef\u5ffd\u89c6\u7684\u4e00\u73af\u3002<\/p>\n<\/p>\n<p><h4>\u6027\u80fd\u4f18\u5316<\/h4>\n<\/p>\n<p><p>\u4e3a\u4fdd\u8bc1\u5904\u7406\u6027\u80fd\uff0c\u60a8\u53ef\u4ee5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u5bf9\u4e0a\u4f20\u7684\u56fe\u7247\u5927\u5c0f\u8fdb\u884c\u9650\u5236\uff0c\u907f\u514d\u5904\u7406\u8fc7\u5927\u7684\u56fe\u7247\u9020\u6210\u7684\u8d44\u6e90\u6d6a\u8d39\u3002<\/li>\n<li>\u901a\u8fc7PHP\u8fdb\u884c\u7f13\u5b58\u5904\u7406\uff0c\u5e38\u89c1\u7684\u4e8c\u7ef4\u7801\u8bc6\u522b\u7ed3\u679c\u8fdb\u884c\u7f13\u5b58\uff0c\u51cf\u5c11\u91cd\u590d\u8ba1\u7b97\u3002<\/li>\n<\/ol>\n<p><h4>\u5b89\u5168\u6027\u8003\u91cf<\/h4>\n<\/p>\n<p><p>\u5b89\u5168\u6027\u63aa\u65bd\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u786e\u4fdd\u6240\u6709\u5904\u7406\u7684\u56fe\u50cf\u6587\u4ef6\u4e25\u683c\u6309\u7167\u9884\u5b9a\u683c\u5f0f\u5904\u7406\uff0c\u6392\u9664\u4efb\u4f55\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/li>\n<li>\u5bf9\u4e0a\u4f20\u7684\u6587\u4ef6\u8fdb\u884c\u6709\u6548\u7684\u6743\u9650\u7ba1\u7406\uff0c\u9632\u6b62\u6f5c\u5728\u7684\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u3002<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u51e0\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728PHP\u4e2d\u6210\u529f\u5b9e\u73b0\u4e8c\u7ef4\u7801\u7684\u8bc6\u522b\u529f\u80fd\u3002\u65e0\u8bba\u662f\u901a\u8fc7PHP\u5e93\u3001PHP\u6269\u5c55\u8fd8\u662f\u5728\u7ebfAPI\u670d\u52a1\uff0c\u5173\u952e\u90fd\u5728\u4e8e\u9009\u53d6\u5408\u9002\u7684\u5de5\u5177\u548c\u8003\u8651\u5230\u5b9e\u73b0\u8fc7\u7a0b\u4e2d\u7684\u6027\u80fd\u4e0e\u5b89\u5168\u6027\u95ee\u9898\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u5177\u4f53\u4e1a\u52a1\u9700\u6c42\u548c\u670d\u52a1\u5668\u914d\u7f6e\u60c5\u51b5\u9009\u62e9\u6700\u9002\u5408\u7684\u5b9e\u73b0\u65b9\u6848\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. PHP\u4e2d\u5982\u4f55\u5b9e\u73b0\u4e8c\u7ef4\u7801\u8bc6\u522b\uff1f<\/strong><\/p>\n<p>\u5728PHP\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u5b9e\u73b0\u4e8c\u7ef4\u7801\u8bc6\u522b\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528Zxing\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u7528\u4e8e\u8bc6\u522b\u4e8c\u7ef4\u7801\u7684API\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u60a8\u7684\u9879\u76ee\u4e2d\u5f15\u5165\u5e93\u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528\u9002\u5f53\u7684\u51fd\u6570\u6765\u5b9e\u73b0\u8bc6\u522b\u529f\u80fd\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u56fe\u50cf\u5904\u7406\u51fd\u6570\u5c06\u56fe\u50cf\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u7136\u540e\u5c06\u5176\u4f20\u9012\u7ed9\u8bc6\u522b\u51fd\u6570\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u6837\uff0c\u60a8\u5c31\u53ef\u4ee5\u5728PHP\u4e2d\u5b9e\u73b0\u4e8c\u7ef4\u7801\u8bc6\u522b\u529f\u80fd\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u5904\u7406\u4f7f\u7528PHP\u8bc6\u522b\u4e8c\u7ef4\u7801\u65f6\u9047\u5230\u7684\u9519\u8bef\uff1f<\/strong><\/p>\n<p>\u5728\u5904\u7406\u4f7f\u7528PHP\u8bc6\u522b\u4e8c\u7ef4\u7801\u65f6\u9047\u5230\u9519\u8bef\u7684\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\u89e3\u51b3\u95ee\u9898\u3002\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u5df2\u6b63\u786e\u5b89\u88c5\u548c\u914d\u7f6e\u4e86\u4e8c\u7ef4\u7801\u8bc6\u522b\u5e93\u3002\u68c0\u67e5\u60a8\u7684\u5e93\u6587\u4ef6\u662f\u5426\u4f4d\u4e8e\u6b63\u786e\u7684\u76ee\u5f55\u4e2d\uff0c\u5e76\u4e14\u4e0e\u60a8\u7684PHP\u7248\u672c\u517c\u5bb9\u3002\u5176\u6b21\uff0c\u68c0\u67e5\u60a8\u7684\u56fe\u50cf\u6587\u4ef6\u662f\u5426\u6b63\u786e\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u4ee5\u4fbf\u8fdb\u884c\u8bc6\u522b\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u56fe\u50cf\u5904\u7406\u51fd\u6570\u6765\u9a8c\u8bc1\u56fe\u50cf\u52a0\u8f7d\u662f\u5426\u6210\u529f\u3002\u6700\u540e\uff0c\u68c0\u67e5\u60a8\u7684\u4ee3\u7801\u4e2d\u662f\u5426\u5b58\u5728\u4efb\u4f55\u8bed\u6cd5\u9519\u8bef\u6216\u903b\u8f91\u9519\u8bef\uff0c\u5e76\u8fdb\u884c\u5fc5\u8981\u7684\u8c03\u8bd5\u3002<\/p>\n<p><strong>3. \u6709\u6ca1\u6709\u5176\u4ed6\u7684\u4e8c\u7ef4\u7801\u8bc6\u522b\u5e93\u53ef\u4ee5\u5728PHP\u4e2d\u4f7f\u7528\uff1f<\/strong><\/p>\n<p>\u9664\u4e86Zxing\u5e93\u4e4b\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u7684\u4e8c\u7ef4\u7801\u8bc6\u522b\u5e93\u53ef\u4ee5\u5728PHP\u4e2d\u4f7f\u7528\u3002\u4f8b\u5982\uff0cPHP QR Code Library\u662f\u53e6\u4e00\u4e2a\u6d41\u884c\u7684\u9009\u62e9\uff0c\u5b83\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u4e8c\u7ef4\u7801\u751f\u6210\u548c\u8bc6\u522b\u529f\u80fd\u3002\u5b83\u5177\u6709\u7b80\u5355\u6613\u7528\u7684API\uff0c\u5e76\u4e14\u80fd\u591f\u5904\u7406\u4e0d\u540c\u7c7b\u578b\u7684\u4e8c\u7ef4\u7801\uff0c\u5982URL\u3001\u6587\u672c\u3001\u90ae\u4ef6\u5730\u5740\u7b49\u3002\u6b64\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u7684\u5f00\u6e90\u5e93\u548c\u5de5\u5177\uff0c\u5982PHP QR Code Detector\uff0c\u53ef\u4ee5\u7528\u4e8e\u5728PHP\u4e2d\u5b9e\u73b0\u4e8c\u7ef4\u7801\u8bc6\u522b\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u60a8\u7684\u9700\u6c42\u9009\u62e9\u9002\u5408\u60a8\u9879\u76ee\u7684\u5e93\u6765\u5b9e\u73b0\u4e8c\u7ef4\u7801\u8bc6\u522b\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e8c\u7ef4\u7801\u8bc6\u522b\u901a\u5e38\u6307\u7684\u662f\u5c06\u5305\u542b\u5728\u4e8c\u7ef4\u7801\u56fe\u50cf\u4e2d\u7684\u4fe1\u606f\u63d0\u53d6\u51fa\u6765\u7684\u8fc7\u7a0b\u3002\u8981\u7528PHP\u8bc6\u522b\u4e8c\u7ef4\u7801\uff0c\u60a8\u9700\u8981\u4f9d\u8d56\u4e8c\u7ef4\u7801\u8bc6\u522b\u5e93\u3001\u5b89 [&hellip;]","protected":false},"author":3,"featured_media":181311,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/181301"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=181301"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/181301\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/181311"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=181301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=181301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=181301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}