From 993b08ad04170a417a114f25613ccd3d991c5afe Mon Sep 17 00:00:00 2001 From: yang chen Date: Tue, 21 Oct 2025 21:43:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(infra):=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=B7=AF=E5=BE=84=E7=94=9F=E6=88=90=E9=80=BB?= =?UTF-8?q?=E8=BE=91-=20=E7=A7=BB=E9=99=A4=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=B8=AD=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84UUID?= =?UTF-8?q?=E7=94=9F=E6=88=90=20-=20=E7=9B=B4=E6=8E=A5=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=8E=9F=E5=A7=8B=E6=96=87=E4=BB=B6=E5=90=8D=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=AD=98=E5=82=A8=E8=B7=AF=E5=BE=84-=20?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BF=A1=E5=88=9B=E7=8E=AF=E5=A2=83=E4=B8=8B?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E6=96=87=E4=BB=B6=E5=90=8D=E4=B9=B1=E7=A0=81?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20-=20=E7=A1=AE=E4=BF=9D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E5=94=AF=E4=B8=80=E6=80=A7=E7=94=B1fileService?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=A4=84=E7=90=86-=20=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=9B=A0=E8=B7=AF=E5=BE=84=E4=B8=8D=E4=B8=80=E8=87=B4=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E6=96=87=E4=BB=B6=E8=AE=BF=E9=97=AE=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeelowcode/service/infra/controller/FileController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeelowcode-service/jeelowcode-service-infra-biz/src/main/java/com/jeelowcode/service/infra/controller/FileController.java b/jeelowcode-service/jeelowcode-service-infra-biz/src/main/java/com/jeelowcode/service/infra/controller/FileController.java index 1608efa..3a6078f 100644 --- a/jeelowcode-service/jeelowcode-service-infra-biz/src/main/java/com/jeelowcode/service/infra/controller/FileController.java +++ b/jeelowcode-service/jeelowcode-service-infra-biz/src/main/java/com/jeelowcode/service/infra/controller/FileController.java @@ -67,7 +67,7 @@ public class FileController { String path = publicPath + fileName; fileName = fileService.getUniqueFileName(fileName, path); - path = publicPath + IdUtil.simpleUUID() + (StrUtil.isEmpty(FileUtil.extName(fileName)) ? "" : ("." + FileUtil.extName(fileName))); + path = publicPath + fileName; return success(fileService.createFile(fileName, path, IoUtil.readBytes(file.getInputStream()))); } @@ -93,7 +93,7 @@ public class FileController { fileName = fileService.getUniqueFileName(fileName, path); // 解决信创环境下文件名中文乱码导致附件错乱的问题 - path = publicPath + IdUtil.simpleUUID() + (StrUtil.isEmpty(FileUtil.extName(fileName)) ? "" : ("." + FileUtil.extName(fileName))); + path = publicPath + fileName; String fileUrl = fileService.createFile(fileName, path, IoUtil.readBytes(file.getInputStream()));