update
This commit is contained in:
+5
-5
@@ -18,11 +18,11 @@ func init() {
|
|||||||
wc := wechat.NewWechat()
|
wc := wechat.NewWechat()
|
||||||
memory := cache.NewMemory()
|
memory := cache.NewMemory()
|
||||||
cfg := &offConfig.Config{
|
cfg := &offConfig.Config{
|
||||||
AppID: wxmp.Get("app_id"),
|
AppID: wxmp.Get("app_id"),
|
||||||
AppSecret: wxmp.Get("app_secret"),
|
AppSecret: wxmp.Get("app_secret"),
|
||||||
Token: wxmp.Get("token"),
|
Token: wxmp.Get("token"),
|
||||||
// EncodingAESKey: wxmp.Get("encoding_aes_key"),
|
EncodingAESKey: wxmp.Get("encoding_aes_key"),
|
||||||
Cache: memory,
|
Cache: memory,
|
||||||
}
|
}
|
||||||
officialAccount := wc.GetOfficialAccount(cfg)
|
officialAccount := wc.GetOfficialAccount(cfg)
|
||||||
server := officialAccount.GetServer(c.Request, c.Writer)
|
server := officialAccount.GetServer(c.Request, c.Writer)
|
||||||
|
|||||||
Reference in New Issue
Block a user