This commit is contained in:
meixiongfeng 2022-12-22 11:41:31 +08:00
parent 89e636f2a7
commit f8b0f03b75

View File

@ -86,13 +86,13 @@ func (this *Enchant) CheckRank(uid string, boosID int32, Enchant *pb.DBEnchant,
if report != nil && report.Info != nil && len(report.Info.Redflist) > 0 {
costTime = report.Costtime
Leadpos = int(report.Info.Redflist[0].Leadpos)
for i, v := range report.Info.Redflist[0].Team {
for _, v := range report.Info.Redflist[0].Team {
if v != nil {
szLine[i] = &pb.LineUp{
szLine = append(szLine, &pb.LineUp{
Cid: v.HeroID,
Star: v.Star,
Lv: v.Lv,
}
})
}
}
}