xuzhiheng 1 rok pred
rodič
commit
92c3a79698
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 4 4
      service/clue.go

+ 4 - 4
service/clue.go

@@ -754,7 +754,7 @@ func ClueImportSync(this *biservice.ClueImportReq) (string, int) {
 					} else {
 						userData := JyBiTidb.FindOne("dwd_f_userbase_contacts", map[string]interface{}{"phone": phone}, "", "")
 						if userData != nil && len(*userData) > 0 {
-							source := common.IntAll((*userData)["source"])
+							source := common.ObjToString((*userData)["source"])
 							userId, belong_to := "", ""
 							uId := common.ObjToString((*userData)["baseinfo_id"])
 							baseData := JyBiTidb.FindOne("dwd_f_userbase_baseinfo", map[string]interface{}{"uid": uId}, "", "")
@@ -762,7 +762,7 @@ func ClueImportSync(this *biservice.ClueImportReq) (string, int) {
 								userId = common.ObjToString((*baseData)["userid"])
 								belong_to = common.ObjToString((*baseData)["belong_to"])
 							}
-							if source == 5 {
+							if source == "0205" {
 								if !isOks {
 									result += ",“该线索已归属域外”"
 								} else {
@@ -844,7 +844,7 @@ func ClueImportSync(this *biservice.ClueImportReq) (string, int) {
 								"uid":          v["uId"],
 								"name":         name,
 								"phone":        phone,
-								"source":       4,
+								"source":       "0203",
 								"company_name": cluename,
 								"status":       3,
 								"createtime":   nowTime,
@@ -886,7 +886,7 @@ func ClueImportSync(this *biservice.ClueImportReq) (string, int) {
 								"updatetime":  nowTime,
 								"phone":       phone,
 								"baseinfo_id": v["uId"],
-								"source":      4,
+								"source":      "0203",
 							})
 						}
 					} else {