shish 1 year ago
parent
commit
fd43236d47
2 changed files with 3 additions and 3 deletions
  1. 1 3
      biz-hd/order/classes/OrderClass.php
  2. 2 0
      biz-hd/order/services/OrderService.php

+ 1 - 3
biz-hd/order/classes/OrderClass.php

@@ -136,9 +136,7 @@ class OrderClass extends BaseClass
         $riseNum = StatOrderCountClass::addOrder($shop, $main);
         $data['sendNum'] = date("d") . $riseNum;
         $data['totalFlow'] = OrderClass::ORDER_TOTAL_FLOW;
-        $return = self::add($data, true);
-
-        return $return;
+        return self::add($data, true);
     }
 
     public static function getByOrderSn($orderSn)

+ 2 - 0
biz-hd/order/services/OrderService.php

@@ -33,6 +33,7 @@ class OrderService extends BaseService
         $orderSn = orderSn::getOrderSn();
         $customId = $custom->id ?? 0;
         $hdId = $custom->hdId ?? 0;
+        $userId = $custom->userId ?? 0;
         $sjId = $data['sjId'] ?? 0;
         $shopId = $data['shopId'] ?? 0;
         $mainId = $data['mainId'] ?? 0;
@@ -315,6 +316,7 @@ class OrderService extends BaseService
         $data['customId'] = $customId;
         $data['hdId'] = $hdId;
         $data['sjId'] = $sjId;
+        $data['userId'] = $userId;
         $data['shopId'] = $shopId;
         $data['mainId'] = $mainId;
         $data['manyType'] = $manyType;