diff --git a/modules/enchant/model_enchant.go b/modules/enchant/model_enchant.go index 8e085bfe5..114f0702b 100644 --- a/modules/enchant/model_enchant.go +++ b/modules/enchant/model_enchant.go @@ -49,7 +49,7 @@ func (this *modelEnchant) getEnchantList(uid string) (result *pb.DBEnchant, err func (this *modelEnchant) queryPlayers(uIds []string) (result []*pb.DBEnchant, err error) { result = make([]*pb.DBEnchant, 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/integral/model_integral.go b/modules/integral/model_integral.go index f6e19bf9c..ac4c57725 100644 --- a/modules/integral/model_integral.go +++ b/modules/integral/model_integral.go @@ -37,7 +37,7 @@ func (this *modelIntegral) modifyIntegralData(uid string, data map[string]interf func (this *modelIntegral) queryPlayers(uIds []string) (result []*pb.DBIntegralBoss, err error) { result = make([]*pb.DBIntegralBoss, 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/parkour/model_parkour.go b/modules/parkour/model_parkour.go index d502a97a9..ab041a74b 100644 --- a/modules/parkour/model_parkour.go +++ b/modules/parkour/model_parkour.go @@ -190,7 +190,7 @@ func (this *ModelParkourComp) queryinfos(uids []string) (results []*pb.DBParkour 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 } diff --git a/modules/practice/modelPandata.go b/modules/practice/modelPandata.go index f6b14da06..5487db08e 100644 --- a/modules/practice/modelPandata.go +++ b/modules/practice/modelPandata.go @@ -234,7 +234,7 @@ func (this *pandataModel) queryrooms(uids []string) (results []*pb.DBPracticeRoo onfound []string newdata map[string]interface{} = make(map[string]interface{}) ) - if onfound, err = this.model.Gets(uids, &results); err != nil { + if onfound, err = this.model.GetByUids(uids, &results); err != nil { this.module.Errorln(err) return }