From 0c2c87d42c2fedd074d0a90c0425dca2f6ecfe37 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期三, 10 十一月 2021 14:52:12 +0800 Subject: [PATCH] okhttp返回非200的结果时手动关闭response --- src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java b/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java index 09c94bd..ef83976 100644 --- a/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java +++ b/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java @@ -14,7 +14,7 @@ import java.util.List; /** - * 鍏煎LiveGBS鐨凙PI锛氳澶囦俊鎭� + * API鍏煎锛氳澶囦俊鎭� */ @SuppressWarnings("unchecked") @CrossOrigin @@ -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) { @@ -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