1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-15 23:54:17 +02:00

Fixed issues

This commit is contained in:
link
2022-02-17 18:43:25 +08:00
parent 53335012d8
commit e1a928cd78
34 changed files with 561 additions and 136 deletions

View File

@ -58,8 +58,9 @@ func main() {
r := route.InitRouter()
//service.SyncTask(sqliteDB)
cron2 := cron.New() //创建一个cron实例
//执行定时任务(每5秒执行一次)
err := cron2.AddFunc("0 0 0 1/1 * *", func() {
//every day execution
err := cron2.AddFunc("0 0/1 * * * *", func() {
//service.PushIpInfo(*&config.ServerInfo.Token)
//service.UpdataDDNSList(mysqldb)
//service.SyncTask(sqliteDB)
})
@ -77,6 +78,7 @@ func main() {
WriteTimeout: 60 * time.Second,
MaxHeaderBytes: 1 << 20,
}
s.ListenAndServe()
}