Refactor MessageEnter component to handle AI-assisted and AI takeover scenarios. Update weChat store to support multiple AI types for message processing. Remove unnecessary console log in message response handler for cleaner output.

This commit is contained in:
2025-10-29 14:50:55 +08:00
parent 0decc34593
commit 5fb15592ff
3 changed files with 25 additions and 4 deletions

View File

@@ -300,7 +300,7 @@ export const useWeChatStore = create<WeChatState>()(
// 只有文字消息才触发AImsgType === 1
if (
message.msgType === 1 &&
(currentContract as any).aiType === 1
[1, 2].includes((currentContract as any).aiType || 0)
) {
//把数据传到存客宝
const params: any = {

View File

@@ -44,7 +44,6 @@ const messageHandlers: Record<string, MessageHandler> = {
},
// 发送消息响应
CmdSendMessageResp: message => {
console.log("CmdSendMessageResp", message);
const msg = findMessageBySeq(message.seq);
if (msg) {
updateMessage(message.seq, {