1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 21:02:25 +08:00

add config copy

This commit is contained in:
Mongo
2017-10-30 21:50:51 +08:00
parent 0db6094b24
commit 016a9a58d9

View File

@@ -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))