xuzhiheng 1 year ago
parent
commit
0a6b320fb8
1 changed files with 9 additions and 1 deletions
  1. 9 1
      service/hlyj.go

+ 9 - 1
service/hlyj.go

@@ -128,6 +128,10 @@ func AutoFollow(this *biservice.CallReq) *biservice.ClueImportResp {
 					updateData["taskstatus"] = 1
 				}
 				updateData["STATE"] = callMap[state]
+				//
+				updateData["trail_time"] = time.Now().Format(date.Date_Full_Layout)
+				updateData["content"] = "客户未接通"
+				//
 				JyBiTidb.Update("dwd_f_crm_clue_info", map[string]interface{}{"phone": this.Phone}, updateData)
 			} else {
 				time.Sleep(10 * time.Second)
@@ -157,7 +161,11 @@ func AutoFollow(this *biservice.CallReq) *biservice.ClueImportResp {
 						})
 						updateData["taskstatus"] = 1
 					}
-					updateData["STATE"] = callMap["state"]
+					updateData["STATE"] = callMap[state]
+					//
+					updateData["trail_time"] = time.Now().Format(date.Date_Full_Layout)
+					updateData["content"] = "客户未接通"
+					//
 					JyBiTidb.Update("dwd_f_crm_clue_info", map[string]interface{}{"phone": this.Phone}, updateData)
 				}
 			}