|
@@ -1,5 +1,6 @@
|
|
|
package cn.com.ctop.common.module.utils;
|
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import lombok.val;
|
|
|
import me.chanjar.weixin.common.error.WxErrorException;
|
|
|
import me.chanjar.weixin.cp.api.WxCpService;
|
|
@@ -8,7 +9,7 @@ import me.chanjar.weixin.cp.bean.WxCpMessage;
|
|
|
import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl;
|
|
|
|
|
|
import java.util.List;
|
|
|
-
|
|
|
+@Slf4j
|
|
|
public class CorpWexinUtils {
|
|
|
private static WxCpService wxCpService;
|
|
|
|
|
@@ -41,6 +42,7 @@ public class CorpWexinUtils {
|
|
|
try {
|
|
|
wxCpService.messageSend(message);
|
|
|
} catch (WxErrorException e) {
|
|
|
+ log.error("发送信息失败,userId:{}",userId);
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
@@ -62,6 +64,7 @@ public class CorpWexinUtils {
|
|
|
try {
|
|
|
wxCpService.messageSend(message);
|
|
|
} catch (WxErrorException e) {
|
|
|
+ log.error("发送信息失败,userId:{}",weChatId);
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
|