{"id":199369,"date":"2025-05-03T09:31:19","date_gmt":"2025-05-03T01:31:19","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199369\/"},"modified":"2025-05-03T09:31:19","modified_gmt":"2025-05-03T01:31:19","slug":"%e8%a7%a3%e5%86%b3ecshop%e5%bd%93%e5%89%8d%e8%ae%a2%e5%8d%95%e5%8f%91%e8%b4%a7%e6%95%b0%e9%87%8f%e4%b8%8d%e8%83%bd%e8%b6%85%e5%87%ba%e8%ae%a2%e5%8d%95%e5%95%86%e5%93%81%e6%95%b0%e9%87%8f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199369\/","title":{"rendered":"\u89e3\u51b3ecshop\u5f53\u524d\u8ba2\u5355\u53d1\u8d27\u6570\u91cf\u4e0d\u80fd\u8d85\u51fa\u8ba2\u5355\u5546\u54c1\u6570\u91cf"},"content":{"rendered":"<p>\u597d\u6a21\u677f\u63a5\u624b\u4e86\u4e00\u4e2aecshop2.7.3\u7248\u672c\u7684\u5546\u57ce\uff0c\u53d1\u73b0\u540e\u53f0\u53d1\u8d27\u65f6\u65e0\u6cd5\u4fee\u6539\u53d1\u8d27\u72b6\u6001\uff0c\u7136\u540e\u67e5\u770b\u5e93\u5b58\u53d1\u73b0\u6ca1\u6709\u7f3a\u8d27\u3002\u4e8e\u662f\u5f00\u59cb\u8ffd\u8e2a\u9519\u8bef\u3002 \u201c\u6b64\u5355\u53d1\u8d27\u6570\u91cf\u4e0d\u80fd\u8d85\u51fa\u8ba2\u5355\u5546\u54c1\u6570\u91cf\u201d\u63d0\u793a\u7684\u662f\u8fd9\u4e9b\u6587\u5b57\uff0c\u6240\u4ee5\u6211\u5148\u627e\u5230\u4e86languages\/zh_cn\/admin\/order.php\u7684\u8bed\u8a00\u914d\u7f6e\u6587\u4ef6\u3002 \u7b2c74\u884c\uff1a$_LANG[&#8216;act_ship_num&#8217;] = &#8216;\u6b64\u5355\u53d1\u8d27\u6570\u91cf\u4e0d\u80fd\u8d85\u51fa\u8ba2\u5355\u5546\u54c1\u6570\u91cf&#8217;; \u67e5\u627e\u8c03\u7528\u6b64\u5168\u5c40\u53d8\u91cf\u7684\u9875\u9762\uff0c\u679c\u7136\uff0c\u5bf9\u5e94\u7684admin\/order.php\u6587\u4ef6\u3002 \u5206\u6790 \u6587\u4ef6\uff0corder_delivery_info.htm&nbsp; &nbsp; {foreach from=$goods.package_goods_list item=package} &nbsp; &lt;tr&gt; &nbsp; &nbsp; &lt;td&gt;&#8211; &lt;a href=&#8221;..\/goods.php?id={$package.goods_id}&#8221; target=&#8221;_blank&#8221;&gt;{$package.goods_name}&lt;\/a&gt;&lt;\/td&gt; &nbsp; &nbsp; &lt;td&gt;{$package.goods_sn}&lt;\/td&gt; &nbsp; &nbsp; &lt;td&gt;{$package.product_sn}&lt;\/td&gt; &nbsp; &nbsp; &lt;td&gt;{$package.goods_attr_str}&lt;\/td&gt; &nbsp; &nbsp; {if $suppliers_list neq 0} &nbsp;<br \/>\n<span style=\"color:#ffffff\">\/\/www.ldhost.cn<\/span> &nbsp; &lt;td&gt;&lt;div align=&#8221;right&#8221;&gt;{$suppliers_name[$package.suppliers_id]|default:$lang.restaurant}&lt;\/div&gt;&lt;\/td&gt; &nbsp; &nbsp; {\/if} &nbsp; &nbsp; &lt;td&gt;&lt;div align=&#8221;right&#8221;&gt;{$package.storage}&lt;\/div&gt;&lt;\/td&gt; &nbsp; &nbsp; &lt;td&gt;&lt;div align=&#8221;right&#8221;&gt;{$package.order_send_number}&lt;\/div&gt;&lt;\/td&gt; &nbsp; &nbsp; &lt;td&gt;&lt;div align=&#8221;right&#8221;&gt;{$package.sended}&lt;\/div&gt;&lt;\/td&gt; &nbsp; &nbsp; &lt;td&gt;&lt;div align=&#8221;right&#8221;&gt;&lt;input name=&#8221;send_number[{$goods.rec_id}][{$package.g_p}]&#8221; type=&#8221;text&#8221; id=&#8221;send_number_{$goods.rec_id}_{$package.g_p}&#8221; value=&#8221;{$package.send}&#8221; size=&#8221;10&#8243; maxlength=&#8221;11&#8243; {$package.readonly}\/&gt;&lt;\/div&gt;&lt;\/td&gt; &nbsp; &lt;\/tr&gt; &nbsp; {\/foreach} &nbsp; &nbsp; \u5c06 &nbsp; send_number[{$goods.rec_id}][{$package.g_p}] &nbsp; \u6570\u7ec4\u901a\u8fc7form\u8868\u5355\u4f20\u9012\u5230order.php?act=operate_post\u52a8\u4f5c\u4e0b\u3002\u8fd9\u4e2a\u6570\u7ec4\u86ee\u522b\u81f4\u7684\uff0c\u4e2a\u4eba\u7406\u89e3\u662f\u7528\u6765\u533a\u5206\u591a\u4e2a\u5546\u54c1\u7684\u4fe1\u606f\uff0c\u4ee5\u514d\u5546\u54c1\u8ba2\u5355\u51fa\u73b0\u6df7\u6dc6\u3002 \u8ffd\u8e2a\u5230order.php\u4e0b\u7684act=operate_post\u4e0b\uff0c &nbsp; \/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; *\/ &nbsp; \/\/&#8211; \u64cd\u4f5c\u8ba2\u5355\u72b6\u6001\uff08\u5904\u7406\u6279\u91cf\u63d0\u4ea4\uff09 &nbsp; \/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; *\/ &nbsp; &nbsp;&nbsp; elseif ($_REQUEST[&#8216;act&#8217;] == &#8216;batch_operate_post&#8217;) &nbsp; { &nbsp; &nbsp; &nbsp; \/* \u68c0\u67e5\u6743\u9650 *\/ &nbsp; &nbsp; &nbsp; admin_priv(&#8216;order_os_edit&#8217;); &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; \/* \u53d6\u5f97\u53c2\u6570 *\/ &nbsp; &nbsp; &nbsp; $order_id &nbsp; = $_REQUEST[&#8216;order_id&#8217;]; &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u8ba2\u5355id\uff08\u9017\u53f7\u683c\u5f00\u7684\u591a\u4e2a\u8ba2\u5355id\uff09 &nbsp; &nbsp; &nbsp; $operation &nbsp;= $_REQUEST[&#8216;operation&#8217;]; &nbsp; &nbsp; &nbsp; \/\/ \u8ba2\u5355\u64cd\u4f5c &nbsp; &nbsp; &nbsp; $action_note= $_REQUEST[&#8216;action_note&#8217;]; &nbsp; &nbsp; \/\/ \u64cd\u4f5c\u5907\u6ce8 &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; $order_id_list = explode(&#8216;,&#8217;, $order_id); &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; \/* \u521d\u59cb\u5316\u5904\u7406\u7684\u8ba2\u5355sn *\/ &nbsp; &nbsp; &nbsp; $sn_list = array(); &nbsp; &nbsp; &nbsp; $sn_not_list = array(); &nbsp; \u597d\u5427 \u4e00\u76f4\u5f80\u4e0b\u5206\u6790\u2026\u2026\u5934\u6655\u773c\u82b1\u4e2d\u7ec8\u4e8e\u627e\u5230\u4e86\u53ef\u7591\u76ee\u6807 &nbsp; \/* \u53d1\u8d27\u6570\u91cf\u4e0e\u603b\u91cf\u4e0d\u7b26 *\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!isset($value[&#8216;package_goods_list&#8217;]) || !is_array($value[&#8216;package_goods_list&#8217;])) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sended = order_delivery_num($order_id, $value[&#8216;goods_id&#8217;], $value[&#8216;product_id&#8217;]); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/echo $sended.&#8221;&lt;br&gt;&#8221;; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/echo $send_number[$value[&#8216;rec_id&#8217;]].'&lt;br&gt;&#8217;; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/print_r($value); &nbsp;<br \/>\n<span>\/\/www.ldhost.cn<\/span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (($value[&#8216;storage&#8217;] &#8211; $sended &#8211; $send_number[$value[&#8216;rec_id&#8217;]]) &lt; 0) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/* \u64cd\u4f5c\u5931\u8d25 *\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links[] = array(&#8216;text&#8217; =&gt; $_LANG[&#8216;order_info&#8217;], &#8216;href&#8217; =&gt; &#8216;order.php?act=info&amp;order_id=&#8217; . $order_id); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sys_msg($_LANG[&#8216;act_ship_num&#8217;], 1, $links); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/* \u8d85\u503c\u793c\u5305 *\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach ($goods_list[$key][&#8216;package_goods_list&#8217;] as $pg_key =&gt; $pg_value) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (($pg_value[&#8216;order_send_number&#8217;] &#8211; $pg_value[&#8216;sended&#8217;] &#8211; $send_number[$value[&#8216;rec_id&#8217;]][$pg_value[&#8216;g_p&#8217;]]) &lt; 0) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/* \u64cd\u4f5c\u5931\u8d25 *\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links[] = array(&#8216;text&#8217; =&gt; $_LANG[&#8216;order_info&#8217;], &#8216;href&#8217; =&gt; &#8216;order.php?act=info&amp;order_id=&#8217; . $order_id); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sys_msg($_LANG[&#8216;act_ship_num&#8217;], 1, $links); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; \u8c03\u8bd5\u540e\u53d1\u73b0\u6570\u7ec4$value\u4e2d\u663e\u793a\u5e93\u5b58\u7684\u6570\u7ec4id\u5e76\u975e[&#8216;goods_number&#8217;]\u5b57\u6bb5\uff0c\u800c\u662f[&#8216;storage&#8217;]\u3002\u5b8c\u7ed3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u597d\u6a21\u677f\u63a5\u624b\u4e86\u4e00\u4e2aecshop2.&#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-199369","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199369","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=199369"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199369\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}