From 60529513e690fdab50f0149472081f5a7e6fa88b Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 6 Feb 2024 16:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/model.go | 2 +- modules/practice/modelPandata.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }