From fe6b416f4f54fa0b84af4d5fd8c508a0e2e183af Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 6 Feb 2024 15:46:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/enchant/model_enchant.go | 2 +- modules/integral/model_integral.go | 2 +- modules/parkour/model_parkour.go | 2 +- modules/practice/modelPandata.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 }