|
@@ -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());
|
|
|
}
|