From 72626e3367e320686b59a9c9abfd79485a778c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Fri, 28 Nov 2025 16:50:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96AI=E8=A7=A6=E5=8F=91=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E7=A1=AE=E4=BF=9D=E5=8F=AA=E6=9C=89=E5=AF=B9?= =?UTF-8?q?=E6=96=B9=E5=8F=91=E9=80=81=E7=9A=84=E6=96=87=E5=AD=97=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=89=8D=E4=BC=9A=E8=A7=A6=E5=8F=91AI=E5=A4=84?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E6=8F=90=E5=8D=87=E6=B6=88=E6=81=AF=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=80=BB=E8=BE=91=E7=9A=84=E5=87=86=E7=A1=AE=E6=80=A7?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Moncter/weChat.ts | 3 +++ Touchkebao/src/store/module/weChat/weChat.ts | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 Moncter/weChat.ts 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");