修复用 OnlyOffice 预览过某个文件后,删除或重新上传本地修改过的文件时,仍然看到旧版本的 bug

This commit is contained in:
zhaojun
2025-04-10 12:02:13 +08:00
parent f7679217ec
commit b4ae4bcc90

View File

@@ -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);