Merge pull request '调整商品限购' (#134) from fix into master
Reviewed-on: #134
This commit is contained in:
commit
dd61153132
@ -102,7 +102,6 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
|||||||
$order_type = $cart['product_type'];
|
$order_type = $cart['product_type'];
|
||||||
}
|
}
|
||||||
$source = $cart['source'];
|
$source = $cart['source'];
|
||||||
if($source==103){
|
|
||||||
$canBuy = (new StoreActivityDao())->canBuy($cart['uid'], $cart['product_id']);
|
$canBuy = (new StoreActivityDao())->canBuy($cart['uid'], $cart['product_id']);
|
||||||
if ($canBuy['is_true']==false) {
|
if ($canBuy['is_true']==false) {
|
||||||
throw new ValidateException('活动商品限购1个');
|
throw new ValidateException('活动商品限购1个');
|
||||||
@ -113,7 +112,6 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
|||||||
throw new ValidateException('活动商品限购1个');
|
throw new ValidateException('活动商品限购1个');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if ($cart['product_type'] <= 97 && $cart['product_type'] > 0 && (($cart['product_type'] != 10 && count($merchantCart['list']) != 1) || count($merchantCartList) != 1)) {
|
if ($cart['product_type'] <= 97 && $cart['product_type'] > 0 && (($cart['product_type'] != 10 && count($merchantCart['list']) != 1) || count($merchantCartList) != 1)) {
|
||||||
throw new ValidateException('活动商品必须单独购买');
|
throw new ValidateException('活动商品必须单独购买');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user