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