From 19e22cc155b073a6eea3846fbd43751454673014 Mon Sep 17 00:00:00 2001 From: 648540858 <18010473990@163.com> Date: Sun, 26 Sep 2021 15:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9D=E6=8D=AE=E9=98=BF=E9=87=8C=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=A7=84=E8=8C=83=EF=BC=8Cif=E5=90=8E=E5=BF=85?= =?UTF-8?q?=E9=A1=BB=E6=9C=89=E5=A4=A7=E6=8B=AC=E5=8F=B7=E3=80=82=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AF=BC=E5=8C=85=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/media/zlm/ZLMRESTfulUtils.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java index 71bb3177..b7e99677 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java @@ -14,6 +14,7 @@ import java.net.ConnectException; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import java.util.concurrent.TimeUnit; @Component public class ZLMRESTfulUtils { @@ -138,9 +139,15 @@ public class ZLMRESTfulUtils { public JSONObject getMediaList(MediaServerItem mediaServerItem, String app, String stream, String schema, RequestCallback callback){ Map param = new HashMap<>(); - if (app != null) param.put("app",app); - if (stream != null) param.put("stream",stream); - if (schema != null) param.put("schema",schema); + if (app != null) { + param.put("app",app); + } + if (stream != null) { + param.put("stream",stream); + } + if (schema != null) { + param.put("schema",schema); + } param.put("vhost","__defaultVhost__"); return sendPost(mediaServerItem, "getMediaList",param, callback); }