From ca58fc5a81c2529790c68405daf7740b2761d70b Mon Sep 17 00:00:00 2001 From: "alex.sung" Date: Thu, 1 Nov 2018 16:33:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=87=8F=E5=A4=A7=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=A1=88=EF=BC=8C=E5=8F=91=E9=80=81zip=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=88=B0=E4=BA=91=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/mainframe/InformationCollector.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/InformationCollector.java b/designer-realize/src/main/java/com/fr/design/mainframe/InformationCollector.java index 650762069..003a482b7 100644 --- a/designer-realize/src/main/java/com/fr/design/mainframe/InformationCollector.java +++ b/designer-realize/src/main/java/com/fr/design/mainframe/InformationCollector.java @@ -240,6 +240,22 @@ public class InformationCollector implements XMLReadable, XMLWriter { deleteFunctionRecords(currentTime); } } +// //先将发送压缩文件这段代码注释,之后提任务 + //大数据量下发送压缩zip数据不容易丢失 +// try { +// ObjectMapper objectMapper = new ObjectMapper(); +// String contentStr = objectMapper.writeValueAsString(content); +// InputStream inputStream = new ByteArrayInputStream(contentStr.getBytes("UTF-8")); +// String recordUrl = url+"?token=" + SiteCenterToken.generateToken() + "&content="+ IOUtils.inputStream2Bytes(IOUtils.toZipIn(inputStream)); +// +// String res = HttpToolbox.get(recordUrl); +// success = ComparatorUtils.equals(new JSONObject(res).get("status"), "success"); +// } catch (Exception e) { +// FineLoggerFactory.getLogger().error(e.getMessage(), e); +// } +// if (success) { +// deleteFunctionRecords(currentTime); +// } } private boolean sendFunctionRecord(String url, Map record) {