|
@@ -196,7 +196,7 @@ class RoleService
|
|
|
public static function delRole($params)
|
|
|
{
|
|
|
try {
|
|
|
- if (!SysRole::whereIn('role_id', $params)->delete()) {
|
|
|
+ if (!SysRole::whereIn('role_id', $params['role_id'])->delete()) {
|
|
|
throw new \Exception('角色删除失败');
|
|
|
}
|
|
|
} catch (\Exception $e) {
|