WH01243 9 månader sedan
förälder
incheckning
7b1e1c453b
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 3 3
      clueSync/job.go
  2. 1 1
      clueSync/jobutil.go

+ 3 - 3
clueSync/job.go

@@ -75,18 +75,18 @@ func FormatData(data map[string]interface{}, item string) (bool, bool, bool) {
 			} else {
 				query["userid"] = userId
 			}
-			createtimeStr := ""
+			//createtimeStr := ""
 			userInfo := TiDb.FindOne("dwd_f_userbase_baseinfo", query, "", "")
 			if userInfo != nil && len(*userInfo) > 0 {
 				uId = common.ObjToString((*userInfo)["uid"])
 				source = common.ObjToString((*userInfo)["source"])
 				belong_to = common.ObjToString((*userInfo)["belong_to"])
 				s_sourceid = common.ObjToString((*userInfo)["s_sourceid"])
-				createtimeStr = common.ObjToString((*userInfo)["l_registedate"])
+				//createtimeStr = common.ObjToString((*userInfo)["l_registedate"])
 			}
 			if item == "xcxusers" {
 				sourceCode = common.ObjToString(data["industry"])
-				t, _ := time.Parse("2006-01-02 15:04:05", createtimeStr)
+				//t, _ := time.Parse("2006-01-02 15:04:05", createtimeStr)
 				if sourceCode == "" {
 					log.Println("留资没有source", phone)
 					return true, true, true

+ 1 - 1
clueSync/jobutil.go

@@ -656,7 +656,7 @@ WHERE
 				cfg.LastXcxUserId = updatetime
 				continue
 			}
-			ok1, ok2, ok3 := FormatData(v, "xcxusers")
+			ok1, ok2, _ := FormatData(v, "xcxusers")
 			/*if !ok3 {
 				//首次使用"安防"小程序新注册用户
 				afList = append(afList, v)