Explorar o código

升级分期商品修改

kevin hai 1 ano
pai
achega
002de5e5e2

+ 0 - 8
common/models/forms/ApproachDeclarationUpgradeForm.php

@@ -456,14 +456,6 @@ class ApproachDeclarationUpgradeForm extends Model
         $maxDecId = $maxPerfInfo['ID']; // 级别配置中最高级别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 ($maxDecId == $userDecId) {
                 $this->addError($attribute, 'It is already the highest level and no upgrade is required');//已是最高级别,无需升级
                 return false;

+ 1 - 9
common/models/forms/DeclarationUpgradeForm.php

@@ -483,15 +483,7 @@ class DeclarationUpgradeForm extends Model
         $maxPerfInfo = DeclarationLevel::getMaxDecPref();
         $maxDecId = $maxPerfInfo['ID']; // 级别配置中最高级别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) {
                 $this->addError($attribute, 'It is already the highest level and no upgrade is required');//已是最高级别,无需升级
                 return false;