Преглед изворни кода

添加优惠券couponId字段

sorry пре 5 година
родитељ
комит
6e71bbbb4f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      app-hd/controllers/PurchaseController.php

+ 1 - 0
app-hd/controllers/PurchaseController.php

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