Skip to content

Commit

Permalink
get_group_member_list中的card字段的默认值改为nickname (#317)
Browse files Browse the repository at this point in the history
将`get_group_member_list`中的`card`字段的默认值改为nickname,以适应将card作为昵称使用的项目。做出此更改原因是目前官方接口能获取的昵称只有一种,card已经作为群名片已经失去意义。
  • Loading branch information
liyk123 authored Feb 4, 2024
1 parent d8e1157 commit c93cce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/get_group_member_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", // 使用默认值
Expand Down

0 comments on commit c93cce8

Please sign in to comment.