From 1947edb69af115eed2cbb4b2b9f60075fce18cbb Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期五, 16 十月 2020 11:24:36 +0800
Subject: [PATCH] 引入lombok框架 优化redis存储结构

---
 src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 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 01aa341..775cb0f 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
@@ -9,6 +9,7 @@
 import org.springframework.stereotype.Component;
 
 import java.io.IOException;
+import java.net.ConnectException;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Map;
@@ -55,7 +56,10 @@
                     responseJSON = JSON.parseObject(responseStr);
                 }
             }
-        } catch (IOException e) {
+        } catch (ConnectException e) {
+            logger.error(String.format("杩炴帴ZLM澶辫触: %s, %s", e.getCause().getMessage(), e.getMessage()));
+            logger.info("璇锋鏌edia閰嶇疆骞剁‘璁LM宸插惎鍔�...");
+        }catch (IOException e) {
             e.printStackTrace();
         }
 
@@ -83,4 +87,8 @@
     public JSONObject setServerConfig(Map<String, Object> param){
         return sendPost("setServerConfig",param);
     }
+
+    public JSONObject openRtpServer(Map<String, Object> param){
+        return sendPost("openRtpServer",param);
+    }
 }

--
Gitblit v1.8.0