上传星座图信息初始化bug

This commit is contained in:
liwei1dao 2022-11-03 16:16:59 +08:00
parent 9db5cc627e
commit aa710d72d7

View File

@ -28,11 +28,17 @@ func (this *modelHoroscope) Init(service core.IService, module core.IModule, com
//查询用户装备数据
func (this *modelHoroscope) queryInfo(uId string) (result *pb.DBHoroscope, err error) {
result = &pb.DBHoroscope{}
result = &pb.DBHoroscope{
Uid: uId,
Nodes: make(map[int32]int32),
}
if err = this.Get(uId, result); err != nil && err != mgo.MongodbNil {
this.module.Errorln(err)
return
}
if err != mgo.MongodbNil {
err = nil
}
return
}