上传战斗类型判断处理
This commit is contained in:
parent
d3ce4a2073
commit
30a1b1c409
@ -88,8 +88,7 @@ func (this *Battle) CreatePveBattle(session comm.IUserSession, req *pb.BattlePVE
|
||||
this.Errorf("session:%v err:", session, err)
|
||||
return
|
||||
}
|
||||
if req.Ptype < 0 || req.Ptype > 4 ||
|
||||
req.Format == nil || req.Format.Format == nil || len(req.Format.Format) != 5 {
|
||||
if req.Format == nil || req.Format.Format == nil || len(req.Format.Format) != 5 {
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
return
|
||||
}
|
||||
@ -119,8 +118,7 @@ func (this *Battle) CreatePvbBattle(session comm.IUserSession, req *pb.BattlePVE
|
||||
this.Errorf("session:%v err:", session, err)
|
||||
return
|
||||
}
|
||||
if req.Ptype < 0 || req.Ptype > 4 ||
|
||||
req.Format == nil || req.Format.Format == nil || len(req.Format.Format) != 5 {
|
||||
if req.Format == nil || req.Format.Format == nil || len(req.Format.Format) != 5 {
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user