From 7c48b450d0c902b8107a7b01cba2b8e3df821598 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 22 Nov 2023 11:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=88=E5=8D=A1=E5=85=85=E5=80=BC=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/privilege/configure.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/modules/privilege/configure.go b/modules/privilege/configure.go index ee4c0964c..f7e5a1d59 100644 --- a/modules/privilege/configure.go +++ b/modules/privilege/configure.go @@ -53,17 +53,18 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp return } +// 接口调整 稍后补充 func (this *configureComp) GetPrivilegeCard(id string) (data *cfg.GamePrivilegeCardData, err error) { - var ( - v interface{} - ) - if v, err = this.GetConfigure(game_privilegecard); err == nil { - if configure, ok := v.(*cfg.GamePrivilegeCard); ok { - if data = configure.Get(id); data != nil { - return - } - } - } + // var ( + // v interface{} + // ) + // if v, err = this.GetConfigure(game_privilegecard); err == nil { + // if configure, ok := v.(*cfg.GamePrivilegeCard); ok { + // if data = configure.Get(id); data != nil { + // return + // } + // } + // } err = comm.NewNotFoundConfErr(moduleName, game_privilegecard, id) return }