rabin 10 小時之前
父節點
當前提交
3346dbdb00
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 3 0
      src/place/order/app/Lib/Notify.php
  2. 1 1
      src/place/set/app/Lib/Account.php

+ 3 - 0
src/place/order/app/Lib/Notify.php

@@ -149,6 +149,9 @@ class Notify
                 }
 
                 $this->sales($order, $this->type);
+
+                # 微信小程序发货
+                Dever::load(\Place\Lib\Account::class)->delivery($order, $detail[0], [], 1);
             }
         }
     }

+ 1 - 1
src/place/set/app/Lib/Account.php

@@ -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;