setLoginDevice逻辑调整
This commit is contained in:
parent
859d6225fe
commit
21ae1ab97f
@ -295,7 +295,6 @@ public class ContextInfoBuilderAspect {
|
||||
BeanUtil.fillBeanWithMap(userinfoMap, userInfo, false);
|
||||
|
||||
contextInfo.setUserInfo(userInfo);
|
||||
contextInfo.getSystemAndDeviceInfo().setLoginDevice(contextInfo.getTerminalInfo().getSimpleTerminal());
|
||||
try {
|
||||
if(userinfoMap.containsKey("ouType"))
|
||||
contextInfo.setOuType(Integer.parseInt(userinfoMap.get("ouType").toString()));
|
||||
@ -310,6 +309,7 @@ public class ContextInfoBuilderAspect {
|
||||
|
||||
try {
|
||||
fillLegacyGuess(contextInfo, userinfoMap);
|
||||
contextInfo.getSystemAndDeviceInfo().setLoginDevice(contextInfo.getTerminalInfo().getSimpleTerminal());
|
||||
} catch (Exception e) {
|
||||
log.warn("fill legacy guess error for user identityId=" + userInfo.getIdentityId(), e);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user