瀏覽代碼

add config copy

Mongo 8 年之前
父節點
當前提交
016a9a58d9
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      wechat.go

+ 3 - 0
wechat.go

@@ -45,6 +45,9 @@ func copyConfigToContext(cfg *Config, context *context.Context) {
 	context.AppSecret = cfg.AppSecret
 	context.Token = cfg.Token
 	context.EncodingAESKey = cfg.EncodingAESKey
+	context.PayMchID = cfg.PayMchID
+	context.PayKey = cfg.PayKey
+	context.PayNotifyURL = cfg.PayNotifyURL
 	context.Cache = cfg.Cache
 	context.SetAccessTokenLock(new(sync.RWMutex))
 	context.SetJsAPITicketLock(new(sync.RWMutex))