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

将小程序获取ak的方式也抽象出来

This commit is contained in:
silenceper
2020-05-25 22:00:51 +08:00
parent b599e93c5b
commit 972dec0406
5 changed files with 15 additions and 104 deletions

View File

@@ -15,6 +15,8 @@ const (
accessTokenURL = "https://api.weixin.qq.com/cgi-bin/token"
//CacheKeyOfficialAccountPrefix 微信公众号cache key前缀
CacheKeyOfficialAccountPrefix = "gowechat_officialaccount_"
//CacheKeyMiniProgramPrefix 小程序cache key前缀
CacheKeyMiniProgramPrefix = "gowechat_miniprogram_"
)
//DefaultAccessToken 默认AccessToken 获取