From 13df7e89180dce4f53208a69d8a001bd1a2df353 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Tue, 6 Sep 2022 10:17:07 +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 7aa0af1b..a9bba7a2 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 @@ -146,7 +146,7 @@ public class GaeaFileServiceImpl implements GaeaFileService { String userAgent = request.getHeader("User-Agent"); boolean isIEBrowser = userAgent.indexOf("MSIE") > 0; // 在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);