liusuyi
2024-08-10 5b017324148ea92d96f9f16ade215463d6c712e5
ard-work/src/main/java/com/ruoyi/device/camera/service/impl/ArdCamerasServiceImpl.java
@@ -73,7 +73,6 @@
    @PostConstruct
    public void loadCameras() {
        //清理本地录像缓存文件
        String tempPath = ARDConfig.getProfile() + Constants.LOCAL_RECORD_TEMP_PREFIX;
        FileUtils.deleteFolder(tempPath);
@@ -85,7 +84,10 @@
        for (ArdCameras ardCamera : ardCameras) {
            redisCache.setCacheObject(getCacheKey(ardCamera.getId()), ardCamera);
        }
        //清空通道
        ardChannelMapper.clearArdChannel();
        //清空流媒体
        vtduService.clearVtdu();
    }
    /**
@@ -95,7 +97,7 @@
     * @Param
     * @return
     */
    @Scheduled(cron = "0 0/10 * * * ?")
    //@Scheduled(cron = "0 0/10 * * * ?")
    public void clearRecordTemp()
    {
        log.debug("定时清理本地录像缓存文件(超过1天)");
@@ -759,4 +761,9 @@
            }
        }
    }
    @Override
    public int resetCameraLoginId() {
        return ardCamerasMapper.resetCameraLoginId();
    }
}