This commit is contained in:
liwei1dao 2024-02-06 16:22:12 +08:00
parent cd93c14210
commit 60529513e6
2 changed files with 2 additions and 2 deletions

View File

@ -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
} }

View File

@ -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
} }