From 3021ae4d93f44c8fd3bf9904dd23cce6bcb6bc0a Mon Sep 17 00:00:00 2001 From: liwei Date: Wed, 24 Aug 2022 09:35:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=AD=A6=E9=A6=86=E7=9A=84?= =?UTF-8?q?=E8=8B=B1=E9=9B=84=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/martialhall/api_practice.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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{