From c23932eb00edfa5f734b0d17eced838c5c7577c0 Mon Sep 17 00:00:00 2001 From: 648540858 <456PANlinlin> Date: 星期三, 17 十一月 2021 22:58:41 +0800 Subject: [PATCH] #221 --- src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java index 84431dd..5af0837 100644 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java @@ -52,10 +52,10 @@ @GetMapping("/server_config") public ResponseEntity<JSONObject> serverConfig() { JSONObject result = new JSONObject(); - result.put("deviceIp", sipConfig.getSipIp()); - result.put("devicePort", sipConfig.getSipPort()); - result.put("username", sipConfig.getSipId()); - result.put("password", sipConfig.getSipPassword()); + result.put("deviceIp", sipConfig.getIp()); + result.put("devicePort", sipConfig.getPort()); + result.put("username", sipConfig.getId()); + result.put("password", sipConfig.getPassword()); return new ResponseEntity<>(result, HttpStatus.OK); } @@ -73,9 +73,9 @@ }) public PageInfo<ParentPlatform> platforms(@PathVariable int page, @PathVariable int count){ - if (logger.isDebugEnabled()) { - logger.debug("鏌ヨ鎵�鏈変笂绾ц澶嘇PI璋冪敤"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("鏌ヨ鎵�鏈変笂绾ц澶嘇PI璋冪敤"); +// } return storager.queryParentPlatformList(page, count); } @@ -187,9 +187,9 @@ @ResponseBody public ResponseEntity<String> exitPlatform(@PathVariable String serverGBId){ - if (logger.isDebugEnabled()) { - logger.debug("鏌ヨ涓婄骇骞冲彴鏄惁瀛樺湪API璋冪敤锛�" + serverGBId); - } +// if (logger.isDebugEnabled()) { +// logger.debug("鏌ヨ涓婄骇骞冲彴鏄惁瀛樺湪API璋冪敤锛�" + serverGBId); +// } ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(serverGBId); return new ResponseEntity<>(String.valueOf(parentPlatform != null), HttpStatus.OK); } @@ -224,9 +224,9 @@ @RequestParam(required = false) Boolean choosed, @RequestParam(required = false) Boolean channelType){ - if (logger.isDebugEnabled()) { - logger.debug("鏌ヨ鎵�鏈夋墍鏈夐�氶亾API璋冪敤"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("鏌ヨ鎵�鏈夋墍鏈夐�氶亾API璋冪敤"); +// } PageInfo<ChannelReduce> channelReduces = null; if (platformId != null ) { channelReduces = storager.queryAllChannelList(page, count, query, online, channelType, platformId, choosed); -- Gitblit v1.8.0