From bddabe2f29df93e2927ae37dca46a8fc50443aad Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 18 Aug 2023 17:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=88=98=E6=96=97=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/wtask/api_battlefinish.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wtask/api_battlefinish.go b/modules/wtask/api_battlefinish.go index a6a40bedf..2615f861b 100644 --- a/modules/wtask/api_battlefinish.go +++ b/modules/wtask/api_battlefinish.go @@ -54,7 +54,7 @@ func (this *apiComp) BattleFinish(session comm.IUserSession, req *pb.WTaskBattle if req.Report != nil && req.Report.Info != nil && len(req.Report.Info.Redflist) > 0 { heros := make([]string, 0) for _, v := range req.Report.Info.Redflist[0].Team { - if !v.Ishelp { // 助战英雄不加经验 + if v.Oid != "" && !v.Ishelp { // 助战英雄不加经验 heros = append(heros, v.Oid) } }