上传武馆接口参数校验
This commit is contained in:
parent
4c203aa3b2
commit
ee365ff313
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user