补充战斗校验代码

This commit is contained in:
liwei1dao 2023-09-26 17:07:13 +08:00
parent 1306bead39
commit ea3b997d53

View File

@ -14,6 +14,17 @@ func (this *apiComp) ChallengeCheck(session comm.IUserSession, req *pb.ArenaChal
Title: pb.ErrorCode_ReqParameterError.ToString(),
}
}
for _, v := range req.Battle.Format {
if v != "" {
return
}
}
errdata = &pb.ErrorData{ //没有英雄
Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(),
Message: "no hero",
}
return
}