From eae57aabf1bb85f150eb197c7ffa76ae51e955dd Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Fri, 18 Sep 2020 14:46:08 +0800 Subject: [PATCH] fix group uin. --- client/builders.go | 1 + client/decoders.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/builders.go b/client/builders.go index 3a8f9f4a..2cc3700a 100644 --- a/client/builders.go +++ b/client/builders.go @@ -965,6 +965,7 @@ func (c *QQClient) buildGroupInfoRequestPacket(groupCode int64) (uint16, []byte) GroupCode: proto.Uint64(uint64(groupCode)), Stgroupinfo: &oidb.D88DGroupInfo{ GroupOwner: proto.Uint64(0), + GroupUin: proto.Uint64(0), GroupCreateTime: proto.Uint32(0), GroupFlag: proto.Uint32(0), GroupMemberMaxNum: proto.Uint32(0), diff --git a/client/decoders.go b/client/decoders.go index bb88c3fe..c99fdd83 100644 --- a/client/decoders.go +++ b/client/decoders.go @@ -403,7 +403,7 @@ func decodeGroupInfoResponse(c *QQClient, _ uint16, payload []byte) (interface{} } info := rsp.RspGroupInfo[0] return &GroupInfo{ - Uin: utils.ToGroupUin(int64(*info.GroupCode)), + Uin: int64(*info.GroupInfo.GroupUin), Code: int64(*info.GroupCode), Name: string(info.GroupInfo.GroupName), Memo: string(info.GroupInfo.GroupMemo),