From 85c56ebf8991d65b3d5df57c55cd7a710f8b2666 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Thu, 5 Mar 2026 15:07:17 +0800 Subject: [PATCH] Update send-message-helper.js --- utils/send-message-helper.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/send-message-helper.js b/utils/send-message-helper.js index 0c78528..b8d4a61 100644 --- a/utils/send-message-helper.js +++ b/utils/send-message-helper.js @@ -288,8 +288,13 @@ export async function sendSurveyMessage(survey, options = {}) { } ); - // 构建自定义消息 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);