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 }