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"