diff --git a/modules/stonehenge/api_bookaward.go b/modules/stonehenge/api_bookaward.go index 5760d25b9..91383c457 100644 --- a/modules/stonehenge/api_bookaward.go +++ b/modules/stonehenge/api_bookaward.go @@ -34,7 +34,7 @@ func (this *apiComp) BookAward(session comm.IUserSession, req *pb.StonehengeBook return } - if confs, err = this.module.configure.getGameStoneIllustratedDatas(); err != nil { + if confs, err = this.module.configure.getGameStoneIllustratedDatas(); err == nil { for _, v := range confs { if v.Type == req.Btype && v.ColltectionNum == req.Stage { conf = v diff --git a/modules/stonehenge/configure.go b/modules/stonehenge/configure.go index 2dd51d887..ea4e8a7b8 100644 --- a/modules/stonehenge/configure.go +++ b/modules/stonehenge/configure.go @@ -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_stonetask, cfg.NewGameStoneTask) 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_buffconf, cfg.NewGameStoneBuff, this.LoadGameStoneBuff) configure.RegisterConfigure(game_storyconf, cfg.NewGameStoneStory, this.LoadGameStoneStory)