dsx 2 lat temu
rodzic
commit
cf04497c8f

+ 11 - 0
src/main/java/com/fdkankan/scene/schedule/ScheduleJob.java

@@ -24,4 +24,15 @@ public class ScheduleJob {
         sceneAsynOperLogService.cleanDownloadPanorama();
         log.info("定时清除全景图压缩包完毕");
     }
+
+    /**
+     * 删除场景原始资源
+     * 每天凌晨执行
+     */
+    @Scheduled(cron="1 0 0 * * ?")
+    public void cleanOssHome() {
+        log.info("定时清除全景图压缩包开始");
+        sceneAsynOperLogService.cleanDownloadPanorama();
+        log.info("定时清除全景图压缩包完毕");
+    }
 }