Browse Source

fix wechat token from cache option

ls 2 years ago
parent
commit
9b62990ff8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client.go

+ 2 - 2
client.go

@@ -23,8 +23,8 @@ func NewClient(appID, appSecret, token, encodingAESKey string) *Client {
 }
 
 // UseCacheToken token from cache
-func (wc *Client) UseCacheToken() {
-	wc.UseCacheToken = true
+func (wc *Client) UseCacheToken(ok bool) {
+	wc.UseCacheToken = ok
 }
 
 // getToken get token