From 963483d5343dcf6668739e9c9e15bcee18caa365 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Mon, 20 Jun 2022 10:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=8F=91=E9=80=81=E7=9A=84?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E7=9F=AD=E4=BF=A1=E9=80=9A=E7=9F=A5=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xkrs/service/impl/FirePointServiceImpl.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java index 1a6b33b..c435796 100644 --- a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java @@ -366,14 +366,18 @@ public class FirePointServiceImpl implements FirePointService { } } if (weixinIdList.size() > 0) { + StringBuilder stringBuilder = new StringBuilder("发送微信消息通知:\n"); String messageContent = getMessageContent(firePointEntity); for (String weixinId : weixinIdList) { + stringBuilder.append(weixinId).append("\n"); try { WDWxSendMsgUtil.sendMsg(weixinId, messageContent, 0); } catch (Exception e) { e.printStackTrace(); } } + stringBuilder.append("火情信息:").append(messageContent); + log.info(stringBuilder.toString()); } } @@ -448,6 +452,12 @@ public class FirePointServiceImpl implements FirePointService { if (telephoneList.size() > 0) { String[] telephoneArray = telephoneList.toArray(new String[]{}); SendSms.sendSmsToUser(telephoneArray, "1425995", new String[]{firePointEntity.getFirePointAddress()}); + StringBuilder stringBuilder = new StringBuilder("发送短信消息通知:\n"); + for (String telephone : telephoneArray) { + stringBuilder.append("telephone:").append(telephone).append("\n"); + } + stringBuilder.append("短信模版ID:1425995\n").append("短信内容:").append(firePointEntity.getFirePointAddress()); + log.info(stringBuilder.toString()); } }