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