|
|
@@ -50,6 +50,7 @@ class PurchaseController extends BaseController
|
|
|
ProductClass::valid($productList, $currentShopId);
|
|
|
$post['product'] = $productList;
|
|
|
$post['sendCost'] = isset($post['sendCost']) && is_numeric($post['sendCost']) ? $post['sendCost'] : 0;
|
|
|
+ $post['couponId'] = isset($post['couponId']) ? $post['couponId'] : 0;
|
|
|
$respond = PurchaseService::createPurchase($post, $ghsInfo);
|
|
|
$orderSn = $respond->orderSn ?? '';
|
|
|
$actPrice = $respond->actPrice ?? '';
|