新增权限功能
This commit is contained in:
@@ -30,13 +30,10 @@ class PermService
|
||||
if ($cached !== null) {
|
||||
return $cached;
|
||||
}
|
||||
|
||||
// 调用 Logic 层获取资源
|
||||
$resources = $this->logic->getUserResources($userId);
|
||||
|
||||
// 缓存结果
|
||||
Cache::set($cacheKey, $resources, 3600);
|
||||
|
||||
return $resources;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user