Browse Source

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

王浩 1 month ago
parent
commit
9414143a1c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      clueSync/everything.go

+ 2 - 1
clueSync/everything.go

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