fix: 修复邮件创建附件时的一个小bug

pull/62/head
zhangruchuan 6 months ago
parent e73527014b
commit 11f388226f

@ -40,9 +40,9 @@ public class AustinFileUtils {
URL url = new URL(remoteUrl);
File file = new File(path, url.getPath());
inputStream = url.openStream();
fileOutputStream = new FileOutputStream(file);
if (!file.exists()) {
file.getParentFile().mkdirs();
fileOutputStream = new FileOutputStream(file);
IoUtil.copy(inputStream, fileOutputStream);
}
return file;

Loading…
Cancel
Save