上传
This commit is contained in:
parent
cd93c14210
commit
60529513e6
@ -37,7 +37,7 @@ func (this *modelComp) Init(service core.IService, module core.IModule, comp cor
|
|||||||
|
|
||||||
func (this *modelComp) queryPlayers(uIds []string) (result []*pb.DBXXLData, err error) {
|
func (this *modelComp) queryPlayers(uIds []string) (result []*pb.DBXXLData, err error) {
|
||||||
result = make([]*pb.DBXXLData, 0)
|
result = make([]*pb.DBXXLData, 0)
|
||||||
if _, err = this.Gets(uIds, &result); err != nil && err != mgo.MongodbNil {
|
if _, err = this.GetByUids(uIds, &result); err != nil && err != mgo.MongodbNil {
|
||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ func (this *modelPandata) queryrooms(uids []string) (results []*pb.DBPracticeRoo
|
|||||||
onfound []string
|
onfound []string
|
||||||
newdata map[string]interface{} = make(map[string]interface{})
|
newdata map[string]interface{} = make(map[string]interface{})
|
||||||
)
|
)
|
||||||
if onfound, err = this.Gets(uids, &results); err != nil {
|
if onfound, err = this.GetByUids(uids, &results); err != nil {
|
||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user