上传战斗报错修复

This commit is contained in:
liwei1dao 2023-08-18 17:48:38 +08:00
parent 79b655cb41
commit bddabe2f29

View File

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