Sfoglia il codice sorgente

Merge branch 'dev_v1.5.36.2_wh' of jianyu/datatools into hotfix/v1.5.36.2

王浩 1 mese fa
parent
commit
9414143a1c
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      clueSync/everything.go

+ 2 - 1
clueSync/everything.go

@@ -25,7 +25,7 @@ import (
 // 渠道定时任务
 func everythingSync() {
 	lastEverythingTime := cfg.LastEverythingTime
-	nowTime := time.Now().Format(dates.Date_Full_Layout)
+
 	codeArr := []string{}
 	if len(UserChannel) > 0 {
 		for i, _ := range UserChannel {
@@ -47,6 +47,7 @@ func everythingSync() {
 	log.Println("三方渠道数据定时任务结束")
 }
 func everythingSyncHandle(data *[]map[string]interface{}, isUpdate bool) {
+	nowTime := time.Now().Format(dates.Date_Full_Layout)
 	for _, v := range *data {
 		id := gconv.Int64(v["id"])
 		channel_code := gconv.String(v["channel_code"])