From f55242a5ce9aec4fde69305f6fa91370dac206e4 Mon Sep 17 00:00:00 2001 From: "hong.yang" Date: Thu, 12 Oct 2023 15:17:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E7=8E=B0=E5=9C=A8url=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=AE=8C=E6=95=B4=E7=9A=84=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=EF=BC=8C=E8=80=8C=E6=98=AF=E7=9B=B8=E5=AF=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=EF=BC=8C=E5=AE=8C=E6=95=B4=E7=9A=84=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E5=9C=B0=E5=9D=80=E4=BA=A4=E7=94=B1=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E6=97=B6=E6=8B=BC=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../file/service/impl/DataRoomLocalFileServiceImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/DataRoom/dataroom-core/src/main/java/com/gccloud/dataroom/core/module/file/service/impl/DataRoomLocalFileServiceImpl.java b/DataRoom/dataroom-core/src/main/java/com/gccloud/dataroom/core/module/file/service/impl/DataRoomLocalFileServiceImpl.java index f79f3d05..44c823d5 100644 --- a/DataRoom/dataroom-core/src/main/java/com/gccloud/dataroom/core/module/file/service/impl/DataRoomLocalFileServiceImpl.java +++ b/DataRoom/dataroom-core/src/main/java/com/gccloud/dataroom/core/module/file/service/impl/DataRoomLocalFileServiceImpl.java @@ -65,12 +65,10 @@ public class DataRoomLocalFileServiceImpl implements IDataRoomOssService { } fileEntity.setOriginalName(originalFilename); fileEntity.setNewName(newFileName); - // 如果想存储到其他目录下、可以重写 fileEntity.setPath(basePath); fileEntity.setSize(size); fileEntity.setExtension(extension); - String urlPrefix = bigScreenConfig.getFile().getUrlPrefix(); - fileEntity.setUrl(urlPrefix + "/" + newFileName); + fileEntity.setUrl("/" + newFileName); return fileEntity; }