Browse Source

完善功能

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

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

@@ -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) {