gorden hace 10 meses
padre
commit
52d1117e0b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {