🎨 优化更新部分注释

This commit is contained in:
Binary Wang 2020-04-04 14:40:50 +08:00
parent 7f6780a4e3
commit 2cd362dc40

View File

@ -345,9 +345,9 @@ public abstract class BaseWxMpServiceImpl<H, P> implements WxMpService, RequestH
WxError error = e.getError();
/*
* 发生以下情况时尝试刷新access_token
* 40001 获取access_token时AppSecret错误或者access_token无效
* 42001 access_token超时
* 40014 不合法的access_token请开发者认真比对access_token的有效性如是否过期或查看是否正在为恰当的公众号调用接口
* 40001 获取 access_token AppSecret 错误或者 access_token 无效请开发者认真比对 AppSecret 的正确性或查看是否正在为恰当的公众号调用接口
* 42001 access_token 超时请检查 access_token 的有效期请参考基础支持 - 获取 access_token access_token 的详细机制说明
* 40014 不合法的 access_token 请开发者认真比对 access_token 的有效性如是否过期或查看是否正在为恰当的公众号调用接口
*/
if (error.getErrorCode() == 42001 || error.getErrorCode() == 40001 || error.getErrorCode() == 40014) {
// 强制设置wxMpConfigStorage它的access token过期了这样在下一次请求里就会刷新access token