Merge pull request 'by Robin at 20230103; fix' (#40) from feat-20230102-001-Robin into test
Reviewed-on: #40
This commit is contained in:
commit
25979ca949
|
@ -114,7 +114,7 @@ func (s *CronService) CreateDailyStatement() {
|
||||||
loc, _ := time.LoadLocation("Asia/Shanghai")
|
loc, _ := time.LoadLocation("Asia/Shanghai")
|
||||||
scheduler := gocron.NewScheduler(loc)
|
scheduler := gocron.NewScheduler(loc)
|
||||||
|
|
||||||
scheduler.CronWithSeconds("0 * * * * *").Do(func() {
|
scheduler.CronWithSeconds("0 0 * * * *").Do(func() {
|
||||||
|
|
||||||
//拿到现在的时间戳
|
//拿到现在的时间戳
|
||||||
nowTimeStamp := util.GetHourStartTimeStamp(time.Now())
|
nowTimeStamp := util.GetHourStartTimeStamp(time.Now())
|
||||||
|
|
Loading…
Reference in New Issue