From 21061561ec2b7caa6f2ba6f6fb0659b50f9a92e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 5 Sep 2024 15:06:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AD=97=E6=AE=B5=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/api/msg.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/onebot/api/msg.ts b/src/onebot/api/msg.ts index abf9e3e5..bd36e2fa 100644 --- a/src/onebot/api/msg.ts +++ b/src/onebot/api/msg.ts @@ -677,8 +677,10 @@ export class OneBotMsgApi { if (ret.result === 0) { resMsg.group_id = parseInt(ret.tmpChatInfo!.groupCode); resMsg.sender.nickname = ret.tmpChatInfo!.fromNick; + resMsg.temp_source = resMsg.group_id; } else { resMsg.group_id = 284840486; //兜底数据 + resMsg.temp_source = resMsg.group_id; resMsg.sender.nickname = '临时会话'; } }