Sfoglia il codice sorgente

升级分期商品修改

kevin 1 anno fa
parent
commit
0d4b9c335e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      common/models/forms/ApproachDeclarationUpgradeForm.php

+ 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;