From 2f5b62decbeade8b227cbc27cb5048f622b81d62 Mon Sep 17 00:00:00 2001 From: Clansty Date: Thu, 9 Oct 2025 02:30:08 +0800 Subject: [PATCH] fix: get_group_info ownerUin is "0" --- src/onebot/action/group/GetGroupInfo.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/onebot/action/group/GetGroupInfo.ts b/src/onebot/action/group/GetGroupInfo.ts index dd0a40bc..106a2930 100644 --- a/src/onebot/action/group/GetGroupInfo.ts +++ b/src/onebot/action/group/GetGroupInfo.ts @@ -18,6 +18,9 @@ class GetGroupInfo extends OneBotAction { const group = (await this.core.apis.GroupApi.getGroups()).find(e => e.groupCode == payload.group_id.toString()); if (!group) { const data = await this.core.apis.GroupApi.fetchGroupDetail(payload.group_id.toString()); + if (data.ownerUid && data.ownerUin === '0') { + data.ownerUin = await this.core.apis.UserApi.getUinByUidV2(data.ownerUid); + } return { ...data, group_all_shut: data.shutUpAllTimestamp > 0 ? -1 : 0,