|
|
@@ -329,9 +329,12 @@ class StoreOrder extends BaseModel
|
|
|
$gainIntegral = bcadd($gainIntegral, $cartInfoGainIntegral, 2);
|
|
|
if ($cart['productInfo']['is_health']==1){
|
|
|
$is_type = 4;
|
|
|
- }elseif($cart['productInfo']['is_life']){
|
|
|
+ }elseif($cart['productInfo']['is_life']==1){
|
|
|
$is_type = 5;
|
|
|
}
|
|
|
+ if ($cart['productInfo']['is_explosive']!=1&&$userInfo['is_first']==0){
|
|
|
+ return self::setErrorInfo('首单只能购买报单商品', true);
|
|
|
+ }
|
|
|
}
|
|
|
$deduction = $seckill_id || $bargain_id || $combinationId;
|
|
|
if ($deduction) {
|