Commit c131d10d authored by 唐峰's avatar 唐峰

定时获取微信token 增加一条日志

parent 06f67c35
...@@ -42,6 +42,7 @@ public class WechatTokenReloadJobHandler { ...@@ -42,6 +42,7 @@ public class WechatTokenReloadJobHandler {
if (result.containsKey("errcode")) { if (result.containsKey("errcode")) {
log.error("微信获取token失败:{}", i.getAppId()); log.error("微信获取token失败:{}", i.getAppId());
} else { } else {
log.info("定时获取微信token信息:appId:{}, 获取结果:{}",i.getAppId(),JSON.toJSONString(result));
redisTemplate.opsForValue().set(Constants.WECHAT_ACCESS_TOKEN_REDIS+i.getTenantId()+":"+i.getAppId(), JSON.toJSONString(result)); redisTemplate.opsForValue().set(Constants.WECHAT_ACCESS_TOKEN_REDIS+i.getTenantId()+":"+i.getAppId(), JSON.toJSONString(result));
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment