From 18d0f11320eaadbf54d58ef3f5a8e8a71517c295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=8C=E8=8E=9E=7E=28=3D=5E=E2=96=BD=5E=3D=29?= Date: Wed, 29 Oct 2025 21:36:30 +0800 Subject: [PATCH] fix: get_group_info ownerUin is "0" (#1303) --- 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,