Update send-message-helper.js

This commit is contained in:
huxuejian 2026-03-05 15:07:17 +08:00
parent 28405cd0fb
commit 85c56ebf89

View File

@ -288,8 +288,13 @@ export async function sendSurveyMessage(survey, options = {}) {
} }
); );
// 构建自定义消息
const customMessageData = buildSurveyMessage(survey, surveyLink); const customMessageData = buildSurveyMessage(survey, surveyLink);
customMessageData.name = options.customerName;
customMessageData.memberId = options.customerId;
customMessageData.corpId = options.corpId;
customMessageData.answerId = answerId;
customMessageData.surveryId = survey.surveryId;
customMessageData.isSystem = survey.createBy === 'system';
// 发送自定义消息 - 直接传递消息对象,不再进行额外序列化 // 发送自定义消息 - 直接传递消息对象,不再进行额外序列化
const result = await globalTimChatManager.sendCustomMessage(customMessageData); const result = await globalTimChatManager.sendCustomMessage(customMessageData);