This commit is contained in:
shengchanzhe 2023-12-15 21:19:27 +08:00
parent 4c08eb749c
commit 63edd3a80c
3 changed files with 3 additions and 3 deletions

View File

@ -231,7 +231,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
} }
$svip_discount = 0; $svip_discount = 0;
$realPrice = $this->cartByPrice($cart); $realPrice = $this->cartByPrice($cart);
if (in_array($source,[9,10,11,12])) { if (in_array($source,[9,10,11,12,13])) {
if($realPrice==0){ if($realPrice==0){
throw new ValidateException('价格必须大于0'); throw new ValidateException('价格必须大于0');
} }

View File

@ -568,7 +568,7 @@ class StoreOrderRepository extends BaseRepository
// } else { // } else {
// return $cart['productAttr']['price']; // return $cart['productAttr']['price'];
// } // }
if (in_array($cart['source'],[9,10,11,12])) { if (in_array($cart['source'],[9,10,11,12,13])) {
return $cart['productAttr']['procure_price']; return $cart['productAttr']['procure_price'];
} else { } else {
return $cart['productAttr']['price']; return $cart['productAttr']['price'];

View File

@ -506,7 +506,7 @@ class StoreOtherOrderRepository extends BaseRepository
return $cart['activeSku']['active_price']; return $cart['activeSku']['active_price'];
// 更新调货价格 // 更新调货价格
} else if ($cart['product_type'] == '98') { } else if ($cart['product_type'] == '98') {
if (in_array($cart['source'],[9,10,11,12])) { if (in_array($cart['source'],[9,10,11,12,13])) {
return $cart['productAttr']['procure_price']; return $cart['productAttr']['procure_price'];
} else { } else {
return $cart['productAttr']['price']; return $cart['productAttr']['price'];