上传服务端代码
This commit is contained in:
parent
eda81986af
commit
260ff1c177
@ -949,7 +949,7 @@ func (this *Hero) QueryCrossMultipleHeroinfo(oid []string) (hero []*pb.DBHero, e
|
||||
"_id": v,
|
||||
})
|
||||
_hero := &pb.DBHero{}
|
||||
if err = sr.Decode(hero); err != nil {
|
||||
if err = sr.Decode(_hero); err != nil {
|
||||
this.modelHero.moduleHero.Errorf("find hero error: %v", err)
|
||||
}
|
||||
hero = append(hero, _hero)
|
||||
|
@ -30,7 +30,10 @@ func (this *apiComp) Enrolled(session comm.IUserSession, req *pb.PracticeEnrolle
|
||||
if code = this.module.ModuleHero.RegisterInstructor(session, req.Hero, req.Group); code != pb.ErrorCode_Success {
|
||||
return
|
||||
}
|
||||
for i := 0; i < len(req.Hero); i++ {
|
||||
room.Full[req.Group]++
|
||||
}
|
||||
|
||||
} else {
|
||||
if hero, err = this.module.ModuleHero.QueryCrossMultipleHeroinfo(req.Hero); err != nil {
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
|
Loading…
Reference in New Issue
Block a user