This commit is contained in:
liwei1dao 2023-09-22 19:26:48 +08:00
commit abaf242108

View File

@ -77,8 +77,10 @@ func (this *modelCaravan) GetRankListData(rankNum int32, uid string) (list []*pb
for _data.Next(context.TODO()) {
temp := &pb.DBUser{}
if err = _data.Decode(temp); err == nil {
if temp.Name == "" { // 容错处理 防止没有创号的玩家入榜
continue
}
ipos++
list = append(list, &pb.CaravanRankInfo{
Uid: temp.Uid,
Name: temp.Name,