瀏覽代碼

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

解决截图被占用无法打开问题
648540858 2 年之前
父節點
當前提交
9586f58a30
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java

+ 1 - 0
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java

@@ -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()));