This commit is contained in:
liwei1dao 2023-09-27 15:13:48 +08:00
commit 11cfa9b174
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func (this *apiComp) BookAward(session comm.IUserSession, req *pb.StonehengeBook
return return
} }
if confs, err = this.module.configure.getGameStoneIllustratedDatas(); err != nil { if confs, err = this.module.configure.getGameStoneIllustratedDatas(); err == nil {
for _, v := range confs { for _, v := range confs {
if v.Type == req.Btype && v.ColltectionNum == req.Stage { if v.Type == req.Btype && v.ColltectionNum == req.Stage {
conf = v conf = v

View File

@ -97,6 +97,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
err = this.LoadConfigure(game_stoneweek, cfg.NewGameStoneWeek) err = this.LoadConfigure(game_stoneweek, cfg.NewGameStoneWeek)
err = this.LoadConfigure(game_stonetask, cfg.NewGameStoneTask) err = this.LoadConfigure(game_stonetask, cfg.NewGameStoneTask)
err = this.LoadConfigure(game_stoneprivilege, cfg.NewGameStonePrivilege) err = this.LoadConfigure(game_stoneprivilege, cfg.NewGameStonePrivilege)
err = this.LoadConfigure(game_stoneillustrated, cfg.NewGameStoneIllustrated)
configure.RegisterConfigure(game_stageconf, cfg.NewGameStoneStage, this.LoadGameStoneStage) configure.RegisterConfigure(game_stageconf, cfg.NewGameStoneStage, this.LoadGameStoneStage)
configure.RegisterConfigure(game_buffconf, cfg.NewGameStoneBuff, this.LoadGameStoneBuff) configure.RegisterConfigure(game_buffconf, cfg.NewGameStoneBuff, this.LoadGameStoneBuff)
configure.RegisterConfigure(game_storyconf, cfg.NewGameStoneStory, this.LoadGameStoneStory) configure.RegisterConfigure(game_storyconf, cfg.NewGameStoneStory, this.LoadGameStoneStory)