From 016a9a58d9627697102ab525b60646287cca54b6 Mon Sep 17 00:00:00 2001 From: Mongo Date: Mon, 30 Oct 2017 21:50:51 +0800 Subject: [PATCH] add config copy --- wechat.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wechat.go b/wechat.go index 7c84644..02e3a34 100644 --- a/wechat.go +++ b/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))