diff --git a/modules/entertainment/model.go b/modules/entertainment/model.go index 7591b6749..db0e7e380 100644 --- a/modules/entertainment/model.go +++ b/modules/entertainment/model.go @@ -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) { 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) return } diff --git a/modules/practice/modelPandata.go b/modules/practice/modelPandata.go index 5487db08e..3ff5de5bc 100644 --- a/modules/practice/modelPandata.go +++ b/modules/practice/modelPandata.go @@ -79,7 +79,7 @@ func (this *modelPandata) queryrooms(uids []string) (results []*pb.DBPracticeRoo onfound []string 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) return }