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

fix friend list.

This commit is contained in:
Mrs4s 2020-08-24 02:42:03 +08:00
parent 507fe33e84
commit 93de1f4456

View File

@ -228,6 +228,7 @@ func (c *QQClient) GetFriendList() (*FriendListResponse, error) {
list := rsp.(FriendListResponse) list := rsp.(FriendListResponse)
r.TotalCount = list.TotalCount r.TotalCount = list.TotalCount
r.List = append(r.List, list.List...) r.List = append(r.List, list.List...)
curFriendCount += len(list.List)
if int32(len(r.List)) >= r.TotalCount { if int32(len(r.List)) >= r.TotalCount {
break break
} }