Commit ba57dede authored by doras's avatar doras Committed by kl

"加入是否启用缓存配置项"后,excel转成的html文件不再转换编码,修复因此出现的乱码问题

parent affd5b30
...@@ -69,11 +69,11 @@ public class OfficeFilePreviewImpl implements FilePreview { ...@@ -69,11 +69,11 @@ public class OfficeFilePreviewImpl implements FilePreview {
if (f.exists()) { if (f.exists()) {
f.delete(); f.delete();
} }
if (ConfigConstants.isCacheEnabled()) {
if (isHtml) { if (isHtml) {
// 对转换后的文件进行操作(改变编码方式) // 对转换后的文件进行操作(改变编码方式)
fileUtils.doActionConvertedFile(outFilePath); fileUtils.doActionConvertedFile(outFilePath);
} }
if (ConfigConstants.isCacheEnabled()) {
// 加入缓存 // 加入缓存
fileUtils.addConvertedFile(pdfName, fileUtils.getRelativePath(outFilePath)); fileUtils.addConvertedFile(pdfName, fileUtils.getRelativePath(outFilePath));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment