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