mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 03:16:48 +08:00
案例专家:日志等级修改
This commit is contained in:
@@ -25,11 +25,11 @@ public class CaseAiPermissionServiceImpl implements ICaseAiPermissionService {
|
||||
*/
|
||||
@Override
|
||||
public boolean shouldShowCaseAiEntrance(String userCode) {
|
||||
log.debug("判断用户[{}]是否显示案例专家功能入口", userCode);
|
||||
log.info("判断用户[{}]是否显示案例专家功能入口", userCode);
|
||||
|
||||
// 如果不启用白名单,直接返回true
|
||||
if (!caseAiProperties.isUseWhiteList()) {
|
||||
log.debug("未启用白名单,所有用户都显示功能入口");
|
||||
log.info("未启用白名单,所有用户都显示功能入口");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class CaseAiPermissionServiceImpl implements ICaseAiPermissionService {
|
||||
boolean isInWhiteList = caseAiProperties.getWhiteUserCodeList() != null
|
||||
&& caseAiProperties.getWhiteUserCodeList().contains(userCode);
|
||||
|
||||
log.debug("用户[{}]{}在白名单中", userCode, isInWhiteList ? "" : "不");
|
||||
log.info("用户[{}]{}在白名单中", userCode, isInWhiteList ? "" : "不");
|
||||
return isInWhiteList;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user