Commit 9586f58a30ccbced6ba15693182269d4f67afe2b

Authored by 648540858
Committed by GitHub
2 parents 6246ce6b 0a380c6f

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

解决截图被占用无法打开问题
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java
... ... @@ -186,6 +186,7 @@ public class ZLMRESTfulUtils {
186 186 FileOutputStream outStream = new FileOutputStream(snapFile);
187 187  
188 188 outStream.write(Objects.requireNonNull(response.body()).bytes());
  189 + outStream.flush();
189 190 outStream.close();
190 191 } else {
191 192 logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
... ...