新增本地用户设置过期时间

This commit is contained in:
wsczx
2022-10-16 02:47:32 +08:00
parent 7b83154245
commit a533ee0a78
8 changed files with 56 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package cron
import (
"time"
"github.com/bjdgyc/anylink/sessdata"
"github.com/go-co-op/gocron"
)
@@ -10,5 +11,6 @@ func Start() {
s := gocron.NewScheduler(time.Local)
s.Cron("0 * * * *").Do(ClearAudit)
s.Cron("0 * * * *").Do(ClearStatsInfo)
s.Every("1s").Do(sessdata.CloseUserLimittimeSession)
s.StartAsync()
}