Explorar el Código

无权限报错的问题

LD hace 5 años
padre
commit
62a329bd2a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Services/UserService.php

+ 1 - 1
app/Services/UserService.php

@@ -28,6 +28,6 @@ class UserService
         if(!$user)return [];
         return $this->cacheService->getOrExecute("user{$user['id']}->getPermittingOwnerIds",function()use($user){
             return $user->getPermittingOwnerIdsAttribute() ?? [];
-        });
+        })??[];
     }
 }