|
|
@@ -3,6 +3,7 @@ package com.zd.base.message.service.impl;
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.zd.base.files.bigupload.utils.FileUtils;
|
|
|
import com.zd.base.message.domain.UserOpenId;
|
|
|
import com.zd.base.message.properties.WeChatProperties;
|
|
|
import com.zd.base.message.service.IUserOpenIdService;
|
|
|
@@ -14,6 +15,8 @@ import com.zd.common.core.template.TemplateResult;
|
|
|
import com.zd.common.core.template.WxUserInfo;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.BoundValueOperations;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
@@ -41,6 +44,8 @@ public class WechatMsgSendServiceImpl implements IWechatMsgSendService {
|
|
|
|
|
|
private final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
+ private static final Logger log = LoggerFactory.getLogger(WechatMsgSendServiceImpl.class);
|
|
|
+
|
|
|
/**
|
|
|
* 微信获取openId的返回值
|
|
|
*/
|
|
|
@@ -277,7 +282,7 @@ public class WechatMsgSendServiceImpl implements IWechatMsgSendService {
|
|
|
}
|
|
|
accessToken = ops.get();
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ log.error("查询token缓存异常", e);
|
|
|
}
|
|
|
return accessToken;
|
|
|
}
|