From e2fb4deb7683a9a2a9a10d454363c88929c0d41e Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 27 Sep 2023 14:40:04 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=9F=B3=E9=98=B5=E7=A7=98=E5=A2=83?= =?UTF-8?q?=E3=80=91=E5=9B=BE=E9=89=B4=E7=82=B9=E5=87=BB=E9=A2=86=E5=8F=96?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/stonehenge/api_bookaward.go | 2 +- modules/stonehenge/configure.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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)