鉴权修改

This commit is contained in:
张松
2025-11-08 13:41:56 +08:00
parent 208ab726ee
commit fedb72538e

View File

@@ -36,7 +36,7 @@ public class SaAdminCheckRoleHandler implements SaAnnotationHandlerInterface<SaA
public void checkMethod(SaAdminCheckRole annotation, Method method) { public void checkMethod(SaAdminCheckRole annotation, Method method) {
if (StpKit.USER.isAdmin()) { if (StpKit.USER.isAdmin()) {
log.debug("[SaAdminCheckRoleHandler] 管理员免校验: userId={}", StpUtil.getLoginId()); log.debug("[SaAdminCheckRoleHandler] 管理员免校验: userId={}", StpKit.USER.getLoginId());
return; return;
} }
@@ -58,6 +58,5 @@ public class SaAdminCheckRoleHandler implements SaAnnotationHandlerInterface<SaA
StpKit.USER.checkRole(typeRole); StpKit.USER.checkRole(typeRole);
} }
log.debug("[SaAdminCheckRoleHandler] 非管理员执行角色校验: userId={}", StpKit.USER.getLoginId());
} }
} }