From 6d0ff3468011c41897f55d623820a8753d101162 Mon Sep 17 00:00:00 2001 From: jhc Date: Sat, 22 Feb 2025 15:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/config/config.go | 4 ++++ pkg/service/bundle/pay.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index c88fd86..db3ca29 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -100,6 +100,8 @@ var ( // 审批 es index ApprovalIndex string + + Webhookkey string ) var ConfigData = new(AppConfig) @@ -234,6 +236,8 @@ func LoadServer(file *ini.File) { // 审批 es index ApprovalIndex = file.Section("es").Key("ApprovalIndex").String() + + Webhookkey = file.Section("stripe").Key("Webhookkey").String() } func Viper(iniConf string) (err error) { diff --git a/pkg/service/bundle/pay.go b/pkg/service/bundle/pay.go index 73f497f..afaf414 100644 --- a/pkg/service/bundle/pay.go +++ b/pkg/service/bundle/pay.go @@ -6,7 +6,7 @@ import ( "fmt" "fonchain-fiee/api/bundle" "fonchain-fiee/api/order" - "fonchain-fiee/cmd/config" + "fonchain-fiee/pkg/config" "fonchain-fiee/pkg/model/login" "fonchain-fiee/pkg/service" "fonchain-fiee/pkg/service/bundle/common"