接口补充 获取掉落相关数据

This commit is contained in:
meixiongfeng 2023-07-06 14:20:40 +08:00
parent d7ef8e1556
commit bccee8accc
2 changed files with 8 additions and 1 deletions

View File

@ -495,6 +495,7 @@ type (
GetHeroConfig(heroCfgId string) (conf *cfg.GameHeroData, err error)
GetPriceGroupLen(pricegroupId int32) (count int32, err error)
GetGrormetLlame(id string) (data int32, err error)
GetGroupDataByLotteryId(id int32) (data *cfg.GameLotteryData, err error)
}
IReputation interface {

View File

@ -55,7 +55,13 @@ func (this *Tools) GetGroupDataByLottery(lotteryId int32, vipLv int32, lv int32)
items = this.configure.GetGroupDataByLottery(lotteryId, vipLv, lv)
return
}
func (this *Tools) GetGroupDataByLotteryId(id int32) (data *cfg.GameLotteryData, err error) {
data = this.configure.GetLotterConfById(id)
if data == nil {
err = comm.NewNotFoundConfErr("game_lottery", game_lottery, id)
}
return
}
func (this *Tools) GetGlobalConf() *cfg.GameGlobalData {
return this.configure.GetGlobalConf()
}