From 6ac131bcf6ec034ffc9e5813c68c56c6e5c32b70 Mon Sep 17 00:00:00 2001
From: xiaoxie <hotcoffie@163.com>
Date: 星期三, 01 十二月 2021 22:45:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0

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

diff --git a/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java b/src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java
similarity index 94%
rename from src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java
rename to src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java
index 264f2b2..2a021a2 100644
--- a/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java
+++ b/src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java
@@ -1,4 +1,4 @@
-package com.genersoft.iot.vmp.web;
+package com.genersoft.iot.vmp.web.gb28181;
 
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
@@ -50,11 +50,9 @@
                             @RequestParam(required = false)String q,
                             @RequestParam(required = false)Boolean online ){
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
-        }
-
-        logger.debug("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
+//        if (logger.isDebugEnabled()) {
+//            logger.debug("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
+//        }
         JSONObject result = new JSONObject();
         List<Device> devices;
         if (start == null || limit ==null) {
@@ -75,7 +73,7 @@
             deviceJsonObject.put("ChannelCount", device.getChannelCount());
             deviceJsonObject.put("RecvStreamIP", "");
             deviceJsonObject.put("CatalogInterval", 3600); // 閫氶亾鐩綍鎶撳彇鍛ㄦ湡
-            deviceJsonObject.put("SubscribeInterval", 0); // 璁㈤槄鍛ㄦ湡(绉�), 0 琛ㄧず鍚庡彴涓嶅懆鏈熻闃�
+            deviceJsonObject.put("SubscribeInterval", device.getSubscribeCycleForCatalog()); // 璁㈤槄鍛ㄦ湡(绉�), 0 琛ㄧず鍚庡彴涓嶅懆鏈熻闃�
             deviceJsonObject.put("Online", device.getOnline() == 1);
             deviceJsonObject.put("Password", "");
             deviceJsonObject.put("MediaTransport", device.getTransport());
@@ -100,9 +98,9 @@
                                    @RequestParam(required = false)String q,
                                    @RequestParam(required = false)Boolean online ){
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
-        }
+//        if (logger.isDebugEnabled()) {
+//            logger.debug("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
+//        }
         JSONObject result = new JSONObject();
         // 鏌ヨ璁惧鏄惁瀛樺湪
         Device device = storager.queryVideoDevice(serial);

--
Gitblit v1.8.0