From 992583038b0efbb0e2e41609ebf59db8ab9a6350 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Thu, 9 Oct 2025 18:32:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E5=A4=8D=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=99=84=E4=BB=B6=E7=89=B9=E6=AE=8A=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../agt/module/infra/controller/admin/file/FileController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agt-module-infra/agt-module-infra-server/src/main/java/org/agt/module/infra/controller/admin/file/FileController.java b/agt-module-infra/agt-module-infra-server/src/main/java/org/agt/module/infra/controller/admin/file/FileController.java index e57c7ae..c1995de 100644 --- a/agt-module-infra/agt-module-infra-server/src/main/java/org/agt/module/infra/controller/admin/file/FileController.java +++ b/agt-module-infra/agt-module-infra-server/src/main/java/org/agt/module/infra/controller/admin/file/FileController.java @@ -89,7 +89,8 @@ public class FileController { throw new IllegalArgumentException("结尾的 path 路径必须传递"); } // 解码,解决中文路径的问题 https://gitee.com/zhijiantianya/agt-cloud/pulls/807/ - path = URLUtil.decode(path); + // 特殊处理,"+"会变成空格 + path = URLUtil.decode(path.replace("+", "%2B")); // 读取内容 byte[] content = fileService.getFileContent(configId, path);