|
|
@@ -190,6 +190,10 @@ class DeclarationUpgradeForm extends Model
|
|
|
if($v>1){ // 不可以购买多个
|
|
|
throw new Exception(Yii::t('app', 'allowOnlyOne'));
|
|
|
}
|
|
|
+ // 分期商品不可以和其他商品一起购买
|
|
|
+ if (count($this->goodsId) != 1) {
|
|
|
+ throw new Exception(Yii::t('app', 'allowOnlyOne'));
|
|
|
+ }
|
|
|
|
|
|
// 分期的总期数
|
|
|
$instalment = intval(Cache::getSystemConfig()['instalment']['VALUE'] ?? 3);
|
|
|
@@ -236,7 +240,6 @@ class DeclarationUpgradeForm extends Model
|
|
|
|
|
|
// 会员已有PV+本次订单PV 不能多于 下一个级别所需PV
|
|
|
$nextDecLv = DeclarationLevel::getNextDecLv($toDecLevel);
|
|
|
- LoggerTool::debug(['Ats', $nextDecLv, $checkPv]);
|
|
|
if ($nextDecLv && ($checkPv >= $nextDecLv['PERF'])) {
|
|
|
throw new Exception(Yii::t('app', 'totalPvExceedPv'), 400);
|
|
|
}
|