Commit 10d7d167 by Liu

fix:创建会话时新增参数

parent f7abcbf9
...@@ -113,7 +113,8 @@ export const TacticsChat: React.FC = () => { ...@@ -113,7 +113,8 @@ export const TacticsChat: React.FC = () => {
if (userMeta?.place === 'user') { if (userMeta?.place === 'user') {
return { return {
busiType: '02', busiType: '02',
busiId: userMeta.userId, // place=user 场景下,业务方要求 busiId 取 numberType
busiId: userMeta.numberType,
} }
} }
if (tacticsMeta) { if (tacticsMeta) {
...@@ -439,7 +440,8 @@ export const TacticsChat: React.FC = () => { ...@@ -439,7 +440,8 @@ export const TacticsChat: React.FC = () => {
// from=tactics 场景下补充业务识别参数 // from=tactics 场景下补充业务识别参数
if (userMeta?.place === 'user') { if (userMeta?.place === 'user') {
requestBody.busiType ??= '02' requestBody.busiType ??= '02'
requestBody.busiId ??= userMeta.userId // place=user 场景下,业务方要求 busiId 取 numberType
requestBody.busiId ??= userMeta.numberType
// 当缓存内存在 place=user 时,始终使用缓存中的 numberType 作为接口参数 // 当缓存内存在 place=user 时,始终使用缓存中的 numberType 作为接口参数
if (userMeta.numberType) { if (userMeta.numberType) {
requestBody.numberType = userMeta.numberType requestBody.numberType = userMeta.numberType
......
...@@ -67,7 +67,8 @@ export const TacticsHome: React.FC = () => { ...@@ -67,7 +67,8 @@ export const TacticsHome: React.FC = () => {
if (userMeta?.place === 'user') { if (userMeta?.place === 'user') {
return { return {
busiType: '02', busiType: '02',
busiId: userMeta.userId, // place=user 场景下,业务方要求 busiId 取 numberType
busiId: userMeta.numberType,
} }
} }
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