{"id":33989,"date":"2024-11-25T09:02:37","date_gmt":"2024-11-25T01:02:37","guid":{"rendered":"https:\/\/fwq.ai\/blog\/33989\/"},"modified":"2024-11-25T09:02:37","modified_gmt":"2024-11-25T01:02:37","slug":"%e6%b5%85%e8%b0%88%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%e6%90%ad%e5%bb%ba%e5%90%8e%e5%8f%b0%e7%9a%84%e5%85%b7%e4%bd%93%e6%ad%a5%e9%aa%a4","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/33989\/","title":{"rendered":"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4"},"content":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0b\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5982\u4f55\u642d\u5efa\u81ea\u5df1\u7684\u540e\u53f0\u3002\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u6709\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/6094a15bdbe88147.jpg\" class=\"aligncenter\" title=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe\" alt=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe\" \/><\/p>\n<h2><strong>\u601d\u8def<\/strong><\/h2>\n<p style=\"text-indent:50px\">\u2460\uff1a\u9996\u5148\u6211\u4eec\u9700\u8981\u62e5\u6709\u81ea\u5df1\u7684 <span style=\"color:#f33b45\">AppID<\/span>&nbsp; \uff08\u6709\u70b9\u5e9f\u8bdd\u4e86\uff09\u3002<\/p>\n<p style=\"text-indent:50px\">\u2461\uff1a\u6211\u4eec\u9700\u8981\u6709\u4e00\u4e2a\u540e\u53f0\uff0c\u5373<span style=\"color:#f33b45\">\u670d\u52a1\u5668<\/span>\u3002<span style=\"color:#f33b45\">\u57df\u540d\uff08\u9700\u5907\u6848\uff09<\/span>\u3002<span style=\"color:#f33b45\">ssl\u8bc1\u4e66<\/span>\u3002\uff08\u603b\u4e4b\uff0c\u6211\u4eec\u9700\u8981\u901a\u8fc7https:\/\/www.xxxxxx.com\u8fd9\u6837\u7684\u5f62\u5f0f\u53bb\u8bbf\u95ee\u5230\u6211\u4eec\u670d\u52a1\u5668\uff09<\/p>\n<p style=\"text-indent:50px\">\u2462\uff1a\u5728\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u4e2d<span style=\"color:#f33b45\">\u914d\u7f6e\u57df\u540d\u4fe1\u606f<\/span>\u3002<\/p>\n<p style=\"text-indent:50px\">\u2463\uff1a\u5c0f\u7a0b\u5e8f\u7aef\u901a\u8fc7wx.request()\u51fd\u6570\u8bbf\u95ee\u6211\u4eec\u7684\u540e\u53f0\u51fd\u6570\uff0c\u540e\u53f0\u63a5\u53d7\u5c0f\u7a0b\u5e8f\u4f20\u6765\u7684\u53c2\u6570\uff0c\u7ecf\u8fc7\u52a0\u5de5\u540e\u8fd4\u56de\u7ed9\u5c0f\u7a0b\u5e8f\u503c\uff0c\u5c0f\u7a0b\u5e8f\u7aef\u518d\u63a5\u6536\u540e\u53f0\u4f20\u6765\u7684\u53c2\u6570\u5e76\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<h2><strong>\u8fc7\u7a0b<\/strong><\/h2>\n<h3><strong>\u83b7\u53d6AppID\uff1a<\/strong><\/h3>\n<p style=\"text-indent:50px\">\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"max-width:90%\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/f7368a1be50779f791ba97493bf10e4f-0.png\" title=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe1\" alt=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe1\" \/><\/p>\n<h3><strong>\u670d\u52a1\u5668\u3001\u57df\u540d\uff08\u9700\u5907\u6848\uff09\u3001ssl\u8bc1\u4e66\uff08\u53ef\u514d\u8d39\u7533\u8bf7\uff09\uff1a<\/strong><\/h3>\n<p>\u697c\u4e3b\u8fd9\u91cc\u7528\u7684\u662f\u817e\u8baf\u4e91\u670d\u52a1\u5668\uff1a\u817e\u8baf\u4e91<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"max-width:90%\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/81675f2de83b7965de61d51308a6030c-1.png\" title=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe2\" alt=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe2\" \/><\/p>\n<h3><strong>\u57df\u540d\u5907\u6848\uff1a<\/strong><\/h3>\n<p>\u57df\u540d\u5907\u6848<\/p>\n<h3><strong>SSL\u8bc1\u4e66\uff08\u7533\u8bf7\u4e0e\u5b89\u88c5\u914d\u7f6e\uff09\uff1a<\/strong><\/h3>\n<p>\u8bc1\u4e66\u7533\u8bf7<\/p>\n<p style=\"text-indent:0\"><img decoding=\"async\" class=\"aligncenter\" style=\"max-width:90%\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/81675f2de83b7965de61d51308a6030c-2.png\" title=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe3\" alt=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe3\" \/><\/p>\n<p><strong>\u5b89\u88c5\u914d\u7f6e<\/strong>\uff08\u697c\u4e3b\u8fd9\u91cc\u662fwindows+Apache\u73af\u5883\u4e0b\u914d\u7f6eSSL\u8bc1\u4e66\uff0c\u5982\u6709\u5176\u5b83\u73af\u5883\u5b89\u88c5\uff0c\u53ef\u4ee5\u53c2\u8003\u8bc1\u4e66\u5b89\u88c5\uff09\uff1a<\/p>\n<p>\u5c06\u4f60\u7684SSL\u8bc1\u4e66\u4e0b\u8f7d\u4e0b\u6765\uff0c\u5c06Apache\u6587\u4ef6\u5939\u4e0b\u76843\u4e2a\u6587\u4ef6\u653e\u5230Apache\u76ee\u5f55\u4e0b\u7684conf\u6587\u4ef6\u5939\u91cc<\/p>\n<p>\u5728\u4f60\u7684Apache\u76ee\u5f55\u4e2d\u627e\u5230confhttpd.conf\u5e76\u6253\u5f00,\u627e\u5230\u5982\u4e0b\u4e24\u884c\uff0c\u5c06\u8fd9\u4e24\u884c\u524d\u9762\u7684\u6ce8\u91ca\u7b26\u53f7 # \u53bb\u6389\u3002\uff08\u5982\u679c\u6ca1\u6709\uff0c\u76f4\u63a5\u628a#\u53f7\u53bb\u6389\u63d2\u5165\u6587\u4ef6\u4e2d\uff09<\/p>\n<pre>#&nbsp;LoadModule&nbsp;ssl_module&nbsp;modules\/mod_ssl.so\n#&nbsp;Include&nbsp;conf\/extra\/httpd-ssl.conf<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u4f60\u7684Apache\u76ee\u5f55\u4e2d\u627e\u5230confextrahttpd-ssl.conf\uff0c\u5728\u6587\u4ef6\u6700\u540e\u9762\u627e\u5230 &nbsp;\u4e0e&nbsp; <\/p>\n<p>\u7528\u4e0b\u5217\u4ee3\u7801\u66ff\u4ee3\u8fd9\u4e24\u884c\u4e4b\u95f4\u7684\u6240\u6709\u4ee3\u7801\uff08\u8bf7\u5c06\u4ee3\u7801\u4e2d\u53ca\u5176\u540e\u9762\u7684\u6587\u5b57\u5220\u6389\uff09\uff1a<\/p>\n<pre>&lt;virtualhost&gt;\nDocumentRoot&nbsp;\"C:AppServwww\"&nbsp;&nbsp;\u4f60\u7684\u7f51\u7ad9\u7269\u7406\u5730\u5740\uff0c\u5373\u8bbf\u95ee\u4f60\u7684\u57df\u540d\u4f60\u60f3\u5c55\u793a\u7684\u9875\u9762\nServerName&nbsp;www.data-ordertime.xyz&nbsp;&nbsp;\u4f60\u7684\u7f51\u7ad9\u57df\u540d\nServerAlias&nbsp;data-ordertime.xyz&nbsp;&nbsp;\u4f60\u7684\u7f51\u7ad9\u57df\u540d&nbsp;\u4e0d\u52a0www\nServerAdmin&nbsp;1910722307@qq.com&nbsp;&nbsp;\u4f60\u7684\u90ae\u7bb1\nDirectoryIndex&nbsp;index.html&nbsp;index.htm&nbsp;index.php&nbsp;default.php&nbsp;app.php&nbsp;u.php\nErrorLog&nbsp;logs\/example_error.log\nCustomLog&nbsp;logs\/example_access.log&nbsp;\n\"%t&nbsp;%h&nbsp;%{SSL_PROTOCOL}x&nbsp;%{SSL_CIPHER}x&nbsp;\"%r\"&nbsp;%b\"\nSSLEngine&nbsp;on\nSSLCertificateFile&nbsp;conf\/2_data-ordertime.xyz.crt&nbsp;&nbsp;\u4f60\u7533\u8bf7\u7684\u8bc1\u4e66\u6587\u4ef6\u7684\u5730\u5740\nSSLCertificateKeyFile&nbsp;conf\/3_data-ordertime.xyz.key&nbsp;&nbsp;\u4f60\u7533\u8bf7\u7684key\u6587\u4ef6\u7684\u5730\u5740\n&lt;directory&gt;\nSSLOptions&nbsp;+StdEnvVars\nAllowOverride&nbsp;All\nRequire&nbsp;all&nbsp;granted\n&lt;\/directory&gt;&lt;filesmatch&gt;\nSSLOptions&nbsp;+StdEnvVars\n&lt;\/filesmatch&gt;\nBrowserMatch&nbsp;\"MSIE&nbsp;[2-5]\"&nbsp;\nnokeepalive&nbsp;ssl-unclean-shutdown&nbsp;\ndowngrade-1.0&nbsp;force-response-1.0\n&lt;\/virtualhost&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h3><strong>\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u4e2d<span style=\"color:#f33b45\">\u914d\u7f6e\u57df\u540d\u4fe1\u606f\uff1a<\/span><\/strong><\/h3>\n<p>\u6b64\u65f6\uff0c\u5728\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177\u4e2d\u8be5\u57df\u540d\u4f1a\u8ba4\u4e3a\u662f\u5b89\u5168\u53ef\u7528\u57df\u540d\uff08\u6ce8\u610f\uff0c\u6211\u4eec\u662f\u4e3a\u4e86\u4e0b\u9762\u4e8c\u56fe\u4e2d\u9879\u76ee\u8bbe\u7f6e\u4e2d \u4e0d\u6821\u9a8c\u5408\u6cd5\u57df\u540d&nbsp;\u9009\u9879\u4e0d\u88ab\u52fe\u4e0a\u4e5f\u53ef\u4ee5\u8bbf\u95ee\u6211\u4eec\u7684\u540e\u53f0\uff0c\u56e0\u4e3a\u6211\u4eec\u57df\u540d\u7406\u8bba\u4e0a\u7684\u5b89\u5168\uff08http\u4e0ehttps\u7684\u5dee\u5f02\uff09\uff09<\/p>\n<p style=\"text-indent:0\"><img decoding=\"async\" class=\"aligncenter\" style=\"max-width:90%\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/12916151ba08bff83962c6dcd2450522-3.png\" title=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe4\" alt=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe4\" \/>&nbsp; &nbsp; &nbsp;&nbsp;<\/p>\n<p style=\"text-indent:0\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img decoding=\"async\" class=\"aligncenter\" style=\"max-width:90%\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/8cacd7b218b117fbea0cea6519bcca98-4.png\" title=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe5\" alt=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe5\" \/><\/p>\n<p style=\"text-indent:0\">&nbsp;<\/p>\n<h3><strong>\u5c0fDemo\u6d4b\u8bd5\u4e00\u4e0b\uff08\u697c\u4e3b\u8fd9\u91cc\u4f7f\u7528\u7684\u4e3aPHP\u540e\u53f0\uff09\uff1a<\/strong><\/h3>\n<p>\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177\u4e2d\u5199\u5165\u5982\u4e0b\u4ee3\u7801\uff0c<\/p>\n<p>index.js<\/p>\n<pre>\/\/index.js\n\nPage({\n&nbsp;&nbsp;data:&nbsp;{\n&nbsp;&nbsp;},\n&nbsp;&nbsp;\n&nbsp;&nbsp;ceshifuwuqi:function(){\n&nbsp;&nbsp;&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;that&nbsp;=&nbsp;this\n&nbsp;&nbsp;&nbsp;&nbsp;wx.request({\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url:&nbsp;`https:\/\/www.data-ordertime.xyz\/wxdemo.php`,\/\/\u4f60\u7684\u540e\u53f0url\u5730\u5740\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data:{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name:'\u8d85\u8d851\u53f7'\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;header:&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'content-type':&nbsp;'application\/x-www-form-urlencoded'\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;method:&nbsp;\"GET\",\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;success(result)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(result);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;that.setData({\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;demo:&nbsp;result.data\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fail(error)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;util.showModel('\u8bf7\u6c42\u5931\u8d25',&nbsp;error);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log('request&nbsp;fail',&nbsp;error);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;})\n&nbsp;&nbsp;},\n\n&nbsp;&nbsp;\n})<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>index.wxml<\/p>\n<pre>&lt;!--index.wxml--&gt;\n&lt;view&gt;\n&nbsp;&nbsp;\n&nbsp;&nbsp;&lt;view&gt;\u70b9\u51fb\u6d4b\u8bd5\u670d\u52a1\u5668\n&nbsp;&nbsp;&lt;view&gt;{{demo}}&lt;\/view&gt;&lt;\/view&gt;\n&nbsp;&nbsp;\n&lt;\/view&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u540e\u53f0\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;?php $myName = $_GET[&#039;name&#039;];  \/\/GET\u65b9\u5f0f\u83b7\u53d6\u4f20\u6765\u7684name\u53c2\u6570\necho $myName.\"\u771f\u5e05\";<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7ed3\u679c\u5c55\u793a\uff1a<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"max-width:90%\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/8cacd7b218b117fbea0cea6519bcca98-5.png\" title=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe6\" alt=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe6\" \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img decoding=\"async\" class=\"aligncenter\" style=\"max-width:90%\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/8cacd7b218b117fbea0cea6519bcca98-6.png\" title=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe7\" alt=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe7\" \/><\/p>\n<p style=\"text-indent:50px\"><img decoding=\"async\" class=\"aligncenter\" style=\"max-width:90%\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/8816100f933c6e828abf87abbd3018b8-7.png\" title=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe8\" alt=\"\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u63d2\u56fe8\" \/><\/p>\n<p><strong>\u76f8\u5173\u5b66\u4e60\u63a8\u8350\uff1a<\/strong><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6d45\u8c08\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u642d\u5efa\u540e\u53f0\u7684\u5177\u4f53\u6b65\u9aa4\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0b\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5982\u4f55\u642d\u5efa\u81ea\u5df1\u7684\u540e\u53f0\u3002\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u6709\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\u3002 \u601d\u8def \u2460\uff1a\u9996\u5148\u6211\u4eec\u9700\u8981\u62e5\u6709\u81ea\u5df1\u7684 AppID&nbsp; \uff08\u6709\u70b9\u5e9f\u8bdd\u4e86\uff09\u3002 \u2461\uff1a\u6211\u4eec\u9700\u8981\u6709\u4e00\u4e2a\u540e\u53f0\uff0c\u5373\u670d\u52a1\u5668\u3002\u57df\u540d\uff08\u9700\u5907\u6848\uff09\u3002ssl\u8bc1\u4e66\u3002\uff08\u603b\u4e4b\uff0c\u6211\u4eec\u9700\u8981\u901a\u8fc7https:\/\/www.xxxxxx.com\u8fd9\u6837\u7684\u5f62\u5f0f\u53bb\u8bbf\u95ee\u5230\u6211\u4eec\u670d\u52a1\u5668\uff09 \u2462\uff1a\u5728\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u4e2d\u914d\u7f6e\u57df\u540d\u4fe1\u606f\u3002 \u2463\uff1a\u5c0f\u7a0b\u5e8f\u7aef\u901a\u8fc7wx.request()\u51fd\u6570\u8bbf\u95ee\u6211\u4eec\u7684\u540e\u53f0\u51fd\u6570\uff0c\u540e\u53f0\u63a5\u53d7\u5c0f\u7a0b\u5e8f\u4f20\u6765\u7684\u53c2\u6570\uff0c\u7ecf\u8fc7\u52a0\u5de5\u540e\u8fd4\u56de\u7ed9\u5c0f\u7a0b\u5e8f\u503c\uff0c\u5c0f\u7a0b\u5e8f\u7aef\u518d\u63a5\u6536\u540e\u53f0\u4f20\u6765\u7684\u53c2\u6570\u5e76\u8fdb\u884c\u64cd\u4f5c\u3002 \u8fc7\u7a0b \u83b7\u53d6AppID\uff1a \u5fae\u4fe1\u516c\u4f17\u5e73\u53f0 \u670d\u52a1\u5668\u3001\u57df\u540d\uff08\u9700\u5907\u6848\uff09\u3001ssl\u8bc1\u4e66\uff08\u53ef\u514d\u8d39\u7533\u8bf7\uff09\uff1a \u697c\u4e3b\u8fd9\u91cc\u7528\u7684\u662f\u817e\u8baf\u4e91\u670d\u52a1\u5668\uff1a\u817e\u8baf\u4e91 \u57df\u540d\u5907\u6848\uff1a \u57df\u540d\u5907\u6848 SSL\u8bc1\u4e66\uff08\u7533\u8bf7\u4e0e\u5b89\u88c5\u914d\u7f6e\uff09\uff1a \u8bc1\u4e66\u7533\u8bf7 \u5b89\u88c5\u914d\u7f6e\uff08\u697c\u4e3b\u8fd9\u91cc\u662fwindows+Apache\u73af\u5883\u4e0b\u914d\u7f6eSSL\u8bc1\u4e66\uff0c\u5982\u6709\u5176\u5b83\u73af\u5883\u5b89\u88c5\uff0c\u53ef\u4ee5\u53c2\u8003\u8bc1\u4e66\u5b89\u88c5\uff09\uff1a \u5c06\u4f60\u7684SSL\u8bc1\u4e66\u4e0b\u8f7d\u4e0b\u6765\uff0c\u5c06Apache\u6587\u4ef6\u5939\u4e0b\u76843\u4e2a\u6587\u4ef6\u653e\u5230Apache\u76ee\u5f55\u4e0b\u7684conf\u6587\u4ef6\u5939\u91cc \u5728\u4f60\u7684Apache\u76ee\u5f55\u4e2d\u627e\u5230confhttpd.conf\u5e76\u6253\u5f00,\u627e\u5230\u5982\u4e0b\u4e24\u884c\uff0c\u5c06\u8fd9\u4e24\u884c\u524d\u9762\u7684\u6ce8\u91ca\u7b26\u53f7 # \u53bb\u6389\u3002\uff08\u5982\u679c\u6ca1\u6709\uff0c\u76f4\u63a5\u628a#\u53f7\u53bb\u6389\u63d2\u5165\u6587\u4ef6\u4e2d\uff09 #&nbsp;LoadModule&nbsp;ssl_module&nbsp;modules\/mod_ssl.so #&nbsp;Include&nbsp;conf\/extra\/httpd-ssl.conf \u767b\u5f55\u540e\u590d\u5236 \u5728\u4f60\u7684Apache\u76ee\u5f55\u4e2d\u627e\u5230confextrahttpd-ssl.conf\uff0c\u5728\u6587\u4ef6\u6700\u540e\u9762\u627e\u5230 &nbsp;\u4e0e&nbsp; \u7528\u4e0b\u5217\u4ee3\u7801\u66ff\u4ee3\u8fd9\u4e24\u884c\u4e4b\u95f4\u7684\u6240\u6709\u4ee3\u7801\uff08\u8bf7\u5c06\u4ee3\u7801\u4e2d\u53ca\u5176\u540e\u9762\u7684\u6587\u5b57\u5220\u6389\uff09\uff1a &lt;virtualhost&gt; DocumentRoot&nbsp;&#8220;C:AppServwww&#8221;&nbsp;&nbsp;\u4f60\u7684\u7f51\u7ad9\u7269\u7406\u5730\u5740\uff0c\u5373\u8bbf\u95ee\u4f60\u7684\u57df\u540d\u4f60\u60f3\u5c55\u793a\u7684\u9875\u9762 ServerName&nbsp;www.data-ordertime.xyz&nbsp;&nbsp;\u4f60\u7684\u7f51\u7ad9\u57df\u540d ServerAlias&nbsp;data-ordertime.xyz&nbsp;&nbsp;\u4f60\u7684\u7f51\u7ad9\u57df\u540d&nbsp;\u4e0d\u52a0www ServerAdmin&nbsp;1910722307@qq.com&nbsp;&nbsp;\u4f60\u7684\u90ae\u7bb1 DirectoryIndex&nbsp;index.html&nbsp;index.htm&nbsp;index.php&nbsp;default.php&nbsp;app.php&nbsp;u.php ErrorLog&nbsp;logs\/example_error.log CustomLog&nbsp;logs\/example_access.log&nbsp; &#8220;%t&nbsp;%h&nbsp;%{SSL_PROTOCOL}x&nbsp;%{SSL_CIPHER}x&nbsp;&#8220;%r&#8221;&nbsp;%b&#8221; SSLEngine&nbsp;on SSLCertificateFile&nbsp;conf\/2_data-ordertime.xyz.crt&nbsp;&nbsp;\u4f60\u7533\u8bf7\u7684\u8bc1\u4e66\u6587\u4ef6\u7684\u5730\u5740 SSLCertificateKeyFile&nbsp;conf\/3_data-ordertime.xyz.key&nbsp;&nbsp;\u4f60\u7533\u8bf7\u7684key\u6587\u4ef6\u7684\u5730\u5740 &lt;directory&gt; SSLOptions&nbsp;+StdEnvVars AllowOverride&nbsp;All Require&nbsp;all&nbsp;granted &lt;\/directory&gt;&lt;filesmatch&gt; SSLOptions&nbsp;+StdEnvVars &lt;\/filesmatch&gt; BrowserMatch&nbsp;&#8220;MSIE&nbsp;[2-5]&#8221;&nbsp; nokeepalive&nbsp;ssl-unclean-shutdown&nbsp; downgrade-1.0&nbsp;force-response-1.0 &lt;\/virtualhost&gt; \u767b\u5f55\u540e\u590d\u5236 \u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u4e2d\u914d\u7f6e\u57df\u540d\u4fe1\u606f\uff1a \u6b64\u65f6\uff0c\u5728\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177\u4e2d\u8be5\u57df\u540d\u4f1a\u8ba4\u4e3a\u662f\u5b89\u5168\u53ef\u7528\u57df\u540d\uff08\u6ce8\u610f\uff0c\u6211\u4eec\u662f\u4e3a\u4e86\u4e0b\u9762\u4e8c\u56fe\u4e2d\u9879\u76ee\u8bbe\u7f6e\u4e2d \u4e0d\u6821\u9a8c\u5408\u6cd5\u57df\u540d&nbsp;\u9009\u9879\u4e0d\u88ab\u52fe\u4e0a\u4e5f\u53ef\u4ee5\u8bbf\u95ee\u6211\u4eec\u7684\u540e\u53f0\uff0c\u56e0\u4e3a\u6211\u4eec\u57df\u540d\u7406\u8bba\u4e0a\u7684\u5b89\u5168\uff08http\u4e0ehttps\u7684\u5dee\u5f02\uff09\uff09 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-33989","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/33989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=33989"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/33989\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=33989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=33989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=33989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}