|
|
@@ -898,6 +898,11 @@ class OrderForm extends Model
|
|
|
throw new Exception(Yii::t('app', 'allowOnlyOne'));
|
|
|
}
|
|
|
|
|
|
+ // 分期商品不可以和其他商品一起购买
|
|
|
+ if (count($this->goodsId) != 1) {
|
|
|
+ throw new Exception(Yii::t('app', 'allowOnlyOne'));
|
|
|
+ }
|
|
|
+
|
|
|
$userStage = Instalment::getStage($userId);
|
|
|
$userInstalmentInfo = Instalment::getInfo($userId);
|
|
|
// 分期的总期数
|