From c5ff8113780960c55de98c0b9f3b1f895dd828e2 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期三, 08 三月 2023 13:28:54 +0800
Subject: [PATCH] 优化兼容接口

---
 src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java b/src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java
index e5f4227..57c7979 100644
--- a/src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java
+++ b/src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java
@@ -20,7 +20,7 @@
  * API鍏煎锛氳澶囦俊鎭�
  */
 @SuppressWarnings("unchecked")
-@CrossOrigin
+
 @RestController
 @RequestMapping(value = "/api/v1/device")
 public class ApiDeviceController {
@@ -109,12 +109,6 @@
 //        }
         JSONObject result = new JSONObject();
         // 鏌ヨ璁惧鏄惁瀛樺湪
-        Device device = storager.queryVideoDevice(serial);
-        if (device == null) {
-            result.put("ChannelCount", 0);
-            result.put("ChannelList", "[]");
-            return result;
-        }
         List<DeviceChannel> deviceChannels;
         List<String> channelIds = null;
         if (!StringUtils.isEmpty(code)) {

--
Gitblit v1.8.0