From f66bf823fa2b03732858819d9fdf086fb9e0b6a2 Mon Sep 17 00:00:00 2001
From: chenjialing <595168663@qq.com>
Date: 星期三, 20 七月 2022 17:02:55 +0800
Subject: [PATCH] 优化----设备下线,通道状态也切换至离线状态

---
 src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java b/src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java
index eed3763..35ec640 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java
@@ -25,7 +25,9 @@
      * */
     public static String getChannelIdFromHeader(Request request) {
         Header subject = request.getHeader("subject");
-        if (subject == null) return null;
+        if (subject == null) {
+            return null;
+        }
         return ((Subject) subject).getSubject().split(":")[0];
     }
 

--
Gitblit v1.8.0