From b4ae4bcc90f075d0fd7cb19b4f82e28da77458ae Mon Sep 17 00:00:00 2001 From: zhaojun <873019219@qq.com> Date: Thu, 10 Apr 2025 12:02:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=20OnlyOffice=20?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E8=BF=87=E6=9F=90=E4=B8=AA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=88=A0=E9=99=A4=E6=88=96=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=9C=AC=E5=9C=B0=E4=BF=AE=E6=94=B9=E8=BF=87?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E6=97=B6=EF=BC=8C=E4=BB=8D=E7=84=B6?= =?UTF-8?q?=E7=9C=8B=E5=88=B0=E6=97=A7=E7=89=88=E6=9C=AC=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/onlyoffice/controller/OnlyOfficeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/im/zhaojun/zfile/module/onlyoffice/controller/OnlyOfficeController.java b/src/main/java/im/zhaojun/zfile/module/onlyoffice/controller/OnlyOfficeController.java index f0b5cf4..071e33a 100644 --- a/src/main/java/im/zhaojun/zfile/module/onlyoffice/controller/OnlyOfficeController.java +++ b/src/main/java/im/zhaojun/zfile/module/onlyoffice/controller/OnlyOfficeController.java @@ -102,7 +102,7 @@ public class OnlyOfficeController { } String currentUserBasePath = fileService.getCurrentUserBasePath(); - fileItemRequest.setPath(currentUserBasePath + fileItemRequest.getPath()); + fileItemRequest.setPath(StringUtils.concat(currentUserBasePath, fileItemRequest.getPath())); boolean hasUploadPermission = userStorageSourceService.hasCurrentUserStorageOperatorPermission(storageId, FileOperatorTypeEnum.UPLOAD); return Pair.of(fileItem, hasUploadPermission);