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()); } }