工程图片上传修改

This commit is contained in:
cwchen 2024-03-23 14:04:19 +08:00
parent 309b559896
commit d64e7e759d
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public class ProServiceImpl implements IProService {
if (files != null && types != null) { if (files != null && types != null) {
Result uploadResult = remoteFileService.mostUploadFile(files, SecurityConstants.INNER); Result uploadResult = remoteFileService.mostUploadFile(files, SecurityConstants.INNER);
if (uploadResult != null && uploadResult.getCode() == HttpStatus.ERROR) { if (uploadResult != null && uploadResult.getCode() == HttpStatus.ERROR) {
return AjaxResult.error("工程文件上传失败"); log.error("工程文件上传失败");
} else if (uploadResult != null && uploadResult.getCode() == HttpStatus.SUCCESS && uploadResult.getData() != null) { } else if (uploadResult != null && uploadResult.getCode() == HttpStatus.SUCCESS && uploadResult.getData() != null) {
String jsonString = JSON.toJSONString(uploadResult.getData()); String jsonString = JSON.toJSONString(uploadResult.getData());
JSONArray jsonArray = JSON.parseArray(jsonString); JSONArray jsonArray = JSON.parseArray(jsonString);