{"id":59123,"date":"2025-04-23T09:44:37","date_gmt":"2025-04-23T01:44:37","guid":{"rendered":"https:\/\/fwq.ai\/blog\/59123\/"},"modified":"2025-04-23T09:44:37","modified_gmt":"2025-04-23T01:44:37","slug":"%e4%bf%ae%e6%94%b9ecshop%e9%9a%90%e8%97%8f%e5%b8%ae%e5%8a%a9%e4%b8%ad%e5%bf%83%e6%96%87%e7%ab%a0%e9%a1%b5%e7%9a%84%e8%af%84%e8%ae%ba%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/59123\/","title":{"rendered":"\u4fee\u6539ECSHOP,\u9690\u85cf\u5e2e\u52a9\u4e2d\u5fc3\u6587\u7ae0\u9875\u7684\u8bc4\u8bba\u529f\u80fd"},"content":{"rendered":"<p>\u4e2a\u4eba\u8ba4\u4e3a\u5e2e\u52a9\u4e2d\u5fc3<span>\u5206\u7c7b<\/span>\u4e0b\u7684\u6587\u7ae0\u6ca1\u6709\u5fc5\u8981\u7ed9\u5b83\u52a0\u4e2a\u8bc4\u8bba<span>\u529f\u80fd\uff0c<br \/> \u4e0b\u9762\u6211\u4eec\u6765\u53bb\u6389\u5b83<\/p>\n<p> \u7b2c\u4e00\u6b65\uff1a<br \/> \u9996\u5148\u6211\u4eec\u6253\u5f00 \/article.php \u6587\u4ef6<br \/> \u627e\u5230<br \/> <span style=\"background-color: #ccffff\">$smarty-&gt;assign(&#8216;comment_type&#8217;, 1);<br \/> <\/span>\u5728\u5b83\u4e0b\u9762\u589e\u52a0\u4e00\u884c<span>\u4ee3\u7801<\/span><br \/> <span style=\"background-color: #ccffff\">$smarty-&gt;assign(&#8216;topcatid&#8217;,array_pop($catlist));<\/p>\n<p> <\/span>\u7b2c\u4e8c\u6b65\uff1a<br \/> \u7136\u540e\u6211\u4eec\u6765\u4fee\u6539 \/themes\/default\/library\/comments.lbi<\/p>\n<p> \u627e\u5230<br \/> <\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td><font>{insert_scripts files=&#8217;transport.js,utils.js&#8217;}<br \/> &lt;div id=&#8221;ECS_COMMENT&#8221;&gt; {* ECSHOP \u63d0\u9192\u60a8\uff1a\u52a8\u6001\u8f7d\u5165comments_list.lbi\uff0c\u663e\u793a\u8bc4\u8bba\u5217\u8868\u548c\u8bc4\u8bba\u8868\u5355 *}{insert name=&#8217;comments&#8217; type=$type id=$id}&lt;\/div&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5c06\u5b83\u4fee\u6539\u4e3a<br \/>\n <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td><span style=\"color: #ff0000\"><font>{if $topcatid neq 1}<br \/> {insert_scripts files=&#8217;transport.js,utils.js&#8217;}<br \/> &lt;div id=&#8221;ECS_COMMENT&#8221;&gt; {* ECSHOP \u63d0\u9192\u60a8\uff1a\u52a8\u6001\u8f7d\u5165comments_list.lbi\uff0c\u663e\u793a\u8bc4\u8bba\u5217\u8868\u548c\u8bc4\u8bba\u8868\u5355 *}{insert name=&#8217;comments&#8217; type=$type id=$id}&lt;\/div&gt;<br \/> {\/if}<\/font><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u8fd9\u6837\u5c31\u53ef\u4ee5\u4e86\uff0c\u53bb\u91cd\u65b0\u5237\u65b0\u4e00\u4e0b\u5e2e\u52a9\u4e2d\u5fc3\u7684\u6587\u7ae0\u9875\uff0c\u770b\u662f\u4e0d\u662f\u6ca1\u6709\u8bc4\u8bba\u6846\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e2a\u4eba\u8ba4\u4e3a\u5e2e\u52a9\u4e2d\u5fc3\u5206\u7c7b\u4e0b\u7684\u6587\u7ae0\u6ca1\u6709\u5fc5\u8981\u7ed9\u5b83\u52a0\u4e2a\u8bc4\u8bba\u529f\u80fd\uff0c \u4e0b\u9762\u6211\u4eec\u6765\u53bb\u6389\u5b83 \u7b2c\u4e00\u6b65\uff1a \u9996\u5148\u6211\u4eec\u6253\u5f00 \/article.php \u6587\u4ef6 \u627e\u5230 $smarty-&gt;assign(&#8216;comment_type&#8217;, 1); \u5728\u5b83\u4e0b\u9762\u589e\u52a0\u4e00\u884c\u4ee3\u7801 $smarty-&gt;assign(&#8216;topcatid&#8217;,array_pop($catlist)); \u7b2c\u4e8c\u6b65\uff1a \u7136\u540e\u6211\u4eec\u6765\u4fee\u6539 \/themes\/default\/library\/comments.lbi \u627e\u5230 {insert_scripts files=&#8217;transport.js,utils.js&#8217;} &lt;div id=&#8221;ECS_COMMENT&#8221;&gt; {* ECSHOP \u63d0\u9192\u60a8\uff1a\u52a8\u6001\u8f7d\u5165comments_list.lbi\uff0c\u663e\u793a\u8bc4\u8bba\u5217\u8868\u548c\u8bc4\u8bba\u8868\u5355 *}{insert name=&#8217;comments&#8217; type=$type id=$id}&lt;\/div&gt; \u5c06\u5b83\u4fee\u6539\u4e3a {if $topcatid neq 1} {insert_scripts files=&#8217;transport.js,utils.js&#8217;} &lt;div id=&#8221;ECS_COMMENT&#8221;&gt; {* ECSHOP \u63d0\u9192\u60a8\uff1a\u52a8\u6001\u8f7d\u5165comments_list.lbi\uff0c\u663e\u793a\u8bc4\u8bba\u5217\u8868\u548c\u8bc4\u8bba\u8868\u5355 *}{insert name=&#8217;comments&#8217; type=$type id=$id}&lt;\/div&gt; {\/if} \u8fd9\u6837\u5c31\u53ef\u4ee5\u4e86\uff0c\u53bb\u91cd\u65b0\u5237\u65b0\u4e00\u4e0b\u5e2e\u52a9\u4e2d\u5fc3\u7684\u6587\u7ae0\u9875\uff0c\u770b\u662f\u4e0d\u662f\u6ca1\u6709\u8bc4\u8bba\u6846\u4e86\u3002<\/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-59123","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59123","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=59123"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59123\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=59123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=59123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=59123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}