Replies: 1 comment
-
是自动刷新,推测你在开发环境 也 运行了程序获取了 Token ,导致了线上失效。 开发环境 配置一个接口获取 线上的 token,/ 或者统一一个 线上线下都能访问的 ew 缓存 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
$app = Factory::miniProgram($config); $accessToken = $app->access_token; $token = $accessToken->getToken();
我这样写,但是有时候会出现accessToken过期的错误。
Beta Was this translation helpful? Give feedback.
All reactions