diff --git a/modules/martialhall/api_practice.go b/modules/martialhall/api_practice.go index 299d68197..f928cf478 100644 --- a/modules/martialhall/api_practice.go +++ b/modules/martialhall/api_practice.go @@ -71,10 +71,9 @@ func (this *apiComp) Practice(session comm.IUserSession, req *pb.MartialhallPrac return } - //此处校验hero信息 - //... - - //... + if _, code = this.module.ModuleHero.GetHeroByObjID(session.GetUserId(), req.Hero); code != pb.ErrorCode_Success { + return + } var sale = make([]*cfg.Gameatn, 0) for _, v := range mdata.Deplete { sale = append(sale, &cfg.Gameatn{