Ver código fonte

相机文件修改权限

hexiao 2 anos atrás
pai
commit
bb52da9e85

+ 7 - 5
hazard-admin/src/main/java/com/ozs/web/core/util/CameraUtil.java

@@ -119,11 +119,13 @@ public class CameraUtil {
         String ph = "flv/" + DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD, new Date())
                 + "/" + channel + "/"
                 + UUID.randomUUID().toString() + ".flv";
-        try {
-            return historyPlay(list, ph);
-        } catch (Exception e) {
-            log.error(e.getMessage());
-            e.printStackTrace();
+        if (!ObjectUtils.isEmpty(list)) {
+            try {
+                return historyPlay(list, ph);
+            } catch (Exception e) {
+                log.error(e.getMessage());
+                e.printStackTrace();
+            }
         }
         return null;
     }