{"id":199201,"date":"2025-05-03T12:01:10","date_gmt":"2025-05-03T04:01:10","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199201\/"},"modified":"2025-05-03T12:01:10","modified_gmt":"2025-05-03T04:01:10","slug":"%e5%a6%82%e4%bd%95%e4%bf%ae%e6%94%b9ecshop%e5%8f%91%e8%b4%a7%e5%8d%95%e6%9f%a5%e8%af%a2%e6%98%be%e7%a4%ba%e4%b8%aa%e6%95%b0","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199201\/","title":{"rendered":"\u5982\u4f55\u4fee\u6539ECShop\u53d1\u8d27\u5355\u67e5\u8be2\u663e\u793a\u4e2a\u6570"},"content":{"rendered":"<p>&nbsp;<span style=\"font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">\u4f7f\u7528ecshop\u7684\u670b\u53cb\u90fd\u77e5\u9053\uff0c\u5546\u57ce\u9996\u9875\u8c03\u7528\u7684\u53d1\u8d27\u5355\u67e5\u8be2\uff0c\u9ed8\u8ba4\u663e\u793a\u768410\u4e2a\u3002\u5f88\u591a\u670b\u53cb\u60f3\u4fee\u6539\u5b83\u7684\u6570\u91cf\uff0c\u53ef\u662f\u5728\u540e\u53f0\u7ba1\u7406\u5374\u627e\u4e0d\u5230\u76f8\u5e94\u7684\u5730\u65b9\uff0c\u8fd9\u4e2a\u4fee\u6539\u548c\u663e\u793a\u6392\u884c\u699c\u7684\u6570\u91cf\u4fee\u6539\u65b9\u6cd5\u4e0d\u4e00\u6837\u3002\u6392\u884c\u699c\u662f\u53ef\u4ee5\u5728\u540e\u53f0\u4fee\u6539\u7684\uff0c\u4f46\u662f\u8fd9\u4e2a\u53d1\u8d27\u5355\u6570\u91cf\u5374\u6ca1\u6709\u76f8\u5e94\u7684\u5730\u65b9\u3002 <\/span><\/p>\n<p>  &nbsp;   \u5982\u679c\u4f60\u60f3\u628a\u81ea\u5df1\u7684\u5546\u57ce\u53d1\u8d27\u5355\u6570\u91cf\u6539\u6210\u5176\u4ed6\u6570\u5b57\uff0c\u600e\u4e48\u529e\u5462\uff1f\u60f3\u505a\u51fa\u6eda\u52a8\u6548\u679c10\u4e2a\u662f\u8fdc\u8fdc\u4e0d\u591f\u7684\uff0c\u90a3\u4e48\u4e0b\u9762 \u597d\u6a21\u677f\u5c31\u6559\u5927\u5bb6\u600e\u4e48\u4fee\u6539\u3002   &nbsp;   \u5176\u5b9e\uff0c\u5f53\u521d\u597d\u6a21\u677f\u4e5f\u4e0d\u4f1a\u4fee\u6539\uff0c\u4e5f\u548c\u5927\u5bb6\u4e00\u6837\u8ff7\u832b\uff0c\u597d\u5728ecshop\u5b98\u65b9\u8bba\u575b\u6709\u70ed\u5fc3\u670b\u53cb\u5e2e\u5fd9\u3002   &nbsp;   \u4f60\u53ea\u9700\u8981\u5728\u7a0b\u5e8f\u4e2dindex.php\u4e2d\u627e\u5230\u4e0b\u9762\u8fd9\u6837\u7684\u4ee3\u7801\uff0c\u4fee\u6539\u90e8\u5206\u5373\u53ef\u3002<br \/>\n<span style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;line-height: 25px\"> <\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 24px;margin-left: 0px;background-image: initial;background-attachment: initial;background-color: transparent;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;vertical-align: baseline;text-decoration: none\"><code>function index_get_invoice_query()<br \/> {<br \/> $sql = 'SELECT o.order_sn, o.invoice_no, s.shipping_code FROM ' . $GLOBALS['ecs']-&gt;table('order_info') . ' AS o' .<br \/> ' LEFT JOIN ' . $GLOBALS['ecs']-&gt;table('shipping') . ' AS s ON s.shipping_id = o.shipping_id' .<br \/> \" WHERE invoice_no &gt; '' AND shipping_status = \" . SS_SHIPPED .<br \/> ' ORDER BY shipping_time DESC LIMIT 10';<br \/> $all = $GLOBALS['db']-&gt;getAll($sql);<\/code><\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 24px;margin-left: 0px;background-image: initial;background-attachment: initial;background-color: transparent;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;vertical-align: baseline;text-decoration: none\">\u627e\u5230\u4ee3\u7801\u7b2c163\u884c\uff0c\u6211\u4eec\u5c06\u6570\u5b5710\u4fee\u6539\u4e3a\u4f60\u9700\u8981\u7684\u6570\u5b57\u3002\u7136\u540e\u91cd\u65b0\u4e0a\u4f20\uff0c\u5728\u540e\u53f0\u5237\u65b0\u7f13\u5b58\u3002\u597d\u4e86\uff0c\u770b\u770b\u662f\u4e0d\u662f\u5df2\u7ecf\u4fee\u6539\u6210\u9700\u8981\u663e\u793a\u7684\u6761\u6570\u4e86\u3002<\/p>\n<p> <\/span>  <\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\u4f7f\u7528ecshop\u7684\u670b&#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-199201","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199201","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=199201"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199201\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}