Browse Source

Merge branch '20200710_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20200710_xt_api_new_branch

csx 4 years ago
parent
commit
31d2bc8724
1 changed files with 2 additions and 1 deletions
  1. 2 1
      service/auto_create_staff_schedule_service.go

+ 2 - 1
service/auto_create_staff_schedule_service.go View File

@@ -35,7 +35,8 @@ var createStaffScheduleCronJob *cron.Cron
35 35
 func init() {
36 36
 	createStaffScheduleCronJob = cron.New()
37 37
 	//spec := "0 */1 * * * ?" // 每1分钟执行一次
38
-	spec := "0 55 23 * * ?" // 每天23点55执行一次
38
+	//spec := "0 55 23 * * ?" // 每天23点55执行一次
39
+	spec := "0 0 0 ? * Sun"
39 40
 	createStaffScheduleCronJob.AddFunc(spec, func() {
40 41
 		AutoCreateStaffScheduleJob()
41 42
 	})