fix: get_group_info ownerUin is "0"

This commit is contained in:
Clansty 2025-10-09 02:30:08 +08:00
parent 2afdb2a0da
commit 2f5b62decb
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134

View File

@ -18,6 +18,9 @@ class GetGroupInfo extends OneBotAction<Payload, OB11Group> {
const group = (await this.core.apis.GroupApi.getGroups()).find(e => e.groupCode == payload.group_id.toString()); const group = (await this.core.apis.GroupApi.getGroups()).find(e => e.groupCode == payload.group_id.toString());
if (!group) { if (!group) {
const data = await this.core.apis.GroupApi.fetchGroupDetail(payload.group_id.toString()); 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 { return {
...data, ...data,
group_all_shut: data.shutUpAllTimestamp > 0 ? -1 : 0, group_all_shut: data.shutUpAllTimestamp > 0 ? -1 : 0,