setLoginDevice逻辑调整

This commit is contained in:
TanJ 2023-03-21 14:56:22 +08:00
parent 859d6225fe
commit 21ae1ab97f

View File

@ -295,7 +295,6 @@ public class ContextInfoBuilderAspect {
BeanUtil.fillBeanWithMap(userinfoMap, userInfo, false); BeanUtil.fillBeanWithMap(userinfoMap, userInfo, false);
contextInfo.setUserInfo(userInfo); contextInfo.setUserInfo(userInfo);
contextInfo.getSystemAndDeviceInfo().setLoginDevice(contextInfo.getTerminalInfo().getSimpleTerminal());
try { try {
if(userinfoMap.containsKey("ouType")) if(userinfoMap.containsKey("ouType"))
contextInfo.setOuType(Integer.parseInt(userinfoMap.get("ouType").toString())); contextInfo.setOuType(Integer.parseInt(userinfoMap.get("ouType").toString()));
@ -310,6 +309,7 @@ public class ContextInfoBuilderAspect {
try { try {
fillLegacyGuess(contextInfo, userinfoMap); fillLegacyGuess(contextInfo, userinfoMap);
contextInfo.getSystemAndDeviceInfo().setLoginDevice(contextInfo.getTerminalInfo().getSimpleTerminal());
} catch (Exception e) { } catch (Exception e) {
log.warn("fill legacy guess error for user identityId=" + userInfo.getIdentityId(), e); log.warn("fill legacy guess error for user identityId=" + userInfo.getIdentityId(), e);
} }