Browse Source

截图定时优化

wyyay 10 months ago
parent
commit
8a10478efd

+ 6 - 2
business-service/src/main/java/com/ozs/service/service/impl/CameraCaptureService.java

@@ -68,9 +68,13 @@ public class CameraCaptureService {
                     byteArrayOutputStream.write(bytes,0,index);
                 }
                 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());
-                log.info("getCapture======" + fileName);
+                if (log.isDebugEnabled()) {
+                    log.debug("getCapture======" + fileName);
+                }
                 minioUtils.minIoClientUpload(byteArrayInputStream, fileName);
-                System.out.println("fileName"+fileName+"图片结束截图时间"+new Date());
+                if (log.isDebugEnabled()) {
+                    log.debug("fileName"+fileName+"图片结束截图时间"+new Date());
+                }
                 String uploadUrl = "/data/test_picture/"+ IdUtils.fastSimpleUUID()+".jpeg";
                 //File targetVideoDir = new File(uploadUrl);
                 fileUploader.transfer(uploadUrl,bytes);