代码优化调整
This commit is contained in:
parent
24f4f4a908
commit
88e98f09f6
@ -202,14 +202,7 @@ public class FileServiceImpl implements FileService {
|
|||||||
log.error("fileUrl is empty");
|
log.error("fileUrl is empty");
|
||||||
throw new BizException(CodeEnum.MULTIPART_UPLOAD_ERROR);
|
throw new BizException(CodeEnum.MULTIPART_UPLOAD_ERROR);
|
||||||
}
|
}
|
||||||
|
return getOssFile(fileUploadConfig, dto.getFileName(), fileConform, uuid, fileUrl, Utility.getMd5(fileUrl));
|
||||||
try {
|
|
||||||
return getOssFile(fileUploadConfig, dto.getFileName(), fileConform, uuid, fileUrl,
|
|
||||||
Utility.getMd5(dto.getFile().getBytes()));
|
|
||||||
} catch (IOException e) {
|
|
||||||
log.error("file byte[] exception");
|
|
||||||
throw new BizException(CodeEnum.MULTIPART_UPLOAD_ERROR);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user