Raod 2 years ago
parent 13df7e8918
commit 910fbc3e62

@ -184,7 +184,7 @@ public class GaeaFileServiceImpl implements GaeaFileService {
} }
// 在oss中存储的文件名 402b6193e70e40a9bf5b73a78ea1e8ab.png // 在oss中存储的文件名 402b6193e70e40a9bf5b73a78ea1e8ab.png
String fileObjectName = gaeaFile.getFilePath(); String fileObjectName = gaeaFile.getFileId().concat(".").concat(gaeaFile.getFileType());
String originalFilename = gaeaFile.getFileInstruction(); String originalFilename = gaeaFile.getFileInstruction();
if (StringUtils.isBlank(fileObjectName) || StringUtils.isBlank(originalFilename)) { if (StringUtils.isBlank(fileObjectName) || StringUtils.isBlank(originalFilename)) {
throw BusinessExceptionBuilder.build(ResponseCode.FILE_ONT_EXSIT); throw BusinessExceptionBuilder.build(ResponseCode.FILE_ONT_EXSIT);

Loading…
Cancel
Save