shish 4 years ago
parent
commit
b60b3d24a6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      biz-hd/purchase/services/PurchaseService.php

+ 3 - 1
biz-hd/purchase/services/PurchaseService.php

@@ -72,6 +72,7 @@ class PurchaseService extends BaseService
         $orderType = 2;
         $book = $data['book'] ?? 0;
         $mainId = $custom['ownMainId'] ?? 0;
+        $fromType = dict::getDict('fromType', 'mall');
         $arr = [
             'mainId' => $mainId,
             'book' => $book,
@@ -105,7 +106,8 @@ class PurchaseService extends BaseService
             'xj' => $xj,
             'sendTimeWant' => $sendTimeWant,
             'discount' => $discount,
-            'orderType' => $orderType
+            'orderType' => $orderType,
+            'fromType' => $fromType,
         ];
         $result = OrderClass::addOrder($arr);
         $saleId = $result['id'] ?? 0;