mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
修复用 OnlyOffice 预览过某个文件后,删除或重新上传本地修改过的文件时,仍然看到旧版本的 bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user