|
|
@ -58,8 +58,8 @@ public class ErrorInfoUploader { |
|
|
|
String filePath = file.getPath(); |
|
|
|
String filePath = file.getPath(); |
|
|
|
String suffix = filePath.substring(filePath.lastIndexOf(".")); |
|
|
|
String suffix = filePath.substring(filePath.lastIndexOf(".")); |
|
|
|
|
|
|
|
|
|
|
|
Thread.sleep(1000L); |
|
|
|
|
|
|
|
if (suffix.endsWith(SUFFIX)) { |
|
|
|
if (suffix.endsWith(SUFFIX)) { |
|
|
|
|
|
|
|
Thread.sleep(1000L); |
|
|
|
String content = IOUtils.inputStream2String(new FileInputStream(file)); |
|
|
|
String content = IOUtils.inputStream2String(new FileInputStream(file)); |
|
|
|
String url = SiteCenter.getInstance().acquireUrlByKind("design.error"); |
|
|
|
String url = SiteCenter.getInstance().acquireUrlByKind("design.error"); |
|
|
|
if (sendErroInfo(url, content)) { |
|
|
|
if (sendErroInfo(url, content)) { |
|
|
|