Commit dede7a75 by Liu

fix:策略,用户推荐问参数

parent 2544e2a6
...@@ -25,18 +25,8 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer ...@@ -25,18 +25,8 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer
let busiType: string | undefined let busiType: string | undefined
let recordType: string | undefined let recordType: string | undefined
// 制度活化:toolId 为空或不存在
if (!toolId) {
busiType = '01'
recordType = 'A17'
}
// 特殊工具ID
else if (toolId === '6712395743241') {
busiType = '01'
recordType = 'A15'
}
// 策略场景 // 策略场景
else if (from === 'tactics') { if (from === 'tactics') {
busiType = '02' busiType = '02'
if (place === 'user') { if (place === 'user') {
recordType = 'A20' recordType = 'A20'
...@@ -48,6 +38,19 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer ...@@ -48,6 +38,19 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer
recordType = 'A19' recordType = 'A19'
} }
} }
// 非策略场景
else {
// 制度活化:toolId 为空或不存在
if (!toolId) {
busiType = '01'
recordType = 'A17'
}
// 特殊工具ID
else if (toolId === '6712395743241') {
busiType = '01'
recordType = 'A15'
}
}
try { try {
const res = await fetchOrderQueryRecommendQuestion( const res = await fetchOrderQueryRecommendQuestion(
......
...@@ -142,8 +142,6 @@ export const TacticsHome: React.FC = () => { ...@@ -142,8 +142,6 @@ export const TacticsHome: React.FC = () => {
} }
window.localStorage.setItem(storageKey, conversationId) window.localStorage.setItem(storageKey, conversationId)
} }
console.log('[TacticsHome] created conversationId', conversationId)
}) })
} }
// 清除状态以避免下次影响 // 清除状态以避免下次影响
......
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