xuzhiheng 1 سال پیش
والد
کامیت
f9823d54f4
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      service/hlyj.go

+ 2 - 2
service/hlyj.go

@@ -132,7 +132,7 @@ func AutoFollow(this *biservice.CallReq) *biservice.ClueImportResp {
 					//
 				}
 				updateData["STATE"] = callMap[state]
-				JyBiTidb.Update("dwd_f_crm_clue_info", map[string]interface{}{"phone": this.Phone}, updateData)
+				JyBiTidb.Update("dwd_f_crm_clue_info", map[string]interface{}{"id": clueId}, updateData)
 			} else {
 				time.Sleep(10 * time.Second)
 				callData := CallTidb.FindOne("voice_record", map[string]interface{}{"phone": this.Phone}, "", "createTime desc")
@@ -166,7 +166,7 @@ func AutoFollow(this *biservice.CallReq) *biservice.ClueImportResp {
 						//
 					}
 					updateData["STATE"] = callMap[state]
-					JyBiTidb.Update("dwd_f_crm_clue_info", map[string]interface{}{"phone": this.Phone}, updateData)
+					JyBiTidb.Update("dwd_f_crm_clue_info", map[string]interface{}{"id": clueId}, updateData)
 				}
 			}
 		}