{"id":199006,"date":"2025-05-03T10:56:08","date_gmt":"2025-05-03T02:56:08","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199006\/"},"modified":"2025-05-03T10:56:08","modified_gmt":"2025-05-03T02:56:08","slug":"%e5%9c%a8ecshop%e9%a6%96%e9%a1%b5%e7%9a%84%e7%b2%be%e5%93%81-%e6%96%b0%e5%93%81-%e7%83%ad%e9%94%80%e9%87%8c%e6%98%be%e7%a4%ba%e5%95%86%e5%ae%b6%e5%a4%87%e6%b3%a8","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199006\/","title":{"rendered":"\u5728ECSHOP\u9996\u9875\u7684\u7cbe\u54c1\/\u65b0\u54c1\/\u70ed\u9500\u91cc\u663e\u793a\u5546\u5bb6\u5907\u6ce8"},"content":{"rendered":"<p><strong>\u95ee\u9898\uff1a<\/p>\n<p> \u6211\u60f3\u5c06\u540e\u53f0\u7f16\u8f91\u5546\u54c1\u65f6\u5f55\u5165\u7684\u201c\u5546\u5bb6\u5907\u6ce8\u201d\u4fe1\u606f\u663e\u793a\u5728ECSHOP\u5546\u57ce\u9996\u9875\u7684\u201c\u7cbe\u54c1\u63a8\u8350\/\u65b0\u54c1\u4e0a\u5e02\/\u70ed\u5356\u5546\u54c1\u201d\u51e0\u4e2a\u680f\u76ee\u91cc\uff0c\u8bf7\u95ee\u9700\u8981\u600e\u4e48\u4fee\u6539\u5462\uff1f\uff1f<br \/> <\/strong><br \/>\n<br \/> <br \/>\n<img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/c101102\/12XDY355b50-11624.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u4fee\u6539\u65b9\u6cd5\uff1a<\/p>\n<p> <\/strong>1\u3001\u4fee\u6539 \/includes\/lib_goods.php \u6587\u4ef6 \uff08\u6700\u597d\u4f7f\u7528editplus\uff09<\/p>\n<p> \u5c06<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><font>&#8220;promote_start_date, promote_end_date, g.goods_brief, g.goods_thumb, g.goods_img, RAND() AS rnd &#8221; .<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \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><font>&#8220;promote_start_date, promote_end_date, g.goods_brief, g.goods_thumb, g.goods_img,g.seller_note, RAND() AS rnd &#8221; .<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u63a5\u7740\uff0c\u627e\u5230<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><font>if (in_array($row[&#8216;goods_id&#8217;], $type_array[&#8216;best&#8217;]))<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5728\u5b83\u4e0a\u9762\u52a0\u4e00\u884c\u4ee3\u7801<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><font>$goods[$idx][&#8216;seller_note&#8217;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = $row[&#8216;seller_note&#8217;];<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> 2\u3001<\/p>\n<p> \u4e0b\u9762\u4fee\u6539ECSHOP\u6a21\u677f\u6587\u4ef6\uff0c\u4ee5\u5b98\u65b9\u9ed8\u8ba4\u6a21\u677f\u4e3a\u4f8b\uff08\u5176\u4ed6\u6a21\u677f\u540c\u7406\uff09<\/p>\n<p> \u6253\u5f00 \/themes\/default\/library\/recommend_best.lbi \u6587\u4ef6<\/p>\n<p> \u5728 <\/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>&lt;p&gt;&lt;a href=&#8221;{$goods.url}&#8221; title=&#8221;{$goods.name|escape:html}&#8221;&gt;{$goods.short_style_name}&lt;\/a&gt;&lt;\/p&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u4e0b\u9762\u589e\u52a0\u4e00\u884c\u4ee3\u7801<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><font>&lt;p&gt;{$goods.seller_note}&lt;\/p&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> 3\u3001<br \/>\n<br \/> \u7136\u540e\u6253\u5f00 \/themes\/default\/library\/recommend_hot.lbi \u6587\u4ef6\uff0c\u4fee\u6539\u65b9\u6cd5\u540c\u4e0a<\/p>\n<p> 4\u3001<br \/>\n<br \/> \u7136\u540e\u6253\u5f00 \/themes\/default\/library\/recommend_new.lbi \u6587\u4ef6\uff0c\u4fee\u6539\u65b9\u6cd5\u540c\u4e0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\uff1a \u6211\u60f3\u5c06\u540e\u53f0\u7f16\u8f91\u5546\u54c1\u65f6\u5f55\u5165&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199006","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199006"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199006\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}