Commit dede7a75 by Liu

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

parent 2544e2a6
......@@ -25,18 +25,8 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer
let busiType: 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'
if (place === 'user') {
recordType = 'A20'
......@@ -48,6 +38,19 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer
recordType = 'A19'
}
}
// 非策略场景
else {
// 制度活化:toolId 为空或不存在
if (!toolId) {
busiType = '01'
recordType = 'A17'
}
// 特殊工具ID
else if (toolId === '6712395743241') {
busiType = '01'
recordType = 'A15'
}
}
try {
const res = await fetchOrderQueryRecommendQuestion(
......
......@@ -142,8 +142,6 @@ export const TacticsHome: React.FC = () => {
}
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