From e388f4df992ba322203e3c91f450bc5a4f46c977 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 10 Jan 2023 14:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E6=96=B9=E9=98=9F=E4=BC=8D=E9=98=9F?= =?UTF-8?q?=E5=88=97=E6=95=B0=E6=8D=AE=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/enchant/module.go | 2 +- modules/hunting/module.go | 2 +- modules/viking/module.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/enchant/module.go b/modules/enchant/module.go index 673b3b5a0..cd2894d93 100644 --- a/modules/enchant/module.go +++ b/modules/enchant/module.go @@ -84,7 +84,7 @@ func (this *Enchant) CheckRank(uid string, boosID int32, report *pb.BattleReport model := db.NewDBModel(comm.TableEnchantRank, 0, conn_) costTime := report.Costtime - szLine := make([]*pb.LineUp, 5) + szLine := make([]*pb.LineUp, len(report.Info.Redflist[0].Team)) Leadpos := 0 if report != nil && report.Info != nil && len(report.Info.Redflist) > 0 { costTime = report.Costtime diff --git a/modules/hunting/module.go b/modules/hunting/module.go index 7b4fe155d..11bb3da41 100644 --- a/modules/hunting/module.go +++ b/modules/hunting/module.go @@ -86,7 +86,7 @@ func (this *Hunting) CheckRank(uid string, boosID int32, difficulty int32, repor model := db.NewDBModel(comm.TableHuntingRank, time.Hour, conn_) costTime := report.Costtime - szLine := make([]*pb.LineUp, 5) + szLine := make([]*pb.LineUp, len(report.Info.Redflist[0].Team)) Leadpos := 0 if report != nil && report.Info != nil && len(report.Info.Redflist) > 0 { costTime = report.Costtime diff --git a/modules/viking/module.go b/modules/viking/module.go index 308e8242d..fc0e29dd5 100644 --- a/modules/viking/module.go +++ b/modules/viking/module.go @@ -92,7 +92,7 @@ func (this *Viking) CheckRank(uid string, boosID int32, difficulty int32, report model := db.NewDBModel(comm.TableVikingRank, 0, conn_) costTime := report.Costtime - szLine := make([]*pb.LineUp, 5) + szLine := make([]*pb.LineUp, len(report.Info.Redflist[0].Team)) Leadpos := 0 if report != nil && report.Info != nil && len(report.Info.Redflist) > 0 { costTime = report.Costtime