WH01243 9 сар өмнө
parent
commit
4c5d72f7d1

+ 0 - 5
clueSync/everything.go

@@ -371,7 +371,6 @@ func bigCustomer() {
 	saleleadsData, ok := Mgo.Find("saleLeads", map[string]interface{}{"createtime": map[string]interface{}{"$gte": bigSaleTime}}, `{"phone":1,"createtime":1}`, nil, false, -1, -1)
 	if ok && saleleadsData != nil && len(*saleleadsData) > 0 {
 		for _, v := range *saleleadsData {
-			log.Println("444", v)
 			sources := common.ObjToString(v["source"])
 			userid := common.ObjToString(v["userid"])
 			uid := ""
@@ -407,7 +406,6 @@ func bigCustomer() {
 				data_requirement := common.ObjToString(v["data_requirement"])
 				belongTo, usernickname := "大客户", ""
 				userData := TiDb.FindOne("dwd_f_userbase_baseinfo", map[string]interface{}{"uid": uid}, "", "")
-				log.Println("555", uid, userData)
 				if userData != nil {
 					usernickname = common.ObjToString((*userData)["nickname"])
 					bt := common.ObjToString((*userData)["belong_to"])
@@ -415,10 +413,8 @@ func bigCustomer() {
 						continue
 					}
 				}
-				log.Println("333", userData)
 				s_sourceid := common.ObjToString((*userData)["s_sourceid"])
 				if s_sourceid == db.Sourceid {
-					log.Println("abhList", data, 2222)
 					//安博会数据
 					abhList = append(abhList, map[string]interface{}{
 						"createTime":       nowTime,
@@ -562,7 +558,6 @@ func bigCustomer() {
 		}
 		cfg.BigOrderTime = bigOrderTime
 	}
-	log.Println("abhList", abhList, 11111)
 	if len(abhList) > 0 {
 		ABHEmail("big", abhList)
 	}

+ 4 - 3
clueSync/job.go

@@ -91,9 +91,10 @@ func FormatData(data map[string]interface{}, item string) (bool, bool, bool) {
 					log.Println("留资没有source", phone)
 					return true, true, true
 				}
-				if t.Unix() > db.NewRegistration && sourceCode == "安防" {
-					return true, true, false
-				}
+				/*	安防代码
+					if t.Unix() > db.NewRegistration && sourceCode == "安防" {
+							return true, true, false
+						}*/
 				//线索名称查询处理
 				clueData, _ := TiDb.FindOne("dwd_f_crm_clue_info", map[string]interface{}{"uid": uId}, "", ""), true //查当前线索是否已存在
 				if clueData != nil && len(*clueData) > 0 {

+ 2 - 2
clueSync/jobutil.go

@@ -657,12 +657,12 @@ WHERE
 				continue
 			}
 			ok1, ok2, ok3 := FormatData(v, "xcxusers")
-			if !ok3 {
+			/*if !ok3 {
 				//首次使用"安防"小程序新注册用户
 				afList = append(afList, v)
 				cfg.LastXcxUserId = updatetime
 				continue
-			}
+			}*/
 			if !ok1 {
 				common.WriteSysConfig(&cfg)
 				log.Println("小程序用户分配线索卡点", "xcxusers", v, selectXcxTimeEnd)