Merge pull request #738 from gaoxun1937/wvp-28181-2.0

解决截图被占用无法打开问题
pull/739/head
648540858 2023-02-03 17:51:47 +08:00 committed by GitHub
commit 9586f58a30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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