@@ -149,6 +149,9 @@ class Notify
}
$this->sales($order, $this->type);
+
+ # 微信小程序发货
+ Dever::load(\Place\Lib\Account::class)->delivery($order, $detail[0], [], 1);
@@ -52,7 +52,7 @@ class Account
if ($order['env_platform'] == 'weixin' && $order['env_type'] == 5) {
# 虚拟商品
$method = 3;
- if (isset($order['method'])) {
+ if ($data && isset($order['method'])) {
if ($order['method'] == 3) {
# 自提
$method = 4;