上传星座图信息初始化bug
This commit is contained in:
parent
9db5cc627e
commit
aa710d72d7
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user