月卡充值逻辑变更

This commit is contained in:
meixiongfeng 2023-11-22 11:55:56 +08:00
parent 157d8dea00
commit 7c48b450d0

View File

@ -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
}