上传代码
This commit is contained in:
parent
c464856c7f
commit
fe6b416f4f
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user