Commit 0a6409ce by Liu

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

parent 49f99eb4
......@@ -155,8 +155,10 @@ export const TacticsChat: React.FC = () => {
if (userMeta?.place === 'user') {
return {
busiType: '02',
// place=user 场景下,业务方要求 busiId 取 numberType
busiId: userMeta.numberType,
// place=user 场景下,业务方要求 busiId 取 userId:numberType,若numberType为空则只传userId
busiId: userMeta.userId && userMeta.numberType
? `${userMeta.userId}:${userMeta.numberType}`
: userMeta.userId || userMeta.numberType,
} as Partial<any>
}
if (tacticsMeta) {
......@@ -462,8 +464,10 @@ export const TacticsChat: React.FC = () => {
}
else if (userMeta?.place === 'user') {
requestBody.busiType ??= '02'
// place=user 场景下,业务方要求 busiId 取 numberType
requestBody.busiId ??= userMeta.numberType
// place=user 场景下,业务方要求 busiId 取 userId:numberType,若numberType为空则只传userId
requestBody.busiId ??= userMeta.userId && userMeta.numberType
? `${userMeta.userId}:${userMeta.numberType}`
: userMeta.userId || userMeta.numberType
// 当缓存内存在 place=user 时,始终使用缓存中的 numberType 作为接口参数
if (userMeta.numberType) {
requestBody.numberType = userMeta.numberType
......
......@@ -98,8 +98,10 @@ export const TacticsHome: React.FC = () => {
if (userMeta?.place === 'user') {
return {
busiType: '02',
// place=user 场景下,业务方要求 busiId 取 numberType
busiId: userMeta.numberType,
// place=user 场景下,业务方要求 busiId 取 userId:numberType,若numberType为空则只传userId
busiId: userMeta.userId && userMeta.numberType
? `${userMeta.userId}:${userMeta.numberType}`
: userMeta.userId || userMeta.numberType,
} as Partial<any>
}
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