Przeglądaj źródła

升级分期商品修改

kevin 1 rok temu
rodzic
commit
0d4b9c335e

+ 1 - 1
common/models/forms/ApproachDeclarationUpgradeForm.php

@@ -455,7 +455,7 @@ class ApproachDeclarationUpgradeForm extends Model
         $maxPerfInfo = DeclarationLevel::getMaxDecPref();
         $maxDecId = $maxPerfInfo['ID']; // 级别配置中最高级别ID
         $this->maxLv = $maxPerfInfo['ID'];
-        if ($this->isMax) {
+        if (!$this->isMax) {
             if ($maxDecId == $userDecId) {
                 $this->addError($attribute, 'It is already the highest level and no upgrade is required');//已是最高级别,无需升级
                 return false;