初始化

This commit is contained in:
meixiongfeng 2023-12-28 15:52:14 +08:00
parent fdb04e1b87
commit d53368fd7c

View File

@ -137,6 +137,9 @@ func (this *ModelRank) CheckRank(uid string, boosID int32, difficulty int32, lin
}
update := make(map[string]interface{}, 0)
update["uinfo"] = record.Uinfo
if record.Data == nil {
record.Data = make(map[int32]*pb.ScoreData)
}
if _, ok := record.Data[boosID]; !ok {
record.Data[boosID] = &pb.ScoreData{
Costime: map[int32]int32{},