WIN-2308041133\Administrator 4 months ago
parent
commit
23700ed740
1 changed files with 6 additions and 6 deletions
  1. 6 6
      app/services/user/UserLevelServices.php

+ 6 - 6
app/services/user/UserLevelServices.php

@@ -252,9 +252,9 @@ class UserLevelServices extends BaseServices
             if (($levelOne && $levelOne['id'] != $id) || ($levelThree && $levelThree['id'] != $id)) {
                 throw new AdminException(400675);
             }
-            if ($levelTwo && $levelTwo['id'] != $id) {
-                throw new AdminException(400676);
-            }
+//            if ($levelTwo && $levelTwo['id'] != $id) {
+//                throw new AdminException(400676);
+//            }
             if (!$systemUserLevel->update($id, $data)) {
                 throw new AdminException(100007);
             }
@@ -263,9 +263,9 @@ class UserLevelServices extends BaseServices
             if ($levelOne || $levelThree) {
                 throw new AdminException(400675);
             }
-            if ($levelTwo) {
-                throw new AdminException(400676);
-            }
+//            if ($levelTwo) {
+//                throw new AdminException(400676);
+//            }
             //新增
             $data['add_time'] = time();
             if (!$systemUserLevel->save($data)) {