系统优化

This commit is contained in:
hoteas
2022-04-20 18:36:05 +08:00
parent c368619e51
commit 3fdc3aac2e
9 changed files with 1701 additions and 13 deletions
+2 -1
View File
@@ -25,12 +25,13 @@ var h5Program *officialaccount.OfficialAccount
func InitApp(app Application) {
weixin = wechat.NewWechat()
memory := cache.NewMemory()
memoryMini := cache.NewMemory()
cfg := &config.Config{
AppID: app.Config.GetString("wechatMiniAppID"),
AppSecret: app.Config.GetString("wechatMiniAppSecret"),
//Token: "xxx",
//EncodingAESKey: "xxxx",
Cache: memory,
Cache: memoryMini,
}
h5cfg := &h5config.Config{
AppID: app.Config.GetString("wechatAppID"),