synccheckin 5 minite
This commit is contained in:
parent
f8691ea897
commit
4a454e1275
|
@ -16,7 +16,7 @@ func Init1() error {
|
||||||
func Init() error {
|
func Init() error {
|
||||||
timezone, _ := time.LoadLocation("Asia/Shanghai")
|
timezone, _ := time.LoadLocation("Asia/Shanghai")
|
||||||
cron := gocron.NewScheduler(timezone)
|
cron := gocron.NewScheduler(timezone)
|
||||||
cron.Every(1).Minute().Do(func() {
|
cron.Every(5).Minute().Do(func() {
|
||||||
go SyncCheckin(time.Now().Format("2006-01-02"))
|
go SyncCheckin(time.Now().Format("2006-01-02"))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue