更改世界任务参数校验
This commit is contained in:
parent
e1703ebe2f
commit
9757796ba3
@ -10,7 +10,7 @@ import (
|
||||
|
||||
// 战斗开始
|
||||
func (this *apiComp) BattlestartCheck(session comm.IUserSession, req *pb.WorldtaskBattleStartReq) (code pb.ErrorCode) {
|
||||
if req.BattleConfId == 0 || len(req.Teamids) == 0 || req.Leadpos == 0 {
|
||||
if req.BattleConfId == 0 || req.Battle != nil {
|
||||
this.module.Error("参数错误", log.Fields{"uid": session.GetUserId(), "params": req})
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user