chore: 流水线有效期优化

This commit is contained in:
xiaojunnuo
2025-10-24 23:48:32 +08:00
parent fea808ca5f
commit 6531002d61
10 changed files with 58 additions and 27 deletions
@@ -20,7 +20,7 @@ export class AuthService {
return true;
}
async isAdmin(ctx: any) {
isAdmin(ctx: any) {
const roleIds: number[] = ctx.user.roles;
if (roleIds.includes(1)) {
return true;