|
@@ -562,6 +562,10 @@ class OrderForm extends Model
|
|
|
if ($userStage + 1 > $instalment){ // 若用户分期阶段+1大于总分期阶段,则报异常
|
|
if ($userStage + 1 > $instalment){ // 若用户分期阶段+1大于总分期阶段,则报异常
|
|
|
throw new Exception(Yii::t('app', 'canNotBuy'));
|
|
throw new Exception(Yii::t('app', 'canNotBuy'));
|
|
|
}
|
|
}
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if ($goods['INSTALMENT'] != 1) {
|
|
|
|
|
+ throw new Exception(Yii::t('app', 'canNotBuy'));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
$hasInstalment = $goods['INSTALMENT'];
|
|
$hasInstalment = $goods['INSTALMENT'];
|
|
|
}
|
|
}
|
|
@@ -903,7 +907,9 @@ class OrderForm extends Model
|
|
|
throw new Exception(Yii::t('app', 'instalmentGoodsNoError'));
|
|
throw new Exception(Yii::t('app', 'instalmentGoodsNoError'));
|
|
|
}
|
|
}
|
|
|
if ($userStage == $instalment){
|
|
if ($userStage == $instalment){
|
|
|
-
|
|
|
|
|
|
|
+ if ($goods['INSTALMENT'] != 1) {
|
|
|
|
|
+ throw new Exception(Yii::t('app', 'canNotBuy'));
|
|
|
|
|
+ }
|
|
|
}else{
|
|
}else{
|
|
|
if($userInstalmentInfo){
|
|
if($userInstalmentInfo){
|
|
|
if($userInstalmentInfo['STAGE']>0 && $userInstalmentInfo['ORDER_TYPE']!='FX'){
|
|
if($userInstalmentInfo['STAGE']>0 && $userInstalmentInfo['ORDER_TYPE']!='FX'){
|