perf: 优化个人账户页面

This commit is contained in:
xiaojunnuo
2026-03-13 19:39:27 +08:00
parent eae4f721e8
commit e50611666e
10 changed files with 516 additions and 55 deletions

View File

@@ -115,11 +115,17 @@ export abstract class BaseController {
if (projectId) {
await authService.checkProjectId(service, id, projectId);
}else{
if(allowAdmin){
await authService.checkUserIdButAllowAdmin(this.ctx, service, id);
if(userId === 0){
//系统级别,不检查权限
}else{
await authService.checkUserId( service, id, userId);
if(allowAdmin){
await authService.checkUserIdButAllowAdmin(this.ctx, service, id);
}else{
await authService.checkUserId( service, id, userId);
}
}
}
return {projectId,userId}
}