From 5a30f6cd86def64b7f186c5267772ba39f0ac977 Mon Sep 17 00:00:00 2001 From: zxb <919411476@qq.com> Date: Wed, 18 Oct 2023 15:43:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A7=E8=81=94=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../event/request/impl/message/MessageRequestProcessor.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java index 91ea5f11..cbb7def3 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java @@ -86,7 +86,10 @@ public class MessageRequestProcessor extends SIPRequestProcessorParent implement try { rootElement = getRootElement(evt); if (rootElement != null) { - deviceId = getText(rootElement, "DeviceID"); + String cmdType = getText(rootElement, "CmdType"); + if(cmdType.equalsIgnoreCase("MediaStatus")){ + deviceId = getText(rootElement, "DeviceID"); + } } } catch (Exception ignore) {} }