上传战斗报错修复
This commit is contained in:
parent
79b655cb41
commit
bddabe2f29
@ -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 {
|
if req.Report != nil && req.Report.Info != nil && len(req.Report.Info.Redflist) > 0 {
|
||||||
heros := make([]string, 0)
|
heros := make([]string, 0)
|
||||||
for _, v := range req.Report.Info.Redflist[0].Team {
|
for _, v := range req.Report.Info.Redflist[0].Team {
|
||||||
if !v.Ishelp { // 助战英雄不加经验
|
if v.Oid != "" && !v.Ishelp { // 助战英雄不加经验
|
||||||
heros = append(heros, v.Oid)
|
heros = append(heros, v.Oid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user