shish 5 лет назад
Родитель
Сommit
c9bbd0023d
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/ghs/controllers/OrderController.php

+ 1 - 0
app/ghs/controllers/OrderController.php

@@ -304,6 +304,7 @@ class OrderController extends BaseController
 		$post['bookMobile'] = $bookMobile;
 		$post['bookMobile'] = $bookMobile;
 		$prePrice = round($post['prePrice'], 2);
 		$prePrice = round($post['prePrice'], 2);
 		$couponId = isset($post['couponId']) ? $post['couponId'] : 0;
 		$couponId = isset($post['couponId']) ? $post['couponId'] : 0;
+		$sourceType = 0;
 		$discountData = OrderService::getDiscountPrice(['price' => $prePrice, 'sourceType' => $sourceType, 'couponId' => $couponId, 'userId' => $this->adminId]);
 		$discountData = OrderService::getDiscountPrice(['price' => $prePrice, 'sourceType' => $sourceType, 'couponId' => $couponId, 'userId' => $this->adminId]);
 		$actPrice = $discountData['price'];
 		$actPrice = $discountData['price'];
 		$post['discountType'] = $discountData['discountType'];
 		$post['discountType'] = $discountData['discountType'];