【feat】优化文件上传异常信息提示
This commit is contained in:
parent
4fc53bf74a
commit
ba34877b02
@ -171,7 +171,7 @@ public class FileManagerServiceImpl implements FileManagerService {
|
||||
downloadUrl = (String) map1.get("value");
|
||||
}
|
||||
}
|
||||
if (StringUtils.isNotBlank(downloadUrl)) {
|
||||
if (StringUtils.isBlank(downloadUrl)) {
|
||||
EmailUtil.send("DumpFile ERROR", "文件下载失败!下载地址未配置");
|
||||
return;
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class FileServiceImpl implements FileService {
|
||||
downloadUrl = (String) map1.get("value");
|
||||
}
|
||||
}
|
||||
if (StringUtils.isNotBlank(downloadUrl)) {
|
||||
if (StringUtils.isEmpty(downloadUrl)) {
|
||||
EmailUtil.send("DumpFile ERROR", "文件下载失败!下载地址未配置");
|
||||
return;
|
||||
}
|
||||
@ -522,8 +522,9 @@ public class FileServiceImpl implements FileService {
|
||||
HttpEntity he = response.getEntity();
|
||||
if (he != null) {
|
||||
respContent = EntityUtils.toString(he, "UTF-8");
|
||||
String newId = JSONObject.parseObject(respContent).get("id").toString();
|
||||
String newId = String.valueOf(JSONObject.parseObject(respContent).get("Id"));
|
||||
if (StringUtils.isBlank(newId)) {
|
||||
log.error("文件上传错误,返回实体信息:" + respContent);
|
||||
break;
|
||||
}
|
||||
Map<String, Object> paramMap = Maps.newHashMap();
|
||||
|
Loading…
Reference in New Issue
Block a user