Browse Source

Merge pull request #1592 in DESIGN/design from ~LANLAN/design:release/10.0 to release/10.0

* commit '30c9304b7044e0688192c1a42fc07e7e9c4dfbb6':
  REPORT-29985 连接网址管理中心开关-固化埋点-回传成功
feature/big-screen
Lanlan 5 years ago
parent
commit
119df86ea8
  1. 8
      designer-realize/src/main/java/com/fr/design/mainframe/messagecollect/solid/SolidCollector.java

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

@ -22,7 +22,6 @@ import java.util.Map;
public class SolidCollector { public class SolidCollector {
private static final String ATTR_CIPHER_TEXT = "cipherText"; private static final String ATTR_CIPHER_TEXT = "cipherText";
private static final String ATTR_SIGNATURE = "signature"; private static final String ATTR_SIGNATURE = "signature";
private static final String SOLID_UPLOAD_URL = CloudCenter.getInstance().acquireUrlByKind("design.solid");
private static volatile SolidCollector instance; private static volatile SolidCollector instance;
@ -44,6 +43,11 @@ public class SolidCollector {
if (WorkContext.getCurrent().isLocal()) { if (WorkContext.getCurrent().isLocal()) {
return; return;
} }
String url = CloudCenter.getInstance().acquireConf("design.solid", "https://cloud.fanruan.com/api/solid/upload");
if (StringUtils.isEmpty(url)) {
FineLoggerFactory.getLogger().info("failed to get solid content upload url...");
return;
}
FineLoggerFactory.getLogger().info("start to get solid content from server..."); FineLoggerFactory.getLogger().info("start to get solid content from server...");
try { try {
String cipherText = requestContent(); String cipherText = requestContent();
@ -51,7 +55,7 @@ public class SolidCollector {
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put(ATTR_CIPHER_TEXT, cipherText); params.put(ATTR_CIPHER_TEXT, cipherText);
params.put(ATTR_SIGNATURE, String.valueOf(CommonUtils.signature())); params.put(ATTR_SIGNATURE, String.valueOf(CommonUtils.signature()));
HttpToolbox.post(SOLID_UPLOAD_URL, params); HttpToolbox.post(url, params);
deleteSolidFile(); deleteSolidFile();
} }

Loading…
Cancel
Save