From 4574316eee8a493996539d8b849be74ded1e524a Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Wed, 27 Dec 2023 11:12:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=B5=B7=E5=BA=B7=E7=A9=BA?= =?UTF-8?q?=E6=8C=87=E9=92=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../keyProjects/PlatformvideomanagementController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java b/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java index 3bf99a20..9b536ed7 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java @@ -8,6 +8,7 @@ import com.zcloud.util.Tools; import com.zcloud.util.hk.HKUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; +import org.springframework.util.ObjectUtils; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -54,6 +55,9 @@ public class PlatformvideomanagementController extends BaseController { Map map = new HashMap(); PageData pd =this.getPageData(); map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"hls"); + if(!ObjectUtils.isEmpty(map)){ + map = new HashMap(); + } map.put("result", "success"); return map; } @@ -67,6 +71,9 @@ public class PlatformvideomanagementController extends BaseController { Map map = new HashMap(); PageData pd =this.getPageData(); map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"rtsp"); + if(!ObjectUtils.isEmpty(map)){ + map = new HashMap(); + } map.put("result", "success"); return map; } @@ -80,6 +87,9 @@ public class PlatformvideomanagementController extends BaseController { Map map = new HashMap(); PageData pd =this.getPageData(); map = HKUtil.cameraSearch(pd); + if(!ObjectUtils.isEmpty(map)){ + map = new HashMap(); + } map.put("result", "success"); return map; }