update
This commit is contained in:
parent
89e636f2a7
commit
f8b0f03b75
@ -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 {
|
if report != nil && report.Info != nil && len(report.Info.Redflist) > 0 {
|
||||||
costTime = report.Costtime
|
costTime = report.Costtime
|
||||||
Leadpos = int(report.Info.Redflist[0].Leadpos)
|
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 {
|
if v != nil {
|
||||||
szLine[i] = &pb.LineUp{
|
szLine = append(szLine, &pb.LineUp{
|
||||||
Cid: v.HeroID,
|
Cid: v.HeroID,
|
||||||
Star: v.Star,
|
Star: v.Star,
|
||||||
Lv: v.Lv,
|
Lv: v.Lv,
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user