{"id":59698,"date":"2025-04-23T17:51:51","date_gmt":"2025-04-23T09:51:51","guid":{"rendered":"https:\/\/fwq.ai\/blog\/59698\/"},"modified":"2025-04-23T17:51:51","modified_gmt":"2025-04-23T09:51:51","slug":"ecshop%e5%95%86%e5%9f%8e%e5%a4%9a%e5%9b%bd%e8%af%ad%e8%a8%80%e4%bf%ae%e6%94%b9%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/59698\/","title":{"rendered":"Ecshop\u5546\u57ce\u591a\u56fd\u8bed\u8a00\u4fee\u6539\u65b9\u6cd5"},"content":{"rendered":"<p> \u5728\u8d8a\u6765\u8d8a\u56fd\u9645\u5316\uff0c\u591a\u56fd\u8bed\u8a00\u4f3c\u4e4e\u662f\u4e00\u4e2a\u53d1\u5c55\u7684\u8d8b\u52bf\uff0c\u628a\u5546\u54c1\u5356\u5230\u56fd\u5916\uff0c\u8d5a\u8001\u5916\u7684\u7f8e\u5143\uff0c\u4f46\u662fecshop\u5982\u4f55\u5b9e\u73b0\u591a\u56fd\u8bed\u8a00\u5462\uff1f\u53ef\u4ee5\u5728\u9996\u9875\u5207\u6362\u8bed\u8a00\uff0c\u5176\u5b9e\u5b9e\u73b0\u8d77\u6765\u4e5f\u633a\u7b80\u5355\u7684\uff0c\u4e0b\u9762\u5c31\u8bf4\u4e00\u4e0b\u4fee\u6539\u65b9\u6cd5\u3002<\/p>\n<h2> \u9884\u89c8\u6548\u679c<\/h2>\n<p> <img decoding=\"async\" src=\"https:\/\/www.uedsc.com\/wp-content\/uploads\/2014\/12\/duoguoyuyyan.png\" class=\"aligncenter\" title=\"Ecshop\u5546\u57ce\u591a\u56fd\u8bed\u8a00\u4fee\u6539\u65b9\u6cd5\u63d2\u56fe\" alt=\"Ecshop\u5546\u57ce\u591a\u56fd\u8bed\u8a00\u4fee\u6539\u65b9\u6cd5\u63d2\u56fe\" \/><\/p>\n<h2> \u4fee\u6539\u65b9\u6cd5<\/h2>\n<p> \u9996\u5148\u6253\u5f00&nbsp;includds\/init.php&nbsp; \u6587\u4ef6\uff0c\u627e\u5230<\/p>\n<pre>\r\nrequire(ROOT_PATH . 'languages\/' . $_CFG['lang'] . '\/common.php');<\/pre>\n<p> \u4e0e<\/p>\n<pre>\r\n$smarty-&gt;assign('lang', $_LANG);<\/pre>\n<p> \u5148\u5c06\u8fd9\u4e24\u884c\u4ee3\u7801\u5220\u6389\u3002<\/p>\n<p> \u627e\u5230<\/p>\n<pre>\r\nif ((DEBUG_MODE &amp; 1) == 1)<\/pre>\n<p> \u5728\u5b83\u4e0a\u8fb9\u589e\u52a0<\/p>\n<pre>\r\nif(!empty($_REQUEST['lang'])){\r\n&nbsp;$_SESSION['lang']=$_REQUEST['lang'];\r\n}\r\nif (!empty($_SESSION['lang']))\r\n{\r\nswitch($_SESSION['lang']){\r\n&nbsp; case 'zh_cn':\r\n&nbsp;&nbsp; $_CFG['lang']=\"zh_cn\";\r\n&nbsp; break;\r\n&nbsp; case 'zh_tw':\r\n&nbsp;&nbsp; $_CFG['lang']=\"zh_tw\";\r\n&nbsp; break;\r\n&nbsp; case 'en_us':\r\n&nbsp;&nbsp; $_CFG['lang']=\"en_us\";\r\n&nbsp; break;\r\n}\r\n}\r\nrequire(ROOT_PATH . 'languages\/' . $_CFG['lang'] . '\/common.php');\r\n$smarty-&gt;assign('lang', $_LANG);<\/pre>\n<p> \u4fee\u6539&nbsp;\/themes\/default\/library\/page_header.lbi&nbsp;\u6587\u4ef6\u5728<\/p>\n<pre>\r\n&lt;div class=\"topNavR\"&gt;&lt;\/div&gt;<\/pre>\n<p> \u4e0a\u8fb9\u6dfb\u52a0<\/p>\n<pre>\r\n&nbsp;| &lt;a href=\"?lang=zh_cn\"&gt;\u7b80\u4f53&lt;\/a&gt; | \r\n&lt;a href=\"?lang=zh_tw\"&gt;\u7e41\u4f53&lt;\/a&gt; | \r\n&lt;a href=\"?lang=en_us\"&gt;\u82f1\u6587&lt;\/a&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u8d8a\u6765\u8d8a\u56fd\u9645\u5316\uff0c\u591a\u56fd\u8bed\u8a00\u4f3c\u4e4e\u662f\u4e00\u4e2a\u53d1\u5c55\u7684\u8d8b\u52bf\uff0c\u628a\u5546\u54c1\u5356\u5230\u56fd\u5916\uff0c\u8d5a\u8001\u5916\u7684\u7f8e\u5143\uff0c\u4f46\u662fecshop\u5982\u4f55\u5b9e\u73b0\u591a\u56fd\u8bed\u8a00\u5462\uff1f\u53ef\u4ee5\u5728\u9996\u9875\u5207\u6362\u8bed\u8a00\uff0c\u5176\u5b9e\u5b9e\u73b0\u8d77\u6765\u4e5f\u633a\u7b80\u5355\u7684\uff0c\u4e0b\u9762\u5c31\u8bf4\u4e00\u4e0b\u4fee\u6539\u65b9\u6cd5\u3002 \u9884\u89c8\u6548\u679c \u4fee\u6539\u65b9\u6cd5 \u9996\u5148\u6253\u5f00&nbsp;includds\/init.php&nbsp; \u6587\u4ef6\uff0c\u627e\u5230 require(ROOT_PATH . &#8216;languages\/&#8217; . $_CFG[&#8216;lang&#8217;] . &#8216;\/common.php&#8217;); \u4e0e $smarty-&gt;assign(&#8216;lang&#8217;, $_LANG); \u5148\u5c06\u8fd9\u4e24\u884c\u4ee3\u7801\u5220\u6389\u3002 \u627e\u5230 if ((DEBUG_MODE &amp; 1) == 1) \u5728\u5b83\u4e0a\u8fb9\u589e\u52a0 if(!empty($_REQUEST[&#8216;lang&#8217;])){ &nbsp;$_SESSION[&#8216;lang&#8217;]=$_REQUEST[&#8216;lang&#8217;]; } if (!empty($_SESSION[&#8216;lang&#8217;])) { switch($_SESSION[&#8216;lang&#8217;]){ &nbsp; case &#8216;zh_cn&#8217;: &nbsp;&nbsp; $_CFG[&#8216;lang&#8217;]=&#8221;zh_cn&#8221;; &nbsp; break; &nbsp; case &#8216;zh_tw&#8217;: &nbsp;&nbsp; $_CFG[&#8216;lang&#8217;]=&#8221;zh_tw&#8221;; &nbsp; break; &nbsp; case &#8216;en_us&#8217;: &nbsp;&nbsp; $_CFG[&#8216;lang&#8217;]=&#8221;en_us&#8221;; &nbsp; break; } } require(ROOT_PATH [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-59698","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59698","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=59698"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59698\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=59698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=59698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=59698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}