diff options
| author | houjinchuan <[email protected]> | 2021-12-15 15:18:23 +0800 |
|---|---|---|
| committer | houjinchuan <[email protected]> | 2021-12-15 15:18:23 +0800 |
| commit | 4517d2744f2fb35c328a412dfaa4b6cb48b101eb (patch) | |
| tree | 8e349575bf1aee6040dd92e34841c61143970513 /src | |
| parent | 4316fc027db2e4d18ab5ee1234171aaf61b56335 (diff) | |
修复成功发送文件,日志打印错误的bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/com/zdjizhi/syncfile/utils/HttpUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/zdjizhi/syncfile/utils/HttpUtil.java b/src/main/java/com/zdjizhi/syncfile/utils/HttpUtil.java index df8e6ce..98c9a07 100644 --- a/src/main/java/com/zdjizhi/syncfile/utils/HttpUtil.java +++ b/src/main/java/com/zdjizhi/syncfile/utils/HttpUtil.java @@ -71,7 +71,7 @@ public class HttpUtil { String responseEntity = EntityUtils.toString(response.getEntity(), "UTF-8"); JSONObject jsonObj = (JSONObject) JSON.parse(responseEntity); if(jsonObj!=null){ - if (responseEntity.contains("\"code\": 200")) { + if (responseEntity.contains("\"code\":200")) { PostFileResponse postFileResponse = JSON.toJavaObject(jsonObj, PostFileResponse.class); isSuccess = true; log.info("post file success. current url: {}, msg: {}", url, responseEntity); |
