更改世界任务参数校验

This commit is contained in:
wh_zcy 2022-11-16 19:23:44 +08:00
parent e1703ebe2f
commit 9757796ba3

View File

@ -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
}