|
@@ -59,6 +59,7 @@ class PurchaseService extends BaseService
|
|
|
$couponId = $data['couponId'] ?? 0;
|
|
$couponId = $data['couponId'] ?? 0;
|
|
|
$discountType = $respond->discountType ?? dict::getDict('discountType', 'noDiscount');
|
|
$discountType = $respond->discountType ?? dict::getDict('discountType', 'noDiscount');
|
|
|
$discountAmount = $respond->discountAmount ?? 0;
|
|
$discountAmount = $respond->discountAmount ?? 0;
|
|
|
|
|
+ $remark = $data['remark'] ?? '';
|
|
|
$arr = [
|
|
$arr = [
|
|
|
'product' => $product,
|
|
'product' => $product,
|
|
|
'sjId' => $currentSjId,
|
|
'sjId' => $currentSjId,
|
|
@@ -84,6 +85,7 @@ class PurchaseService extends BaseService
|
|
|
'couponId' => $couponId,
|
|
'couponId' => $couponId,
|
|
|
'discountType' => $discountType,
|
|
'discountType' => $discountType,
|
|
|
'discountAmount' => $discountAmount,
|
|
'discountAmount' => $discountAmount,
|
|
|
|
|
+ 'remark' => $remark,
|
|
|
];
|
|
];
|
|
|
$result = OrderClass::addOrder($arr);
|
|
$result = OrderClass::addOrder($arr);
|
|
|
$saleId = $result['id'] ?? 0;
|
|
$saleId = $result['id'] ?? 0;
|