解决截图被占用无法打开问题

This commit is contained in:
gaoxun250@sina.com 2023-02-03 14:19:10 +08:00
parent 8288d45eea
commit 701f70ba82

View File

@ -186,6 +186,7 @@ public class ZLMRESTfulUtils {
FileOutputStream outStream = new FileOutputStream(snapFile);
outStream.write(Objects.requireNonNull(response.body()).bytes());
outStream.flush();
outStream.close();
} else {
logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));