diff --git a/modules/plunder/api_getlist.go b/modules/plunder/api_getlist.go index ba9ae5731..9eb100664 100644 --- a/modules/plunder/api_getlist.go +++ b/modules/plunder/api_getlist.go @@ -172,6 +172,8 @@ func (this *apiComp) sendRankReward(data map[string]int32) (err error) { for i := v.ScoreLow; i <= v.ScoreUp; i++ { if int32(len(uid)) > i-1 { // 越界校验 sz = append(sz, uid[i-1]) + } else { + break } } if len(sz) == 0 { // 过滤 diff --git a/modules/plunder/configure.go b/modules/plunder/configure.go index 25ebeb04d..9766ec19f 100644 --- a/modules/plunder/configure.go +++ b/modules/plunder/configure.go @@ -39,7 +39,6 @@ func (this *configureComp) getGamePlunderData() (result []*cfg.GamePlunderData, if v, err = this.GetConfigure(game_plunder); err == nil { if configure, ok := v.(*cfg.GamePlunder); ok { result = configure.GetDataList() - } } return @@ -75,10 +74,6 @@ func (this *configureComp) getGamePlunderBattleById(id int32) (result *cfg.GameP err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_plunderbattle, id) return } -func (this *configureComp) getGameMonkeyRewardData(chapterid int32) (result []*cfg.GameMonkeyRewardData, err error) { - - return -} // 获取航海术相关 func (this *configureComp) getPlunderDevelopById(id int32) (result *cfg.GamePlunderDevelopData, err error) {