From ac38702b50e175f59b9b7557da141578f7d9c3e6 Mon Sep 17 00:00:00 2001 From: chen wei bo <1025839511@qq.com> Date: Wed, 17 Sep 2025 17:18:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Scripts/chat18x/data/GirlChatData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Scripts/chat18x/data/GirlChatData.ts b/assets/Scripts/chat18x/data/GirlChatData.ts index f7f98a23..9bc3557d 100644 --- a/assets/Scripts/chat18x/data/GirlChatData.ts +++ b/assets/Scripts/chat18x/data/GirlChatData.ts @@ -132,7 +132,7 @@ export class GirlChatData extends BaseData { const existingMsgIds = new Set(this.chatRecordIds); // 过滤掉已经存在的消息(通过 msgId) - const newChatRecords = allData.filter(msg => !existingMsgIds.has(msg.msgId)); + const newChatRecords = allData.filter(msg => !existingMsgIds.has(Number(msg.msgId))); // 将新的聊天记录添加到 Map 中 newChatRecords.forEach(msg => {