From ea3b997d5393c1dad382f85fb55d15441ed71711 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 26 Sep 2023 17:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=88=98=E6=96=97=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/arena/api_challenge.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/arena/api_challenge.go b/modules/arena/api_challenge.go index 53766bd9e..bb41eacf8 100644 --- a/modules/arena/api_challenge.go +++ b/modules/arena/api_challenge.go @@ -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 }