Browse Source

补充日志

alex.sung 5 years ago
parent
commit
a313085e02
  1. 4
      designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/solid/SolidCollector.java

4
designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/solid/SolidCollector.java

@ -51,10 +51,11 @@ public class SolidCollector {
if (WorkContext.getCurrent().isLocal()) { if (WorkContext.getCurrent().isLocal()) {
return; return;
} }
FineLoggerFactory.getLogger().info("start to get solid content from server...");
try { try {
String content = requestContent(); String content = requestContent();
if (StringUtils.isNotEmpty(content)) { if (StringUtils.isNotEmpty(content)) {
String cipherText = JSONFactory.createJSON(JSON.OBJECT).optString("data"); String cipherText = JSONFactory.createJSON(JSON.OBJECT, content).optString("data");
if(StringUtils.isNotEmpty(cipherText)){ if(StringUtils.isNotEmpty(cipherText)){
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put(ATTR_CIPHER_TEXT, cipherText); params.put(ATTR_CIPHER_TEXT, cipherText);
@ -65,6 +66,7 @@ public class SolidCollector {
HttpToolbox.post(deleteUrl, getParams()); HttpToolbox.post(deleteUrl, getParams());
} }
} }
FineLoggerFactory.getLogger().info("send solid content to cloud center success.");
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().info(e.getMessage(), e); FineLoggerFactory.getLogger().info(e.getMessage(), e);
} finally { } finally {

Loading…
Cancel
Save