修复才颜色代码

This commit is contained in:
liwei1dao 2023-11-09 17:02:46 +08:00
parent 9c89116f83
commit 781dd76e34

View File

@ -35,9 +35,11 @@ func (this *modelComp) getModel(uid string) (info *pb.DBDColor, err error) {
}
if err == mgo.MongodbNil {
info = &pb.DBDColor{
Id: primitive.NewObjectID().Hex(),
Uid: uid,
Integral: 0,
Id: primitive.NewObjectID().Hex(),
Uid: uid,
Integral: 0,
Weekaward: make(map[int32]bool),
Allaward: make(map[int32]bool),
}
err = this.Add(uid, info)
}