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: