Commit e0c8216f58873bf8b02c5e6e20746a06ba6db579
1 parent
48fad358
恢复默认判断
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/notify/cmd/AlarmNotifyMessageHandler.java
| ... | ... | @@ -181,7 +181,8 @@ public class AlarmNotifyMessageHandler extends SIPRequestProcessorParent impleme |
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | logger.info("[收到报警通知]内容:{}", JSON.toJSONString(deviceAlarm)); |
| 184 | - if (DeviceAlarmMethod.typeOf(Integer.parseInt(deviceAlarm.getAlarmMethod())) !=null) { | |
| 184 | + // 作者自用判断,其他小伙伴需要此消息可以自行修改,但是不要提在pr里 | |
| 185 | + if (DeviceAlarmMethod.Other.getVal() == Integer.parseInt(deviceAlarm.getAlarmMethod())) { | |
| 185 | 186 | // 发送给平台的报警信息。 发送redis通知 |
| 186 | 187 | logger.info("[发送给平台的报警信息]内容:{}", JSONObject.toJSONString(deviceAlarm)); |
| 187 | 188 | AlarmChannelMessage alarmChannelMessage = new AlarmChannelMessage(); | ... | ... |