From a2e7cd0323ee7c8563b7a669ea51cce4081e86ab Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Fri, 3 Jan 2025 17:34:30 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=9B=86=E7=BE=A4]=20=E4=BF=AE=E5=A4=8Dcatalo?= =?UTF-8?q?g=20=E9=80=92=E5=BD=92=E5=BE=AA=E7=8E=AFBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/genersoft/iot/vmp/gb28181/event/EventPublisher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java b/src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java index cbf5c161..9b77f4a4 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java @@ -76,6 +76,9 @@ public class EventPublisher { } public void catalogEventPublish(Platform platform, List deviceChannels, String type) { + catalogEventPublish(platform, deviceChannels, type, true); + } + public void catalogEventPublish(Platform platform, List deviceChannels, String type, boolean share) { if (platform != null && !userSetting.getServerId().equals(platform.getServerId())) { // 指定了上级平台的推送,则发送到指定的设备,未指定的则全部发送, 接收后各自处理自己的 CatalogEvent outEvent = new CatalogEvent(this); @@ -103,7 +106,7 @@ public class EventPublisher { outEvent.setType(type); outEvent.setPlatform(platform); applicationEventPublisher.publishEvent(outEvent); - if (platform == null) { + if (platform == null && share) { // 如果没指定上级平台,则推送消息到所有在线的wvp处理自己含有的平台的目录更新 redisRpcService.catalogEventPublish(null, outEvent); }