WH01243 9 сар өмнө
parent
commit
6524493f0e
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      clueSync/job.go

+ 2 - 1
clueSync/job.go

@@ -75,16 +75,17 @@ func FormatData(data map[string]interface{}, item string) (bool, bool, bool) {
 			} else {
 				query["userid"] = userId
 			}
+			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)["createtime"])
 			}
 			if item == "xcxusers" {
 				sourceCode = common.ObjToString(data["industry"])
-				createtimeStr := common.ObjToString(data["createtime"])
 				t, _ := time.Parse("2006-01-02 15:04:05", createtimeStr)
 				if sourceCode == "" {
 					log.Println("留资没有source", phone)