Browse Source

数据同步

tuoling805 2 years ago
parent
commit
1287d8c9a5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      services/sync_hz_data.go

+ 4 - 0
services/sync_hz_data.go

@@ -3,10 +3,13 @@ package services
 import (
 	"context"
 	"fmt"
+	"hongze/hongze_task_trial/utils"
+	"time"
 )
 
 // 同步指标
 func SyncHzDataIndex(cont context.Context) (err error) {
+	fmt.Println("SyncHzDataIndex start:", time.Now().Format(utils.FormatDateTime))
 	//郑州交易所
 	err = SyncRankingFromZhengzhou()
 	if err != nil {
@@ -56,6 +59,7 @@ func SyncHzDataIndex(cont context.Context) (err error) {
 	//	return
 	//}
 	//SyncHzDataIndexData()
+	fmt.Println("SyncHzDataIndex end:", time.Now().Format(utils.FormatDateTime))
 	return err
 }