From 9ee887fce2f87f7a79d0b94640cf1d341a254319 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 17 五月 2024 02:55:14 +0800
Subject: [PATCH] 添加webapi, 优化模块启动

---
 cron/cron.go |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cron/cron.go b/cron/cron.go
index 9c7f4b9..8aede29 100644
--- a/cron/cron.go
+++ b/cron/cron.go
@@ -16,6 +16,7 @@
 func Init() {
 	s.Every(config.ForwardConf.RetryInterval).Minutes().StartImmediately().Do(service.ResendImageData)
 	s.Every(config.ForwardConf.ReportInterval).Second().StartImmediately().Do(service.DeviceInfoReportTask)
+	s.Every(1).Day().StartImmediately().Do(service.CleanExpireData)
 
 	s.StartAsync()
 }

--
Gitblit v1.8.0