|
|
|
@ -38,6 +38,8 @@ public class ErrorInfoUploader {
|
|
|
|
|
public static final String SUFFIX = ".json"; |
|
|
|
|
public static final String FOLDER_NAME = "errorInfo"; |
|
|
|
|
|
|
|
|
|
private static final String CLOUD_KEY = "design.error"; |
|
|
|
|
|
|
|
|
|
private static ErrorInfoUploader collector; |
|
|
|
|
// 在一台不能上网的电脑里发现了10w个errorinfo...
|
|
|
|
|
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) { |
|
|
|
|
if (needSend2Cloud) { |
|
|
|
|
String url = CloudCenter.getInstance().acquireUrlByKind("design.error"); |
|
|
|
|
String url = CloudCenter.getInstance().acquireUrlByKind(CLOUD_KEY); |
|
|
|
|
if (StringUtils.isBlank(url)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|