setLoginDevice逻辑调整
This commit is contained in:
parent
859d6225fe
commit
21ae1ab97f
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user