Replies: 1 comment
-
直接 $app->getAccessToken()->refresh(); 或替换 use EasyWeChat\OfficialAccount\AccessToken;
$accessToken = new AccessToken(
appId: $app->getAccount()->getAppId(),
secret: $app->getAccount()->getSecret(),
cache: $app->getCache(),
httpClient: $app->getHttpClient(),
);
$app->setAccessToken($accessToken) https://github.com/w7corp/easywechat/blob/6.x/src/OfficialAccount/Application.php#L140-L145 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
api请求提示access_token 无效,发现是access_token失效了, 请问这种情况怎么刷新AccessToken?
也没有关于6.X版本的缓存说明,只有等过期才能操作?
Beta Was this translation helpful? Give feedback.
All reactions