diff --git a/config.yaml b/config.yaml index c2fed57..ea08464 100644 --- a/config.yaml +++ b/config.yaml @@ -283,4 +283,30 @@ mcp: version: v1.0.0 sse_path: /sse message_path: /message - url_prefix: '' \ No newline at end of file + url_prefix: '' + +wechat: + app-id: wx3d21df18d7f8f9fc + app-secret: 3ab19e9b6a5e155c25ac6457be650047 + token: kjeldcsdz2phfwfxnevsajnzsboho1ev + aes-key: PiqqlGdEblw5Gv1RJ5qcTnhKUjFw9YNkBMAX6CIw6Me + callback: https://api.gin-vue-admin.com/wechat/callback +pay-list: + - type: wxpay + alias-name: wxpay-1 + app-id: wx3d21df18d7f8f9fc + mch-id: 1646874753 + v3-key: 1a3sd8561d5179Df152D4789aD38wG9s + cert-path: /resource/cert/apiclient_cert.pem + key-path: /resource/cert/apiclient_key.pem + notify-url: http://lckt.hnlc5588.cn/app_order/notify + serial-no: 59A891FB403EC7A1CF2090DB9C8EC704BD43B101 + - type: wxpay2 + alias-name: wxpay-2 + app-id: 2 + mch-id: 2 + v3-key: 2 + cert-path: 2 + key-path: 2 + notify-url: 2 + serial-no: 2 \ No newline at end of file diff --git a/main.go b/main.go index 1a82446..f0d9468 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "git.echol.cn/loser/lckt/core" "git.echol.cn/loser/lckt/global" "git.echol.cn/loser/lckt/initialize" + "git.echol.cn/loser/lckt/utils/wechat" _ "go.uber.org/automaxprocs" "go.uber.org/zap" ) @@ -44,6 +45,10 @@ func initializeSystem() { global.GVA_DB = initialize.Gorm() // gorm连接数据库 initialize.Timer() initialize.DBList() + + wechat.InitWechatPay() + wechat.InitWeOfficial() + initialize.SetupHandlers() // 注册全局函数 if global.GVA_DB != nil { initialize.RegisterTables() // 初始化表