by Robin at 20230103; fix
This commit is contained in:
parent
da32271c8b
commit
b7906680aa
|
@ -114,7 +114,7 @@ func (s *CronService) CreateDailyStatement() {
|
|||
loc, _ := time.LoadLocation("Asia/Shanghai")
|
||||
scheduler := gocron.NewScheduler(loc)
|
||||
|
||||
scheduler.CronWithSeconds("0 * * * * *").Do(func() {
|
||||
scheduler.CronWithSeconds("0 0 * * * *").Do(func() {
|
||||
|
||||
//拿到现在的时间戳
|
||||
nowTimeStamp := util.GetHourStartTimeStamp(time.Now())
|
||||
|
|
Loading…
Reference in New Issue