From a603f9978632fd0a5806ac87389fe8dd254e23b9 Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: 星期三, 07 七月 2021 18:03:05 +0800 Subject: [PATCH] 修复配置文件赋值失败 --- src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java index 0908133..bd8485d 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java @@ -15,10 +15,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -53,6 +51,9 @@ @Autowired private IRedisCatchStorage redisCatchStorage; + + @Autowired + private ZLMRESTfulUtils zlmresTfulUtils; @Autowired private ZLMServerManger zlmServerManger; @@ -335,8 +336,7 @@ if (userSetup.isAutoApplyPlay()) { String app = json.getString("app"); String streamId = json.getString("stream"); - StreamInfo streamInfo = redisCatchStorage.queryPlayByStreamId(streamId); - if ("rtp".equals(app) && streamId.contains("gb_play") && streamInfo == null) { + if ("rtp".equals(app) && streamId.contains("gb_play") ) { String[] s = streamId.split("_"); if (s.length == 4) { String deviceId = s[2]; @@ -351,7 +351,6 @@ } } - } } -- Gitblit v1.8.0