From cb5f61f0be98c11f5bced4a99b1590af3af92399 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 27 Oct 2023 11:27:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/comm_plan/all.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/comm_plan/all.go b/lib/comm_plan/all.go index 3121bdf..fa21ed0 100644 --- a/lib/comm_plan/all.go +++ b/lib/comm_plan/all.go @@ -725,7 +725,7 @@ func getCommissionRatio(typ string, level, peerNum int, grade map[int]*LvGrade) case "team": ratio = grade[level].TeamRate case "same_lv": - if len(grade[level].PeerRate) == 0 { + if len(grade[level].PeerRate) == 0 || len(grade[level].PeerRate) >= peerNum+1 { ratio = 0 } else { ratio = grade[level].PeerRate[peerNum]