|
|
@ -433,6 +433,7 @@ public class DhDeviceUtil { |
|
|
|
DhChannelPageFormDTO dto = new DhChannelPageFormDTO(); |
|
|
|
dto.setPageSize(100); |
|
|
|
dto.setPageNum(1); |
|
|
|
dto.setDeviceGenre("0"); |
|
|
|
|
|
|
|
String data = HttpClientManager.getInstance().sendPostByJSONAndHeader(url, JSON.toJSONString(dto), paramsMap).getData(); |
|
|
|
|
|
|
@ -688,7 +689,7 @@ public class DhDeviceUtil { |
|
|
|
DataInputStream dataInputStream = new DataInputStream(url.openStream()); |
|
|
|
byte[] originBytes = toByteArray(dataInputStream); |
|
|
|
|
|
|
|
fileBytes = compressPicCycle(originBytes, 100L, 0.3); |
|
|
|
fileBytes = compressPicCycle(originBytes, 100L, 0.1); |
|
|
|
} catch (IOException e) { |
|
|
|
logger.error("图片上传异常", e); |
|
|
|
throw new RenException("图片上传异常"); |
|
|
|