提交代码

dev-discount
胡锐 2 years ago
parent 7961dff622
commit fb342ad750
  1. 2
      hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java

@ -120,10 +120,12 @@ public class HttpsUtils {
if (entity != null) { if (entity != null) {
InputStream instream = entity.getContent(); InputStream instream = entity.getContent();
result = IOUtils.toString(instream, "UTF-8"); result = IOUtils.toString(instream, "UTF-8");
instream.close();
} }
return JSON.parseObject(result); return JSON.parseObject(result);
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(),e); log.error(e.getMessage(),e);
} finally {
} }
return null; return null;
} }

Loading…
Cancel
Save