From ee365ff31354697aec8efb8964eb9fb083612dbe Mon Sep 17 00:00:00 2001 From: liwei Date: Thu, 25 Aug 2022 09:51:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=AD=A6=E9=A6=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8F=82=E6=95=B0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/martialhall/api_receive.go | 3 +++ modules/martialhall/api_unlock.go | 3 +++ modules/martialhall/api_upgrade.go | 3 +++ 3 files changed, 9 insertions(+) diff --git a/modules/martialhall/api_receive.go b/modules/martialhall/api_receive.go index edc653f59..22ae1ea5f 100644 --- a/modules/martialhall/api_receive.go +++ b/modules/martialhall/api_receive.go @@ -23,6 +23,9 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.MartialhallRecei mdata *cfg.GameKungfuMasterworkerData filed string ) + if code = this.ReceiveCheck(session, req); code != pb.ErrorCode_Success { + return + } if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil { code = pb.ErrorCode_DBError return diff --git a/modules/martialhall/api_unlock.go b/modules/martialhall/api_unlock.go index 93a518373..91a48e52b 100644 --- a/modules/martialhall/api_unlock.go +++ b/modules/martialhall/api_unlock.go @@ -23,6 +23,9 @@ func (this *apiComp) UnLock(session comm.IUserSession, req *pb.MartialhallUnLock pillar *pb.DBPillar filed string ) + if code = this.UnLockCheck(session, req); code != pb.ErrorCode_Success { + return + } if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil { code = pb.ErrorCode_DBError return diff --git a/modules/martialhall/api_upgrade.go b/modules/martialhall/api_upgrade.go index 661112775..cb34c67b7 100644 --- a/modules/martialhall/api_upgrade.go +++ b/modules/martialhall/api_upgrade.go @@ -24,6 +24,9 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.MartialhallUpgra mdata *cfg.GameKungfuMasterworkerData issucc bool ) + if code = this.UpgradeCheck(session, req); code != pb.ErrorCode_Success { + return + } if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil { code = pb.ErrorCode_DBError return