Merge pull request 'by Robin at 20230103; fix' (#40) from feat-20230102-001-Robin into test

Reviewed-on: #40
This commit is contained in:
chenhao 2024-01-03 23:04:11 +08:00
commit 25979ca949
1 changed files with 1 additions and 1 deletions

View File

@ -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())