Commit 0a6409ce by Liu

fix:用户画像获取会话id接口参数

parent 49f99eb4
...@@ -155,8 +155,10 @@ export const TacticsChat: React.FC = () => { ...@@ -155,8 +155,10 @@ export const TacticsChat: React.FC = () => {
if (userMeta?.place === 'user') { if (userMeta?.place === 'user') {
return { return {
busiType: '02', busiType: '02',
// place=user 场景下,业务方要求 busiId 取 numberType // place=user 场景下,业务方要求 busiId 取 userId:numberType,若numberType为空则只传userId
busiId: userMeta.numberType, busiId: userMeta.userId && userMeta.numberType
? `${userMeta.userId}:${userMeta.numberType}`
: userMeta.userId || userMeta.numberType,
} as Partial<any> } as Partial<any>
} }
if (tacticsMeta) { if (tacticsMeta) {
...@@ -462,8 +464,10 @@ export const TacticsChat: React.FC = () => { ...@@ -462,8 +464,10 @@ export const TacticsChat: React.FC = () => {
} }
else if (userMeta?.place === 'user') { else if (userMeta?.place === 'user') {
requestBody.busiType ??= '02' requestBody.busiType ??= '02'
// place=user 场景下,业务方要求 busiId 取 numberType // place=user 场景下,业务方要求 busiId 取 userId:numberType,若numberType为空则只传userId
requestBody.busiId ??= userMeta.numberType requestBody.busiId ??= userMeta.userId && userMeta.numberType
? `${userMeta.userId}:${userMeta.numberType}`
: userMeta.userId || userMeta.numberType
// 当缓存内存在 place=user 时,始终使用缓存中的 numberType 作为接口参数 // 当缓存内存在 place=user 时,始终使用缓存中的 numberType 作为接口参数
if (userMeta.numberType) { if (userMeta.numberType) {
requestBody.numberType = userMeta.numberType requestBody.numberType = userMeta.numberType
......
...@@ -98,8 +98,10 @@ export const TacticsHome: React.FC = () => { ...@@ -98,8 +98,10 @@ export const TacticsHome: React.FC = () => {
if (userMeta?.place === 'user') { if (userMeta?.place === 'user') {
return { return {
busiType: '02', busiType: '02',
// place=user 场景下,业务方要求 busiId 取 numberType // place=user 场景下,业务方要求 busiId 取 userId:numberType,若numberType为空则只传userId
busiId: userMeta.numberType, busiId: userMeta.userId && userMeta.numberType
? `${userMeta.userId}:${userMeta.numberType}`
: userMeta.userId || userMeta.numberType,
} as Partial<any> } as Partial<any>
} }
if (tacticsMeta) { if (tacticsMeta) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment