提交 679188bb 作者: 沈振路

链接被替换时发送报警

上级 b0acf056
...@@ -99,7 +99,7 @@ public class DelayCustomerAcquisitionListener implements ApplicationListener<Acq ...@@ -99,7 +99,7 @@ public class DelayCustomerAcquisitionListener implements ApplicationListener<Acq
} }
if (update) { if (update) {
// 发送报警信息 // 发送报警信息
String msg = "【延时客服-获客链接替换】公众号:" + authorizerInfo.getAppid() + " 获客链接:" + fromPath + " 已被替换为:" + toPath; String msg = "【延时客服-获客链接替换】公众号:" + authorizerInfo.getNickName() + " 获客链接:" + fromPath + " 已被替换为:" + toPath;
WeChatTextDTO cover = new WeChatTextDTO().cover(msg, null, null); WeChatTextDTO cover = new WeChatTextDTO().cover(msg, null, null);
WeChatUtils.sendErrorMessage(cover, "9934244e-9694-4a0c-95dd-ddd6ca4bd959"); WeChatUtils.sendErrorMessage(cover, "9934244e-9694-4a0c-95dd-ddd6ca4bd959");
} }
......
...@@ -106,7 +106,7 @@ public class FollowReplyAcquisitionListener implements ApplicationListener<Acqui ...@@ -106,7 +106,7 @@ public class FollowReplyAcquisitionListener implements ApplicationListener<Acqui
if (update) { if (update) {
// 发送报警信息 // 发送报警信息
String msg = "【关回-获客链接替换】公众号:" + authorizerInfo.getAppid() + " 获客链接:" + fromPath + " 已被替换为:" + toPath; String msg = "【关回-获客链接替换】公众号:" + authorizerInfo.getNickName() + " 获客链接:" + fromPath + " 已被替换为:" + toPath;
WeChatTextDTO cover = new WeChatTextDTO().cover(msg, null, null); WeChatTextDTO cover = new WeChatTextDTO().cover(msg, null, null);
WeChatUtils.sendErrorMessage(cover, "9934244e-9694-4a0c-95dd-ddd6ca4bd959"); WeChatUtils.sendErrorMessage(cover, "9934244e-9694-4a0c-95dd-ddd6ca4bd959");
} }
......
...@@ -104,7 +104,7 @@ public class KeywordAcquisitionListener implements ApplicationListener<Acquisiti ...@@ -104,7 +104,7 @@ public class KeywordAcquisitionListener implements ApplicationListener<Acquisiti
if (update) { if (update) {
// 发送报警信息 // 发送报警信息
String msg = "【关键词-获客链接替换】公众号:" + authorizerInfo.getAppid() + " 获客链接:" + fromPath + " 已被替换为:" + toPath; String msg = "【关键词-获客链接替换】公众号:" + authorizerInfo.getNickName() + " 获客链接:" + fromPath + " 已被替换为:" + toPath;
WeChatTextDTO cover = new WeChatTextDTO().cover(msg, null, null); WeChatTextDTO cover = new WeChatTextDTO().cover(msg, null, null);
WeChatUtils.sendErrorMessage(cover, "9934244e-9694-4a0c-95dd-ddd6ca4bd959"); WeChatUtils.sendErrorMessage(cover, "9934244e-9694-4a0c-95dd-ddd6ca4bd959");
} }
......
...@@ -28,14 +28,12 @@ public class WeChatUtils { ...@@ -28,14 +28,12 @@ public class WeChatUtils {
Map<String, String> params = getParams(key); Map<String, String> params = getParams(key);
try { try {
String s = HttpClientUtil.allElementPost(WO_COM_API_URL, message, params, null, String.class); String s = HttpClientUtil.allElementPost(WO_COM_API_URL, message, params, null, String.class);
log.info("sendErrorMessage response: {}", s);
} catch (Exception e) { } catch (Exception e) {
log.error("sendErrorMessage error: {}", e.getMessage()); log.error("sendErrorMessage error: {}", e.getMessage());
} }
} }
public static void sendErrorMessage(WeChatTextDTO woComDTO, String key) { public static void sendErrorMessage(WeChatTextDTO woComDTO, String key) {
log.info("报警机器人请求参数: {}", JSONUtil.toJsonStr(woComDTO));
sendErrorMessage(JSONUtil.toJsonStr(woComDTO), key); sendErrorMessage(JSONUtil.toJsonStr(woComDTO), key);
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论