|
@@ -483,15 +483,7 @@ class DeclarationUpgradeForm extends Model
|
|
|
$maxPerfInfo = DeclarationLevel::getMaxDecPref();
|
|
$maxPerfInfo = DeclarationLevel::getMaxDecPref();
|
|
|
$maxDecId = $maxPerfInfo['ID']; // 级别配置中最高级别ID
|
|
$maxDecId = $maxPerfInfo['ID']; // 级别配置中最高级别ID
|
|
|
$this->maxLv = $maxPerfInfo['ID'];
|
|
$this->maxLv = $maxPerfInfo['ID'];
|
|
|
- if ($this->isMax) {
|
|
|
|
|
- // 如果商品是分期商品,则不判断是否已经顶级
|
|
|
|
|
- if (!$this->instalment) {
|
|
|
|
|
- if ($maxDecId == $userDecId) {
|
|
|
|
|
- $this->addError($attribute, 'It is already the highest level and no upgrade is required');//已是最高级别,无需升级
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ if (!$this->isMax) {
|
|
|
if ($maxDecId == $userDecId) {
|
|
if ($maxDecId == $userDecId) {
|
|
|
$this->addError($attribute, 'It is already the highest level and no upgrade is required');//已是最高级别,无需升级
|
|
$this->addError($attribute, 'It is already the highest level and no upgrade is required');//已是最高级别,无需升级
|
|
|
return false;
|
|
return false;
|