修复成功发送文件,日志打印错误的bug

This commit is contained in:
houjinchuan
2021-12-15 15:18:23 +08:00
parent 4316fc027d
commit 4517d2744f

View File

@@ -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);