access_token一定是两个小时才会失效,有没有随机失效的可能性?

小程序 文章 2022-01-24 21:00 550 0 全屏看文

AI助手支持GPT4.0

access_token一定是两个小时才会失效,有没有随机失效的可能性?The access_token must expire after two hours. Is there any possibility of random expiration?

access_token一定是两个小时才会失效,有没有随机失效的可能性?
框架类型 问题类型 操作时间 AppID
小程序 Bug 21小时前 wxf0cf434bf6205fe6

https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_access_token.html

框架类型 问题类型 操作时间 AppID 小程序 Bug 21小时前 wxf0cf434bf6205fe6 https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_access_token.html

回答:

tomheng:

可以判断错误码为token 失效时重新获取一次

拾忆:

除非自己重新调用接口获取新的,否则只有微信官方服务器出故障才会有别的可能性导致失效。

微盟:

access_token使用的越频繁有效的时间的越长

-EOF-

AI助手支持GPT4.0