战斗校验

This commit is contained in:
meixiongfeng 2022-12-30 10:16:13 +08:00
parent ba1d564673
commit 9a54411eb1
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import (
//参数校验
func (this *apiComp) ChallengeCheck(session comm.IUserSession, req *pb.EnchantChallengeReq) (code pb.ErrorCode) {
if req.BossType <= 0 || req.Battle != nil {
if req.BossType <= 0 || req.Battle == nil {
code = pb.ErrorCode_ReqParameterError
return
}

View File

@ -10,7 +10,7 @@ import (
//参数校验
func (this *apiComp) ChallengeCheck(session comm.IUserSession, req *pb.HuntingChallengeReq) (code pb.ErrorCode) {
if req.BossType <= 0 && req.Difficulty > 0 || req.Battle != nil {
if req.BossType <= 0 && req.Difficulty > 0 || req.Battle == nil {
code = pb.ErrorCode_ReqParameterError
return
}

View File

@ -10,7 +10,7 @@ import (
//参数校验
func (this *apiComp) ChallengeCheck(session comm.IUserSession, req *pb.VikingChallengeReq) (code pb.ErrorCode) {
if req.BossId <= 0 && req.Difficulty > 0 || req.Battle != nil {
if req.BossId <= 0 && req.Difficulty > 0 || req.Battle == nil {
code = pb.ErrorCode_ReqParameterError
return
}