代码优化调整

This commit is contained in:
tianliyong 2023-08-24 14:02:25 +08:00
parent 24f4f4a908
commit 88e98f09f6

View File

@ -202,14 +202,7 @@ public class FileServiceImpl implements FileService {
log.error("fileUrl is empty");
throw new BizException(CodeEnum.MULTIPART_UPLOAD_ERROR);
}
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);
}
return getOssFile(fileUploadConfig, dto.getFileName(), fileConform, uuid, fileUrl, Utility.getMd5(fileUrl));
}
@Override