chore: 修改权限判断字段从summary改成description

This commit is contained in:
xiaojunnuo
2026-03-15 16:20:20 +08:00
parent b88ee33ae4
commit 25e361b9f9
60 changed files with 385 additions and 385 deletions
@@ -40,13 +40,13 @@ export class AuthorityMiddleware implements IWebMiddleware {
await next();
return;
}
const permission = routeInfo.summary;
let permission = routeInfo.description || '';
permission = permission.trim().split(' ')[0];
if (permission == null || permission === '') {
ctx.status = 500;
ctx.body = Constants.res.serverError('该路由未配置权限控制:' + ctx.path);
return;
}
if (permission === Constants.per.guest) {
await next();
return;