diff --git a/Moncter/weChat.ts b/Moncter/weChat.ts new file mode 100644 index 00000000..b28b04f6 --- /dev/null +++ b/Moncter/weChat.ts @@ -0,0 +1,3 @@ + + + diff --git a/Touchkebao/src/store/module/weChat/weChat.ts b/Touchkebao/src/store/module/weChat/weChat.ts index 91282a3a..bfedd6a1 100644 --- a/Touchkebao/src/store/module/weChat/weChat.ts +++ b/Touchkebao/src/store/module/weChat/weChat.ts @@ -845,9 +845,10 @@ export const useWeChatStore = create()( currentMessages: [...state.currentMessages, message], })); - // 只有文字消息才触发AI(msgType === 1) + // 只有文字消息才触发AI(msgType === 1),且必须是对方发送的消息(isSend !== true) if ( message.msgType === 1 && + !message.isSend && [1, 2].includes((currentContract as any).aiType || 0) ) { console.log("📨 收到新消息,准备触发AI");