From 910fbc3e62c095ee50e9d49c6209886c41c37539 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Tue, 6 Sep 2022 10:24:54 +0800 Subject: [PATCH] gaea oss --- .../business/modules/file/service/impl/GaeaFileServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/service/impl/GaeaFileServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/service/impl/GaeaFileServiceImpl.java index a9bba7a2..c7baa24c 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/service/impl/GaeaFileServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/service/impl/GaeaFileServiceImpl.java @@ -184,7 +184,7 @@ public class GaeaFileServiceImpl implements GaeaFileService { } // 在oss中存储的文件名 402b6193e70e40a9bf5b73a78ea1e8ab.png - String fileObjectName = gaeaFile.getFilePath(); + String fileObjectName = gaeaFile.getFileId().concat(".").concat(gaeaFile.getFileType()); String originalFilename = gaeaFile.getFileInstruction(); if (StringUtils.isBlank(fileObjectName) || StringUtils.isBlank(originalFilename)) { throw BusinessExceptionBuilder.build(ResponseCode.FILE_ONT_EXSIT);