mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-07 14:43:17 +08:00
新增本地用户设置过期时间
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user