From c93cce8234f0c9fd6c5f3062c84d366d60eb2f5d Mon Sep 17 00:00:00 2001 From: liyk123 Date: Sun, 4 Feb 2024 17:27:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86`get=5Fgroup=5Fmember=5Flist`=E4=B8=AD?= =?UTF-8?q?=E7=9A=84`card`=E5=AD=97=E6=AE=B5=E7=9A=84=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E6=94=B9=E4=B8=BAnickname=20(#317)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将`get_group_member_list`中的`card`字段的默认值改为nickname,以适应将card作为昵称使用的项目。做出此更改原因是目前官方接口能获取的昵称只有一种,card已经作为群名片已经失去意义。 --- handlers/get_group_member_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/get_group_member_list.go b/handlers/get_group_member_list.go index badf0347..51e4602e 100644 --- a/handlers/get_group_member_list.go +++ b/handlers/get_group_member_list.go @@ -302,7 +302,7 @@ func GetGroupMemberList(client callapi.Client, api openapi.OpenAPI, apiv2 openap UserID: userIDUInt, GroupID: uint64(groupIDInt), Nickname: memberFromAPI.Nick, - Card: "主人", // 使用默认值 + Card: memberFromAPI.Nick, // 使用昵称作为默认值(TODO: 将来可能发生变更) Sex: "0", // 使用默认值 Age: 0, // 使用默认值 Area: "0", // 使用默认值