Explorar o código

fix wechat token from cache option

ls %!s(int64=2) %!d(string=hai) anos
pai
achega
9b62990ff8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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