Roc 1 rok pred
rodič
commit
945077ff73
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      services/task.go

+ 3 - 0
services/task.go

@@ -22,6 +22,9 @@ func Task() {
 
 
 // 生产环境需要走的任务
 // 生产环境需要走的任务
 func releaseTask() {
 func releaseTask() {
+	data.InitPositionTask(nil)
+	fmt.Println("同步完成")
+	return
 	//同步指标
 	//同步指标
 	syncHzDataIndex := task.NewTask("syncHzDataIndex", "0 30 0,18,21 * * *", SyncHzDataIndex)
 	syncHzDataIndex := task.NewTask("syncHzDataIndex", "0 30 0,18,21 * * *", SyncHzDataIndex)
 	task.AddTask("syncHzDataIndex", syncHzDataIndex)
 	task.AddTask("syncHzDataIndex", syncHzDataIndex)