From 0b11786d7d7300709575ee9a737b9be6c80b70e9 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, 15 Aug 2024 20:10:35 +0800 Subject: [PATCH] fix --- src/onebot/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/onebot/index.ts b/src/onebot/index.ts index f7a90a42..74fc75fa 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -326,11 +326,6 @@ export class NapCatOneBot11Adapter { const flag = notify.group.groupCode + '|' + notify.seq + '|' + notify.type; this.context.logger.logDebug('收到群通知', notify); - // let member2: GroupMember; - // if (notify.user2.uid) { - // member2 = await getGroupMember(notify.group.groupCode, null, notify.user2.uid); - // } - if ([ GroupNotifyTypes.ADMIN_SET, GroupNotifyTypes.ADMIN_UNSET, @@ -406,7 +401,7 @@ export class NapCatOneBot11Adapter { const groupInviteEvent = new OB11GroupRequestEvent( this.core, parseInt(notify.group.groupCode), - parseInt(notify.user1.uid), + parseInt(await this.core.apis.UserApi.getUinByUidV2(notify.user1.uid)), 'invite', notify.postscript, flag,