From 7175dd3c78f5b0aeac1bcc1b71dd9827eed36874 Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Fri, 6 Mar 2026 19:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=A6=E6=A0=87=E8=B5=9B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/conf/champship/champship_cfg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/conf/champship/champship_cfg.go b/src/server/conf/champship/champship_cfg.go index 5e0ca681..f873fe07 100644 --- a/src/server/conf/champship/champship_cfg.go +++ b/src/server/conf/champship/champship_cfg.go @@ -55,12 +55,12 @@ func GetReward(Reward, Score, activityId int) (int, []*item.Item) { } r := make([]*item.Item, 0, len(data)) NewReward := Reward - for k, v := range data { + for _, v := range data { rewardGroupType := gamedata.GetIntValue(v, "RewardGroupType") if rewardGroupType != activityId { continue } - Id := GoUtil.Int(k) + Id := gamedata.GetIntValue(v, "Step") if Reward >= Id { continue }