xuzhiheng 1 tahun lalu
induk
melakukan
7389c6d250
1 mengubah file dengan 8 tambahan dan 8 penghapusan
  1. 8 8
      service/hlyj.go

+ 8 - 8
service/hlyj.go

@@ -126,12 +126,12 @@ func AutoFollow(this *biservice.CallReq) *biservice.ClueImportResp {
 						"createtime":  time.Now().Format(date.Date_Full_Layout),
 					})
 					updateData["taskstatus"] = 1
+					//
+					updateData["trail_time"] = time.Now().Format(date.Date_Full_Layout)
+					updateData["content"] = "客户未接通"
+					//
 				}
 				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)
@@ -160,12 +160,12 @@ func AutoFollow(this *biservice.CallReq) *biservice.ClueImportResp {
 							"createtime":  time.Now().Format(date.Date_Full_Layout),
 						})
 						updateData["taskstatus"] = 1
+						//
+						updateData["trail_time"] = time.Now().Format(date.Date_Full_Layout)
+						updateData["content"] = "客户未接通"
+						//
 					}
 					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)
 				}
 			}