Browse Source

完善功能

gorden 10 months ago
parent
commit
07a9418efd
1 changed files with 1 additions and 3 deletions
  1. 1 3
      app/admin/service/sys_manage/RoleService.php

+ 1 - 3
app/admin/service/sys_manage/RoleService.php

@@ -175,9 +175,7 @@ class RoleService
             $data = [
                 'role_permission' => $params['role_permission'],
             ];
-            if (!SysRole::where('role_id', $id)->update($data)) {
-                throw new \Exception('角色修改失败');
-            }
+            SysRole::where('role_id', $id)->update($data);
         } catch (\Exception $e) {
             return json_fail($e->getMessage());
         }