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