{"id":59257,"date":"2025-04-23T15:51:50","date_gmt":"2025-04-23T07:51:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/59257\/"},"modified":"2025-04-23T15:51:50","modified_gmt":"2025-04-23T07:51:50","slug":"%e4%bf%ae%e6%94%b9ecshop%e8%ae%a9%e8%ae%a2%e5%8d%95%e8%af%a6%e6%83%85%e9%87%8c%e5%b0%86%e4%bc%9a%e5%91%98%e5%9c%b0%e5%9d%80%e8%af%a6%e6%83%85%e5%85%a8%e9%83%a8%e6%98%be%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/59257\/","title":{"rendered":"\u4fee\u6539ecshop\u8ba9\u8ba2\u5355\u8be6\u60c5\u91cc\u5c06\u4f1a\u5458\u5730\u5740\u8be6\u60c5\u5168\u90e8\u663e\u793a"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/110424\/1_110424035734_1_lit.jpg\" class=\"aligncenter\" title=\"\u4fee\u6539ecshop\u8ba9\u8ba2\u5355\u8be6\u60c5\u91cc\u5c06\u4f1a\u5458\u5730\u5740\u8be6\u60c5\u5168\u90e8\u663e\u793a\u63d2\u56fe\" alt=\"\u4fee\u6539ecshop\u8ba9\u8ba2\u5355\u8be6\u60c5\u91cc\u5c06\u4f1a\u5458\u5730\u5740\u8be6\u60c5\u5168\u90e8\u663e\u793a\u63d2\u56fe\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/110424\/1_110424035734_1_lit.jpg\" class=\"aligncenter\" title=\"\u4fee\u6539ecshop\u8ba9\u8ba2\u5355\u8be6\u60c5\u91cc\u5c06\u4f1a\u5458\u5730\u5740\u8be6\u60c5\u5168\u90e8\u663e\u793a\u63d2\u56fe\" alt=\"\u4fee\u6539ecshop\u8ba9\u8ba2\u5355\u8be6\u60c5\u91cc\u5c06\u4f1a\u5458\u5730\u5740\u8be6\u60c5\u5168\u90e8\u663e\u793a\u63d2\u56fe\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/110424\/1_110424035734_1_lit.jpg\" class=\"aligncenter\" title=\"\u4fee\u6539ecshop\u8ba9\u8ba2\u5355\u8be6\u60c5\u91cc\u5c06\u4f1a\u5458\u5730\u5740\u8be6\u60c5\u5168\u90e8\u663e\u793a\u63d2\u56fe\" alt=\"\u4fee\u6539ecshop\u8ba9\u8ba2\u5355\u8be6\u60c5\u91cc\u5c06\u4f1a\u5458\u5730\u5740\u8be6\u60c5\u5168\u90e8\u663e\u793a\u63d2\u56fe\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/110424\/1_110424035734_1.jpg\" class=\"aligncenter\" title=\"\u4fee\u6539ecshop\u8ba9\u8ba2\u5355\u8be6\u60c5\u91cc\u5c06\u4f1a\u5458\u5730\u5740\u8be6\u60c5\u5168\u90e8\u663e\u793a\u63d2\u56fe1\" alt=\"\u4fee\u6539ecshop\u8ba9\u8ba2\u5355\u8be6\u60c5\u91cc\u5c06\u4f1a\u5458\u5730\u5740\u8be6\u60c5\u5168\u90e8\u663e\u793a\u63d2\u56fe1\" \/>  <\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">$sql = &#8220;SELECT concat(IFNULL(c.region_name, &#8221;), &#8216;&nbsp;&nbsp;&#8216;, IFNULL(p.region_name, &#8221;), &#8221; .<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;&#8216;&nbsp;&nbsp;&#8216;, IFNULL(t.region_name, &#8221;), &#8216;&nbsp;&nbsp;&#8216;, IFNULL(d.region_name, &#8221;)) AS region &#8221; .<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;FROM &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;order_info&#8217;) . &#8221; AS o &#8221; .<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;LEFT JOIN &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;region&#8217;) . &#8221; AS c ON o.country = c.region_id &#8221; .<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;LEFT JOIN &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;region&#8217;) . &#8221; AS p ON o.province = p.region_id &#8221; .<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;LEFT JOIN &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;region&#8217;) . &#8221; AS t ON o.city = t.region_id &#8221; .<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;LEFT JOIN &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;region&#8217;) . &#8221; AS d ON o.district = d.region_id &#8221; .<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;WHERE o.order_id = &#8216;$order[order_id]'&#8221;;<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$res = $GLOBALS[&#8216;db&#8217;]-&gt;getRow($sql);<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$smarty-&gt;assign(&#8216;address&#8217;,$res[&#8216;region&#8217;]);<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">\u5728user.php\u4e2d\u7684<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">elseif ($action == &#8216;order_detail&#8217;)\u91cc\u9762\u52a0\u4e0a\u4e0a\u9762\u90a3\u53e5\u8bdd<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">\u5728user_transaction.dwt\u4e2d\u627e\u5230\u5bf9\u5e94\u7684\u4ee3\u7801\u663e\u793a\u51fa\u6765\u5373\u53ef<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-left-width: 0px;border-style: initial;border-color: initial;list-style-type: none;line-height: 21px;font-family: simsun\">&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; $sql = &#8220;SELECT concat(IFNULL(c.region_name, &#8221;), &#8216;&nbsp;&nbsp;&#8216;, IFNULL(p.region_name, &#8221;), &#8221; . &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;&#8216;&nbsp;&nbsp;&#8216;, IFNULL(t.region_name, &#8221;), &#8216;&nbsp;&nbsp;&#8216;, IFNULL(d.region_name, &#8221;)) AS region &#8221; . &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;FROM &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;order_info&#8217;) . &#8221; AS o &#8221; . &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;LEFT JOIN &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;region&#8217;) . &#8221; AS c ON o.country = c.region_id &#8221; . &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;LEFT JOIN &#8221; . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;region&#8217;) . &#8221; AS p [&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-59257","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59257","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=59257"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59257\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=59257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=59257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=59257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}