Skip to content

Commit

Permalink
修复 OFFICE转换密码错误不提示
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxiongzaq committed Nov 15, 2022
1 parent c0ff209 commit 28d9c72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,17 @@ QQ群:816703453
地址:[https://kkfileview.keking.cn](https://kkfileview.keking.cn)

### 历史更新记录
20221114日,v4.8.2版本发布:
20221114日,v4.8.1版本发布:
1、首页预览增加是否合法url判断
2Linux环境下默认安装LibreOffice7.3, 检测Office组件新增LibreOffice 7.5 8.0版本
2Linux环境下默认安装LibreOffice7.3, 检测Office组件新增LibreOffice 7.5 - 8.0版本
3Linux下检测正在运行的office进程检测逻辑修正
4、更新banner
5mth格式文件名修改
6、优化程序接口为空的接入
7OFD字体优化 (ofd.js)
8、优化代码
9、新增 mhtml格式支持 对mhtml格式优化
10、修复OFFICE转换密码错误不提示

20221111日,v4.8.1版本发布:
1、针对服务支持TRACE请求修复,可在配置文件控制
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ public String filePreviewHandle(String url, Model model, FileAttribute fileAttri
return XLSX_FILE_PREVIEW_PAGE;
}
}

}

if (pdfgx || !fileHandlerService.listConvertedFiles().containsKey(pdfName) || !ConfigConstants.isCacheEnabled()) {
String filePath;
ReturnResponse<String> response = DownloadUtils.downLoad(fileAttribute, null);
Expand Down Expand Up @@ -132,7 +130,6 @@ public String filePreviewHandle(String url, Model model, FileAttribute fileAttri
return otherFilePreview.notSupportedFile(model, fileAttribute, "文件错误或者其他,尝试其他文件");
}
}

} catch (Exception e) {
e.printStackTrace();
}
Expand Down Expand Up @@ -203,7 +200,7 @@ public String filePreviewHandle(String url, Model model, FileAttribute fileAttri
model.addAttribute("textData", Base64.encodeBase64String(fileData.getBytes()));
return TXT_FILE_PREVIEW_PAGE;
}else {
if( ConfigConstants.getofficedel().equalsIgnoreCase("false")){ //是否保留OFFICE源文件
if(ConfigConstants.getofficedel().equalsIgnoreCase("false")){ //是否保留OFFICE源文件
KkFileUtils.deleteFileByPath(filePath);
}
return otherFilePreview.notSupportedFile(model, fileAttribute, "文件错误或者其他类型,"+ geshi );
Expand Down

0 comments on commit 28d9c72

Please sign in to comment.