add log
This commit is contained in:
parent
b0b9f0865c
commit
e25936c6af
@ -83,17 +83,24 @@ func (this *apiComp) Randlist(session comm.IUserSession, req *pb.FriendRandlistR
|
||||
}
|
||||
}
|
||||
}
|
||||
this.moduleFriend.Debug("过滤有效的UID",
|
||||
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||
log.Field{Key: "count", Value: len(randOnlineUsers)})
|
||||
|
||||
var userList []*pb.FriendBase
|
||||
|
||||
for _, uid := range randOnlineUsers {
|
||||
target := this.moduleFriend.modelFriend.GetFriend(uid)
|
||||
if target == nil {
|
||||
this.moduleFriend.Debug("未找到好友",
|
||||
log.Field{Key: "uid", Value: uid})
|
||||
continue
|
||||
}
|
||||
|
||||
base := this.setDefaultFriendUserBaseInfo(uid)
|
||||
if base == nil {
|
||||
this.moduleFriend.Debug("未找到玩家信息",
|
||||
log.Field{Key: "uid", Value: uid})
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user