From 8ef0619d9a17840dea5bd3ff3a41929b6ceeeb65 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Fri, 19 Aug 2022 17:22:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9C=A8=E7=BA=BF=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=9A=84=E7=AD=89=E6=96=B0=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/vmanager/gb28181/device/DeviceQuery.java | 2 -- src/main/resources/all-application.yml | 9 ++++++--- src/main/resources/application-docker.yml | 3 --- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java index b3c8ef9e..8a64684d 100644 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java @@ -502,7 +502,6 @@ public class DeviceQuery { return new ResponseEntity<>(pageInfo,HttpStatus.OK); } - /** * 查询国标树下的通道 * @param deviceId 设备ID @@ -519,7 +518,6 @@ public class DeviceQuery { @GetMapping("/tree/channel/{deviceId}") public ResponseEntity getChannelInTreeNode(@PathVariable String deviceId, @RequestParam(required = false) String parentId, int page, int count){ - if (page <= 0) { page = 1; } diff --git a/src/main/resources/all-application.yml b/src/main/resources/all-application.yml index c9e48953..6a608f43 100644 --- a/src/main/resources/all-application.yml +++ b/src/main/resources/all-application.yml @@ -186,9 +186,12 @@ user-settings: # 是否将日志存储进数据库 logInDatebase: true -# 在线文档: swagger-ui(生产环境建议关闭) -doc: - enabled: true +# 关闭在线文档(生产环境建议关闭) +springdoc: + api-docs: + enabled: false + swagger-ui: + enabled: false # 版本信息, 不需修改 version: diff --git a/src/main/resources/application-docker.yml b/src/main/resources/application-docker.yml index ecd9738c..06b78100 100644 --- a/src/main/resources/application-docker.yml +++ b/src/main/resources/application-docker.yml @@ -79,9 +79,6 @@ user-settings: record-push-live: true auto-apply-play: true -# 在线文档: swagger-ui(生产环境建议关闭) -doc: - enabled: true # 版本信息, 不需修改 version: