Browse Source

REPORT-23125 【新引擎】@Alex新引擎设计器回传信息中存储的信息不全

* commit 'bff39359e1f614a29cadd0d0dd2ae72c1986d4bb':
  插件error相关埋点的json直接save
feature/big-screen
Alex.Sung 5 years ago
parent
commit
255393d584
  1. 5
      designer-realize/src/main/java/com/fr/design/mainframe/errorinfo/ErrorInfo.java

5
designer-realize/src/main/java/com/fr/design/mainframe/errorinfo/ErrorInfo.java

@ -37,6 +37,9 @@ public class ErrorInfo {
this.uploadtime = dateToString(); this.uploadtime = dateToString();
} }
public ErrorInfo() {
}
public String getUsername() { public String getUsername() {
return username; return username;
} }
@ -123,7 +126,7 @@ public class ErrorInfo {
saveFileToCache(jo); saveFileToCache(jo);
} }
private void saveFileToCache(JSONObject jo) { public void saveFileToCache(JSONObject jo) {
String content = jo.toString(); String content = jo.toString();
String fileName = UUID.randomUUID() + ErrorInfoUploader.SUFFIX; String fileName = UUID.randomUUID() + ErrorInfoUploader.SUFFIX;
File file = new File(StableUtils.pathJoin(ProductConstants.getEnvHome(), ErrorInfoUploader.FOLDER_NAME, fileName)); File file = new File(StableUtils.pathJoin(ProductConstants.getEnvHome(), ErrorInfoUploader.FOLDER_NAME, fileName));

Loading…
Cancel
Save