接口修改
This commit is contained in:
parent
94a883422a
commit
68fc794ee8
@ -851,16 +851,17 @@ func (this *Hero) RegisterInstructor(session comm.IUserSession, heroOid []string
|
||||
)
|
||||
|
||||
if this.IsCross() {
|
||||
_hero := &pb.DBHero{}
|
||||
|
||||
if model, err = this.GetDBModuleByUid(session.GetUserId(), this.modelHero.TableName, this.modelHero.Expired); err == nil {
|
||||
for _, v := range heroOid {
|
||||
_hero := &pb.DBHero{}
|
||||
if err := model.GetListObj(session.GetUserId(), v, _hero); err != nil {
|
||||
this.Errorf("err:%v", err)
|
||||
return
|
||||
}
|
||||
_szHero = append(_szHero, _hero)
|
||||
}
|
||||
}
|
||||
_szHero = append(_szHero, _hero)
|
||||
} else {
|
||||
for _, v := range heroOid {
|
||||
_hero, c := this.GetHeroByObjID(session.GetUserId(), v)
|
||||
|
Loading…
Reference in New Issue
Block a user