From 781dd76e3470ff71b9cea7ae8b61d2f10871ef2f Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 9 Nov 2023 17:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8D=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/dcolor/model.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/dcolor/model.go b/modules/dcolor/model.go index 25de1f062..6cb7d4bc0 100644 --- a/modules/dcolor/model.go +++ b/modules/dcolor/model.go @@ -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) }