Commit ed2fe209 authored by hongguangwu's avatar hongguangwu

1.7.21-优化临时文件

parent e9bcddf2
...@@ -1386,6 +1386,8 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe ...@@ -1386,6 +1386,8 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
return R.failed("税友附件生成异常:" + e.getMessage()); return R.failed("税友附件生成异常:" + e.getMessage());
} finally { } finally {
finallyClear(list, createFile); finallyClear(list, createFile);
// 新增:强制垃圾回收以清理 Spire.XLS 的临时字体文件
System.gc();
} }
} }
......
...@@ -97,8 +97,6 @@ public class ExcelToImage { ...@@ -97,8 +97,6 @@ public class ExcelToImage {
e.printStackTrace(); e.printStackTrace();
} }
} }
// 新增:强制垃圾回收以清理 Spire.XLS 的临时字体文件
System.gc();
} }
return R.failed(CommonConstants.RESULT_DATA_FAIL); return R.failed(CommonConstants.RESULT_DATA_FAIL);
} }
......
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