{"id":33770,"date":"2024-11-25T14:10:25","date_gmt":"2024-11-25T06:10:25","guid":{"rendered":"https:\/\/fwq.ai\/blog\/33770\/"},"modified":"2024-11-25T14:10:25","modified_gmt":"2024-11-25T06:10:25","slug":"%e5%b8%9d%e5%9b%bdcms%e7%99%bb%e5%bd%95%e4%bc%9a%e5%91%98%e4%bb%a5%e5%90%8e%e8%b7%b3%e8%bd%ac%e5%9c%b0%e5%9d%80%e9%94%99%e8%af%af%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/33770\/","title":{"rendered":"\u5e1d\u56fdcms\u767b\u5f55\u4f1a\u5458\u4ee5\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\u600e\u4e48\u529e"},"content":{"rendered":"<blockquote><p>\n  \u89e3\u51b3\u5e1d\u56fdcms\u4f1a\u5458\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\u7684\u65b9\u6cd5\uff1a\u68c0\u67e5\u4f1a\u5458\u7ec4\u8bbe\u7f6e\u4e2d\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u7684\u6b63\u786e\u6027\u3002\u68c0\u67e5\u767b\u5f55\u9875\u9762\u4e2d\u7684\u767b\u5f55\u4ee3\u7801\u662f\u5426\u4f7f\u7528\u4e86\u6b63\u786e\u7684\u8df3\u8f6c\u5730\u5740\u3002\u68c0\u67e5\u767b\u5f55\u6210\u529f\u540e\u8c03\u7528\u7684\u6a21\u677f\u6587\u4ef6\u4e2d\u662f\u5426\u5305\u542b\u6b63\u786e\u7684\u8df3\u8f6c\u4ee3\u7801\u3002\u68c0\u67e5\u81ea\u5b9a\u4e49\u767b\u5f55\u63d2\u4ef6\u4e2d\u662f\u5426\u5305\u542b\u4e86\u8df3\u8f6c\u4ee3\u7801\uff0c\u4e14\u5730\u5740\u4e0e\u4f1a\u5458\u7ec4\u8bbe\u7f6e\u4e2d\u7684\u4e00\u81f4\u3002\u6e05\u9664\u5e1d\u56fdcms\u7684\u7f13\u5b58\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/16\/2024041619271575745.jpg\" class=\"aligncenter\" title=\"\u5e1d\u56fdcms\u767b\u5f55\u4f1a\u5458\u4ee5\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\u600e\u4e48\u529e\u63d2\u56fe\" alt=\"\u5e1d\u56fdcms\u767b\u5f55\u4f1a\u5458\u4ee5\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\u600e\u4e48\u529e\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5e1d\u56fdCMS\u4f1a\u5458\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\u7684\u89e3\u51b3\u65b9\u6cd5<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong>\u5e1d\u56fdCMS\u4f1a\u5458\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\uff0c\u5982\u4f55\u89e3\u51b3\uff1f<\/p>\n<p><strong>\u56de\u7b54\uff1a<\/strong><\/p>\n<ol>\n<li><strong>\u68c0\u67e5\u4f1a\u5458\u7ec4\u8bbe\u7f6e<\/strong><\/li>\n<\/ol>\n<p>\u786e\u4fdd\u4f1a\u5458\u767b\u5f55\u540e\uff0c\u8df3\u8f6c\u7684\u5730\u5740\u5728\u4f1a\u5458\u7ec4\u7684\u8bbe\u7f6e\u4e2d\u6b63\u786e\u586b\u5199\u3002\u5728\u5e1d\u56fdCMS\u540e\u53f0\uff0c\u8fdb\u5165\u201c\u4f1a\u5458\u7ba1\u7406\u201d-&gt;\u201c\u4f1a\u5458\u7ec4\u7ba1\u7406\u201d\uff0c\u9009\u62e9\u76f8\u5e94\u7684\u4f1a\u5458\u7ec4\uff0c\u68c0\u67e5\u201c\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u201d\u8bbe\u7f6e\u3002<\/p>\n<ol>\n<li><strong>\u68c0\u67e5\u767b\u5f55\u4ee3\u7801<\/strong><\/li>\n<\/ol>\n<p>\u5728\u767b\u5f55\u9875\u9762\uff0c\u68c0\u67e5\u767b\u5f55\u4ee3\u7801\u662f\u5426\u6b63\u786e\u3002\u786e\u4fdd\u767b\u5f55\u4ee3\u7801\u4e2d\u4f7f\u7528\u4e86\u6b63\u786e\u7684\u8df3\u8f6c\u5730\u5740\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u767b\u5f55\u4ee3\u7801\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u793a\u4f8b\uff1a<\/p>\n<pre>\/\/ \u7528\u6237\u767b\u5f55\nif ($r['result'] == 1)\n{\n    \/\/ \u767b\u5f55\u6210\u529f\n    echo \"&lt;script&gt;\n        alert('\u767b\u5f55\u6210\u529f');\n        location.href = '{$return_url}';\n        &lt;\/script&gt;\";\n    exit();\n}\nelse\n{\n    \/\/ \u767b\u5f55\u5931\u8d25\n    echo \"&lt;script&gt;\n        alert('\u767b\u5f55\u5931\u8d25');\n        location.href = '{$login_url}';\n        &lt;\/script&gt;\";\n    exit();\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li><strong>\u68c0\u67e5\u6a21\u677f\u6587\u4ef6<\/strong><\/li>\n<\/ol>\n<p>\u786e\u4fdd\u767b\u5f55\u6210\u529f\u540e\uff0c\u8c03\u7528\u7684\u6a21\u677f\u6587\u4ef6\u4e2d\u5305\u542b\u6b63\u786e\u7684\u8df3\u8f6c\u4ee3\u7801\u3002\u5728\u6a21\u677f\u6587\u4ef6\u4e2d\uff0c\u68c0\u67e5\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;script&gt;\n    location.href = '{$return_url}';\n&lt;\/script&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li><strong>\u68c0\u67e5\u81ea\u5b9a\u4e49\u767b\u5f55\u63d2\u4ef6<\/strong><\/li>\n<\/ol>\n<p>\u5982\u679c\u4f7f\u7528\u4e86\u81ea\u5b9a\u4e49\u767b\u5f55\u63d2\u4ef6\uff0c\u8bf7\u68c0\u67e5\u63d2\u4ef6\u4e2d\u7684\u4ee3\u7801\u662f\u5426\u6b63\u786e\u3002\u786e\u4fdd\u63d2\u4ef6\u4e2d\u5305\u542b\u4e86\u8df3\u8f6c\u4ee3\u7801\uff0c\u5e76\u4e14\u8df3\u8f6c\u5730\u5740\u4e0e\u4f1a\u5458\u7ec4\u8bbe\u7f6e\u4e2d\u7684\u4e00\u81f4\u3002<\/p>\n<ol>\n<li><strong>\u6e05\u9664\u7f13\u5b58<\/strong><\/li>\n<\/ol>\n<p>\u5982\u679c\u4ee5\u4e0a\u6b65\u9aa4\u90fd\u6ca1\u6709\u89e3\u51b3\u95ee\u9898\uff0c\u8bf7\u5c1d\u8bd5\u6e05\u9664\u5e1d\u56fdCMS\u7684\u7f13\u5b58\u3002\u5728\u5e1d\u56fdCMS\u540e\u53f0\uff0c\u8fdb\u5165\u201c\u7cfb\u7edf\u8bbe\u7f6e\u201d-&gt;\u201c\u5176\u4ed6\u8bbe\u7f6e\u201d\uff0c\u70b9\u51fb\u201c\u6e05\u9664\u7f13\u5b58\u201d\u6309\u94ae\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u767b\u5f55\u4f1a\u5458\u4ee5\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\u600e\u4e48\u529e\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>\u89e3\u51b3\u5e1d\u56fdcms\u4f1a\u5458\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\u7684\u65b9\u6cd5\uff1a\u68c0\u67e5\u4f1a\u5458\u7ec4\u8bbe\u7f6e\u4e2d\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u7684\u6b63\u786e\u6027\u3002\u68c0\u67e5\u767b\u5f55\u9875\u9762\u4e2d\u7684\u767b\u5f55\u4ee3\u7801\u662f\u5426\u4f7f\u7528\u4e86\u6b63\u786e\u7684\u8df3\u8f6c\u5730\u5740\u3002\u68c0\u67e5\u767b\u5f55\u6210\u529f\u540e\u8c03\u7528\u7684\u6a21\u677f\u6587\u4ef6\u4e2d\u662f\u5426\u5305\u542b\u6b63\u786e\u7684\u8df3\u8f6c\u4ee3\u7801\u3002\u68c0\u67e5\u81ea\u5b9a\u4e49\u767b\u5f55\u63d2\u4ef6\u4e2d\u662f\u5426\u5305\u542b\u4e86\u8df3\u8f6c\u4ee3\u7801\uff0c\u4e14\u5730\u5740\u4e0e\u4f1a\u5458\u7ec4\u8bbe\u7f6e\u4e2d\u7684\u4e00\u81f4\u3002\u6e05\u9664\u5e1d\u56fdcms\u7684\u7f13\u5b58\u3002 \u5e1d\u56fdCMS\u4f1a\u5458\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\u7684\u89e3\u51b3\u65b9\u6cd5 \u95ee\u9898\uff1a\u5e1d\u56fdCMS\u4f1a\u5458\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\uff0c\u5982\u4f55\u89e3\u51b3\uff1f \u56de\u7b54\uff1a \u68c0\u67e5\u4f1a\u5458\u7ec4\u8bbe\u7f6e \u786e\u4fdd\u4f1a\u5458\u767b\u5f55\u540e\uff0c\u8df3\u8f6c\u7684\u5730\u5740\u5728\u4f1a\u5458\u7ec4\u7684\u8bbe\u7f6e\u4e2d\u6b63\u786e\u586b\u5199\u3002\u5728\u5e1d\u56fdCMS\u540e\u53f0\uff0c\u8fdb\u5165\u201c\u4f1a\u5458\u7ba1\u7406\u201d-&gt;\u201c\u4f1a\u5458\u7ec4\u7ba1\u7406\u201d\uff0c\u9009\u62e9\u76f8\u5e94\u7684\u4f1a\u5458\u7ec4\uff0c\u68c0\u67e5\u201c\u767b\u5f55\u540e\u8df3\u8f6c\u5730\u5740\u201d\u8bbe\u7f6e\u3002 \u68c0\u67e5\u767b\u5f55\u4ee3\u7801 \u5728\u767b\u5f55\u9875\u9762\uff0c\u68c0\u67e5\u767b\u5f55\u4ee3\u7801\u662f\u5426\u6b63\u786e\u3002\u786e\u4fdd\u767b\u5f55\u4ee3\u7801\u4e2d\u4f7f\u7528\u4e86\u6b63\u786e\u7684\u8df3\u8f6c\u5730\u5740\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u767b\u5f55\u4ee3\u7801\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u793a\u4f8b\uff1a \/\/ \u7528\u6237\u767b\u5f55 if ($r[&#8216;result&#8217;] == 1) { \/\/ \u767b\u5f55\u6210\u529f echo &#8220;&lt;script&gt; alert(&#8216;\u767b\u5f55\u6210\u529f&#8217;); location.href = &#8216;{$return_url}&#8217;; &lt;\/script&gt;&#8221;; exit(); } else { \/\/ \u767b\u5f55\u5931\u8d25 echo &#8220;&lt;script&gt; alert(&#8216;\u767b\u5f55\u5931\u8d25&#8217;); location.href = &#8216;{$login_url}&#8217;; &lt;\/script&gt;&#8221;; exit(); } \u767b\u5f55\u540e\u590d\u5236 \u68c0\u67e5\u6a21\u677f\u6587\u4ef6 \u786e\u4fdd\u767b\u5f55\u6210\u529f\u540e\uff0c\u8c03\u7528\u7684\u6a21\u677f\u6587\u4ef6\u4e2d\u5305\u542b\u6b63\u786e\u7684\u8df3\u8f6c\u4ee3\u7801\u3002\u5728\u6a21\u677f\u6587\u4ef6\u4e2d\uff0c\u68c0\u67e5\u4ee5\u4e0b\u4ee3\u7801\uff1a &lt;script&gt; location.href = &#8216;{$return_url}&#8217;; &lt;\/script&gt; \u767b\u5f55\u540e\u590d\u5236 \u68c0\u67e5\u81ea\u5b9a\u4e49\u767b\u5f55\u63d2\u4ef6 \u5982\u679c\u4f7f\u7528\u4e86\u81ea\u5b9a\u4e49\u767b\u5f55\u63d2\u4ef6\uff0c\u8bf7\u68c0\u67e5\u63d2\u4ef6\u4e2d\u7684\u4ee3\u7801\u662f\u5426\u6b63\u786e\u3002\u786e\u4fdd\u63d2\u4ef6\u4e2d\u5305\u542b\u4e86\u8df3\u8f6c\u4ee3\u7801\uff0c\u5e76\u4e14\u8df3\u8f6c\u5730\u5740\u4e0e\u4f1a\u5458\u7ec4\u8bbe\u7f6e\u4e2d\u7684\u4e00\u81f4\u3002 \u6e05\u9664\u7f13\u5b58 \u5982\u679c\u4ee5\u4e0a\u6b65\u9aa4\u90fd\u6ca1\u6709\u89e3\u51b3\u95ee\u9898\uff0c\u8bf7\u5c1d\u8bd5\u6e05\u9664\u5e1d\u56fdCMS\u7684\u7f13\u5b58\u3002\u5728\u5e1d\u56fdCMS\u540e\u53f0\uff0c\u8fdb\u5165\u201c\u7cfb\u7edf\u8bbe\u7f6e\u201d-&gt;\u201c\u5176\u4ed6\u8bbe\u7f6e\u201d\uff0c\u70b9\u51fb\u201c\u6e05\u9664\u7f13\u5b58\u201d\u6309\u94ae\u3002 \u4ee5\u4e0a\u5c31\u662f\u767b\u5f55\u4f1a\u5458\u4ee5\u540e\u8df3\u8f6c\u5730\u5740\u9519\u8bef\u600e\u4e48\u529e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-33770","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/33770","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=33770"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/33770\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=33770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=33770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=33770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}