Browse Source

REPORT-106669 报表埋点补充开发文档 常量处理一下

feature/x
Destiny.Lin 1 year ago
parent
commit
2fdcf43a20
  1. 4
      designer-realize/src/main/java/com/fr/design/mainframe/errorinfo/ErrorInfoUploader.java

4
designer-realize/src/main/java/com/fr/design/mainframe/errorinfo/ErrorInfoUploader.java

@ -38,6 +38,8 @@ public class ErrorInfoUploader {
public static final String SUFFIX = ".json"; public static final String SUFFIX = ".json";
public static final String FOLDER_NAME = "errorInfo"; public static final String FOLDER_NAME = "errorInfo";
private static final String CLOUD_KEY = "design.error";
private static ErrorInfoUploader collector; private static ErrorInfoUploader collector;
// 在一台不能上网的电脑里发现了10w个errorinfo... // 在一台不能上网的电脑里发现了10w个errorinfo...
private static final int MAX_ERROR_SIZE = 2000; private static final int MAX_ERROR_SIZE = 2000;
@ -208,7 +210,7 @@ public class ErrorInfoUploader {
private void processInfos(JSONArray jsonArray, boolean needSend2Cloud, List<File> tempFiles) { private void processInfos(JSONArray jsonArray, boolean needSend2Cloud, List<File> tempFiles) {
if (needSend2Cloud) { if (needSend2Cloud) {
String url = CloudCenter.getInstance().acquireUrlByKind("design.error"); String url = CloudCenter.getInstance().acquireUrlByKind(CLOUD_KEY);
if (StringUtils.isBlank(url)) { if (StringUtils.isBlank(url)) {
return; return;
} }

Loading…
Cancel
Save