|
|
@ -42,8 +42,7 @@ public class WeChatNotifyController { |
|
|
|
componentVerifyTicketService.getComponentAccessToken(accessTokenCountFlag); |
|
|
|
log.info("已成功获取到【component_access_token】......"); |
|
|
|
}catch (Exception e){ |
|
|
|
log.error("定时刷新component_access_token失败:".concat(ExceptionUtils.getErrorStackTrace(e))); |
|
|
|
throw e; |
|
|
|
log.warn("定时刷新component_access_token失败:".concat(ExceptionUtils.getErrorStackTrace(e))); |
|
|
|
}finally { |
|
|
|
distributedLock.unLock(lock); |
|
|
|
} |
|
|
@ -74,8 +73,7 @@ public class WeChatNotifyController { |
|
|
|
componentVerifyTicketService.refreshToken(); |
|
|
|
log.info("刷新/获取接口调用令牌......成功了"); |
|
|
|
}catch (Exception e){ |
|
|
|
log.error("定时刷新authorizer_access_token失败:".concat(ExceptionUtils.getErrorStackTrace(e))); |
|
|
|
throw e; |
|
|
|
log.warn("定时刷新authorizer_access_token失败:".concat(ExceptionUtils.getErrorStackTrace(e))); |
|
|
|
}finally { |
|
|
|
distributedLock.unLock(lock); |
|
|
|
} |
|
|
|