|
|
@@ -130,13 +130,13 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
|
|
$pt=true;
|
|
|
}
|
|
|
if ($jny&&$pt){
|
|
|
- return ['code' => 0, 'data' => '不能同时存在普通商品和节能油商品'];
|
|
|
+ throw new ValidateException('不能同时存在普通商品和节能油商品');
|
|
|
}
|
|
|
if ($lb&&$pt){
|
|
|
- return ['code' => 0, 'data' => '不能同时存在普通商品和礼包商品'];
|
|
|
+ throw new ValidateException('不能同时存在礼包商品和普通商品');
|
|
|
}
|
|
|
if ($jny&&$lb){
|
|
|
- return ['code' => 0, 'data' => '不能同时存在节能油商品和礼包商品'];
|
|
|
+ throw new ValidateException('不能同时存在节能油商品和礼包商品');
|
|
|
}
|
|
|
|
|
|
|