Explorar el Código

fix wechat token from cache option

ls hace 2 años
padre
commit
9b62990ff8
Se han modificado 1 ficheros con 2 adiciones y 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