feat:(REQ-2524) 增加使用鉴权版本的日志,方便排查是否生效

This commit is contained in:
lilong 2024-06-12 18:34:10 +08:00
parent d7b36fb515
commit 7fd7e601c5

View File

@ -136,8 +136,10 @@ public class PermissionQueryServiceImpl implements PermissionQueryService {
if (!StrUtil.equals("NT_OMS_WEB" ,req.getTerminal())
&& !Objects.equals(TerminalInfo.NT_PC_GA_GENERAL, req.getTerminal())) {
if (USE_OLD_AUTH) {
log.info("user old auth");
return hasPermissionV2(req);
}
log.info("user new auth");
return saasAuthService.authPermission(req);
}
//权限编码转ID