|
@@ -6,6 +6,7 @@ import com.care.client.dto.MpTemplateMsgOriginalDTO;
|
|
import com.care.client.dto.WxTemplateDTO;
|
|
import com.care.client.dto.WxTemplateDTO;
|
|
import com.care.client.dto.WxUniformTemplateDTO;
|
|
import com.care.client.dto.WxUniformTemplateDTO;
|
|
import com.care.client.vo.WxAccessTokenVO;
|
|
import com.care.client.vo.WxAccessTokenVO;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
|
@@ -24,6 +25,7 @@ import java.security.SecureRandom;
|
|
/**
|
|
/**
|
|
* 微信接口访问工具封装
|
|
* 微信接口访问工具封装
|
|
*/
|
|
*/
|
|
|
|
+@Slf4j
|
|
public class WxTemplateUtil {
|
|
public class WxTemplateUtil {
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -131,7 +133,7 @@ public class WxTemplateUtil {
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
wxAccessTokenVO = null;
|
|
wxAccessTokenVO = null;
|
|
// 获取token失败
|
|
// 获取token失败
|
|
- System.out.println("获取token失败");
|
|
|
|
|
|
+ log.error("WxTemplateUtil获取token失败",e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return wxAccessTokenVO;
|
|
return wxAccessTokenVO;
|