From d50dd3fe8465df67986ab49bab008c7e371f63cb Mon Sep 17 00:00:00 2001
From: xiaoQQya <xiaoQQya@126.com>
Date: 星期六, 04 二月 2023 18:12:25 +0800
Subject: [PATCH] perf(ZLMRESTfulUtils): 修改OkHttpClient 读取超时时间,解决点播时截图快照获取超时的问题

---
 src/main/java/com/genersoft/iot/vmp/media/zlm/AssistRESTfulUtils.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/AssistRESTfulUtils.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/AssistRESTfulUtils.java
index 36ae1b8..5ba5191 100644
--- a/src/main/java/com/genersoft/iot/vmp/media/zlm/AssistRESTfulUtils.java
+++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/AssistRESTfulUtils.java
@@ -1,7 +1,7 @@
 package com.genersoft.iot.vmp.media.zlm;
 
-import com.alibaba.fastjson.JSON;
-import com.alibaba.fastjson.JSONObject;
+import com.alibaba.fastjson2.JSON;
+import com.alibaba.fastjson2.JSONObject;
 import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
 import okhttp3.*;
 import okhttp3.logging.HttpLoggingInterceptor;
@@ -50,7 +50,7 @@
         if (mediaServerItem == null) {
             return null;
         }
-        if (ObjectUtils.isEmpty(mediaServerItem.getRecordAssistPort())) {
+        if (mediaServerItem.getRecordAssistPort() <= 0) {
             logger.warn("鏈惎鐢ˋssist鏈嶅姟");
             return null;
         }

--
Gitblit v1.8.0