浏览代码

临时提交

648540858 1 年之前
父节点
当前提交
2f9dc36405

+ 6 - 0
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/NotifyRequestForCatalogProcessor.java

@@ -186,6 +186,9 @@ public class NotifyRequestForCatalogProcessor extends SIPRequestProcessorParent
 									channel.setUpdateTime(DateUtil.getNow());
 									updateChannelMap.put(catalogChannelEvent.getChannel().getDeviceId(), channel);
 								} else {
+									catalogChannelEvent.getChannel().setUpdateTime(DateUtil.getNow());
+									catalogChannelEvent.getChannel().setCreateTime(DateUtil.getNow());
+
 									addChannelMap.put(catalogChannelEvent.getChannel().getDeviceId(), catalogChannelEvent.getChannel());
 									if (userSetting.getDeviceStatusNotify()) {
 										// 发送redis消息
@@ -213,8 +216,11 @@ public class NotifyRequestForCatalogProcessor extends SIPRequestProcessorParent
 									channel.setId(deviceChannelForUpdate.getId());
 									channel.setHasAudio(deviceChannelForUpdate.isHasAudio());
 									channel.setUpdateTime(DateUtil.getNow());
+									channel.setUpdateTime(DateUtil.getNow());
 									updateChannelMap.put(catalogChannelEvent.getChannel().getDeviceId(), channel);
 								} else {
+									catalogChannelEvent.getChannel().setCreateTime(DateUtil.getNow());
+									catalogChannelEvent.getChannel().setUpdateTime(DateUtil.getNow());
 									addChannelMap.put(catalogChannelEvent.getChannel().getDeviceId(), catalogChannelEvent.getChannel());
 									if (userSetting.getDeviceStatusNotify()) {
 										// 发送redis消息