Commit cddd8c5b by Liu

fix:工单和用户画像接入工作流

parent 8c509e56
......@@ -484,6 +484,10 @@ export const TacticsChat: React.FC = () => {
if (userMeta.numberType) {
requestBody.numberType = userMeta.numberType
}
// from=tactics 和 place=user 同时存在时,recordType 固定为 A03
if (tacticsMeta) {
requestBody.recordType = 'A03'
}
}
else if (tacticsMeta) {
requestBody.busiType ??= '02'
......@@ -1024,7 +1028,7 @@ export const TacticsChat: React.FC = () => {
includeQuestion: true,
includeTacticsMeta: false,
includeOrderMeta: true,
recordType: 'A12',
recordType: 'A11',
},
)
}
......@@ -1071,7 +1075,7 @@ export const TacticsChat: React.FC = () => {
undefined,
{
busiType: '02',
recordType: 'A12',
recordType: 'A11',
includeQuestion: true,
includeTacticsMeta: false,
includeOrderMeta: true,
......@@ -1265,7 +1269,7 @@ export const TacticsChat: React.FC = () => {
isLoading,
})
// 正常问答:
// - 有 orderMeta:传 recordType=A12,使用 orderMeta
// - 有 orderMeta:传 recordType=A11,使用 orderMeta
// - 有 userMeta:按 userMeta.numberType 映射 numberType(A04/A06/A08/A10),不传 recordType,仅传 userMeta
// - 无 userMeta:保持原有逻辑,recordType=A01、busiType=02、不带 numberType
if (orderMeta) {
......@@ -1275,7 +1279,7 @@ export const TacticsChat: React.FC = () => {
undefined,
{
busiType: '02',
recordType: 'A12',
recordType: 'A11',
includeQuestion: true,
includeTacticsMeta: false,
includeOrderMeta: true,
......
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