|
|
|
|
@ -117,7 +117,8 @@ public class PushDataToWechatTask {
|
|
|
|
|
|
|
|
|
|
// 异常原因
|
|
|
|
|
Key4 key4 = new Key4(); |
|
|
|
|
key4.setValue(alarmRecords2.getContent().substring(0, 20)); |
|
|
|
|
String content = alarmRecords2.getContent(); |
|
|
|
|
key4.setValue(content.length() > 20 ? content.substring(0, 20) : content); |
|
|
|
|
pushMsgEntity.setKey4(key4); |
|
|
|
|
|
|
|
|
|
// 发生时间
|
|
|
|
|
@ -158,7 +159,8 @@ public class PushDataToWechatTask {
|
|
|
|
|
pushMsgEntity.setKey3(key3); |
|
|
|
|
|
|
|
|
|
Key4 key4 = new Key4(); |
|
|
|
|
key4.setValue(alarmRecords2.getContent().substring(0, 20)); |
|
|
|
|
String content = alarmRecords2.getContent(); |
|
|
|
|
key4.setValue(content.length() > 20 ? content.substring(0, 20) : content); |
|
|
|
|
pushMsgEntity.setKey4(key4); |
|
|
|
|
|
|
|
|
|
Key5 key5 = new Key5(); |
|
|
|
|
|