synccheckin 5 minite

This commit is contained in:
jiangyong27 2023-08-31 10:28:46 +08:00
parent f8691ea897
commit 4a454e1275
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ func Init1() error {
func Init() error {
timezone, _ := time.LoadLocation("Asia/Shanghai")
cron := gocron.NewScheduler(timezone)
cron.Every(1).Minute().Do(func() {
cron.Every(5).Minute().Do(func() {
go SyncCheckin(time.Now().Format("2006-01-02"))
})