上传代码

This commit is contained in:
meixiongfeng 2024-02-06 15:46:51 +08:00
parent c464856c7f
commit fe6b416f4f
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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