1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

fix: unidirectional friend unmarshal error

This commit is contained in:
Mrs4s 2022-05-14 23:59:35 +08:00
parent 4164d656d8
commit 802f679783
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -16,7 +16,7 @@ import (
type UnidirectionalFriendInfo struct { type UnidirectionalFriendInfo struct {
Uin int64 Uin int64
Nickname string Nickname string
Age int32 Age uint32
Source string Source string
} }
@ -25,8 +25,8 @@ func (c *QQClient) GetUnidirectionalFriendList() (ret []*UnidirectionalFriendInf
BlockList []struct { BlockList []struct {
Uin int64 `json:"uint64_uin"` Uin int64 `json:"uint64_uin"`
NickBytes string `json:"bytes_nick"` NickBytes string `json:"bytes_nick"`
Age int32 `json:"uint32_age"` Age uint32 `json:"uint32_age"`
Sex int32 `json:"uint32_sex"` Sex uint32 `json:"uint32_sex"`
SourceBytes string `json:"bytes_source"` SourceBytes string `json:"bytes_source"`
} `json:"rpt_block_list"` } `json:"rpt_block_list"`
ErrorCode int32 `json:"ErrorCode"` ErrorCode int32 `json:"ErrorCode"`