fix terminal header fill logic
This commit is contained in:
parent
bc889a2c9a
commit
c4a42f3285
@ -4,6 +4,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import cn.axzo.basics.profiles.service.repairutil.ProfileIdRepair;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
@ -17,6 +18,9 @@ public class UserInfo {
|
||||
|
||||
private Long acntId;
|
||||
|
||||
/**
|
||||
* 原axzoId迁移过来的,自然人ID
|
||||
*/
|
||||
private Long personId;
|
||||
|
||||
private Long identityId;
|
||||
@ -65,8 +69,11 @@ public class UserInfo {
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* axzoId=identityId,身份ID
|
||||
* userId=identityId,身份ID
|
||||
* 尽量使用上面的三个ID,identityId、personId、acntId
|
||||
*
|
||||
* 这个值是这样取到的:
|
||||
* Long oldIdentityId = ProfileIdRepair.identityNew2OldId(userInfo.getIdentityId(), userInfo.getIdentityType());
|
||||
*/
|
||||
@Deprecated
|
||||
private Long userId;
|
||||
|
||||
@ -246,7 +246,7 @@ public class ContextInfoBuilderAspect {
|
||||
log.warn("请求缺少terminal header,token={}。暂时使用session中的补齐terminal={}。", contextInfo.getToken(),
|
||||
terminalSession);
|
||||
terminal = terminalSession;
|
||||
} else if (TerminalInfo.legacyEquals(terminalHeader, terminalSession)) {
|
||||
} else if (!TerminalInfo.legacyEquals(terminalHeader, terminalSession)) {
|
||||
log.warn("请求缺少terminal header与session中不一致,token={}。暂时使用request中的terminal={},session terminal={}",
|
||||
contextInfo.getToken(), terminalHeader, terminalSession);
|
||||
terminal = terminalSession;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user