|
|
@ -148,7 +148,7 @@ public class MessageServiceImpl implements MessageService { |
|
|
|
} |
|
|
|
} |
|
|
|
WxMessageDTO message = new WxMessageDTO(); |
|
|
|
WxMessageDTO message = new WxMessageDTO(); |
|
|
|
// 模板Id
|
|
|
|
// 模板Id
|
|
|
|
message.setTemplateId("hIgINCsjpG-gyCKh8wzwBWjR-hkbjkNLFTXQEsnR_Z8"); |
|
|
|
message.setTemplateId("Ce2YAZtX0UyoNrAag6CANtC8XQeLuil7domvJrUivhM"); |
|
|
|
// 微信消息跳转地址
|
|
|
|
// 微信消息跳转地址
|
|
|
|
message.setSkipUrl("http://baidu.com"); |
|
|
|
message.setSkipUrl("http://baidu.com"); |
|
|
|
// 机构Id
|
|
|
|
// 机构Id
|
|
|
@ -164,7 +164,7 @@ public class MessageServiceImpl implements MessageService { |
|
|
|
map.put("thing18",entity.getStationName()); |
|
|
|
map.put("thing18",entity.getStationName()); |
|
|
|
map.put("thing5",Optional.ofNullable(entity.getDeviceCode()).orElse("未知设备")); |
|
|
|
map.put("thing5",Optional.ofNullable(entity.getDeviceCode()).orElse("未知设备")); |
|
|
|
map.put("thing11",entity.getAlarmContext()); |
|
|
|
map.put("thing11",entity.getAlarmContext()); |
|
|
|
map.put("thing14", DictCache.getValue("alarm_source", entity.getAlarmType())); |
|
|
|
map.put("thing14", DictCache.getValue("alarm_source", entity.getAlarmSource())); |
|
|
|
map.put("time2",entity.getAlarmTime()); |
|
|
|
map.put("time2",entity.getAlarmTime()); |
|
|
|
message.setMap(map); |
|
|
|
message.setMap(map); |
|
|
|
// 消息内容
|
|
|
|
// 消息内容
|
|
|
|