修改比对

This commit is contained in:
范强强
2024-03-06 16:06:35 +08:00
parent a904f73a0a
commit e02898b06f
2 changed files with 16 additions and 10 deletions
@@ -462,7 +462,7 @@ public class OnlyOfficeController {
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
response.setHeader("Content-Disposition", "attachment;filename=\"" + fileOldName + "\"");
response.setContentType("application/octet-stream");
File file = new File(filePath + ossFile.getUrl() + ossFile.getFileName());
File file = new File(filePath + ossFile.getUrl());
is = new FileInputStream(file);
os = response.getOutputStream();
IOUtils.copy(is, os);