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

add: 自定义获取 access token 方法

This commit is contained in:
zdpdpdp
2019-05-21 12:47:31 +08:00
parent eae6caadb2
commit 81f26cd6dc
3 changed files with 43 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ type Context struct {
//jsAPITicket 读写锁 同一个AppID一个
jsAPITicketLock *sync.RWMutex
//自定义获取 access token 的方法
accessTokenFunc CustomGetAccessToken
}
// Query returns the keyed url query value if it exists