补充战斗校验代码
This commit is contained in:
parent
1306bead39
commit
ea3b997d53
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user