Browse Source

完善后台修改会员

15954078560 2 years ago
parent
commit
3016e2652c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/admin/controller/Vip.php

+ 2 - 2
application/admin/controller/Vip.php

@@ -60,13 +60,13 @@ class Vip extends Backend
                 }
                 $last_vip = Db::name('vip')->find($ids - 1);
                 if ($last_vip) {
-                    if ($params['growthvalue'] <= $last_vip['growthvalue']) {
+                    if (isset($params['growthvalue']) && $params['growthvalue'] <= $last_vip['growthvalue']) {
                         $this->error('当前等级所需成长值必须大于上一级');
                     }
                 }
                 $next_vip = Db::name('vip')->find($ids + 1);
                 if ($next_vip) {
-                    if ($params['growthvalue'] >= $next_vip['growthvalue']) {
+                    if (isset($params['growthvalue']) && $params['growthvalue'] >= $next_vip['growthvalue']) {
                         $this->error('当前等级所需成长值必须小于下一级');
                     }
                 }