初始化
This commit is contained in:
parent
fdb04e1b87
commit
d53368fd7c
@ -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{},
|
||||
|
Loading…
Reference in New Issue
Block a user