Commit eb5e51b6 authored by 廖旭伟's avatar 廖旭伟

增加综窗接口文件预览功能

parent 06cb069a
......@@ -459,8 +459,8 @@ public class SyntheticalController extends BaseJsonBodyController {
String filePath = rootPath + "temp/" + fileName;
OutputStream outputStream = null;
File file = new File(filePath);
if (file.exists()) {
file.delete();
if (!file.exists() && !file.isDirectory()) {
file.mkdirs();
}
outputStream = new FileOutputStream(file);
outputStream.write(data);
......
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