Jianghan 1 年之前
父节点
当前提交
3338f9009f
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      service/clueByPhone.go

+ 3 - 4
service/clueByPhone.go

@@ -41,7 +41,6 @@ func CreateClue(in *pb.CreateCuleReq) (result *pb.BiReply, err error) {
 	clueId := int64(0)
 	clueId := int64(0)
 	if entity.JyBiTidb.ExecTx("保存线索", func(tx *sql.Tx) bool {
 	if entity.JyBiTidb.ExecTx("保存线索", func(tx *sql.Tx) bool {
 		nowTime := time.Now().Format("2006-01-02 15:04:05")
 		nowTime := time.Now().Format("2006-01-02 15:04:05")
-		BCPCID := common.GetRandom(32)
 		clueId = entity.JyBiTidb.InsertByTx(tx, "dwd_f_crm_clue_info", map[string]interface{}{
 		clueId = entity.JyBiTidb.InsertByTx(tx, "dwd_f_crm_clue_info", map[string]interface{}{
 			"userid":               userId,
 			"userid":               userId,
 			"uid":                  uId,
 			"uid":                  uId,
@@ -64,7 +63,7 @@ func CreateClue(in *pb.CreateCuleReq) (result *pb.BiReply, err error) {
 			"change_type":   "创建线索",
 			"change_type":   "创建线索",
 			"new_value":     "系统自动创建",
 			"new_value":     "系统自动创建",
 			"createtime":    nowTime,
 			"createtime":    nowTime,
-			"BCPCID":        BCPCID,
+			"BCPCID":        common.GetRandom(32),
 			"operator_id":   -1,
 			"operator_id":   -1,
 			"change_reason": "根据手机号创建线索(接口)",
 			"change_reason": "根据手机号创建线索(接口)",
 		})
 		})
@@ -76,7 +75,7 @@ func CreateClue(in *pb.CreateCuleReq) (result *pb.BiReply, err error) {
 			"old_value":     "/",
 			"old_value":     "/",
 			"new_value":     "新增注册",
 			"new_value":     "新增注册",
 			"createtime":    nowTime,
 			"createtime":    nowTime,
-			"BCPCID":        BCPCID,
+			"BCPCID":        common.GetRandom(32),
 			"operator_id":   -1,
 			"operator_id":   -1,
 			"change_reason": "根据手机号创建线索(接口)",
 			"change_reason": "根据手机号创建线索(接口)",
 		})
 		})
@@ -88,7 +87,7 @@ func CreateClue(in *pb.CreateCuleReq) (result *pb.BiReply, err error) {
 			"old_value":     "/",
 			"old_value":     "/",
 			"new_value":     "新增注册用户",
 			"new_value":     "新增注册用户",
 			"createtime":    nowTime,
 			"createtime":    nowTime,
-			"BCPCID":        BCPCID,
+			"BCPCID":        common.GetRandom(32),
 			"operator_id":   -1,
 			"operator_id":   -1,
 			"change_reason": "根据手机号创建线索(接口)",
 			"change_reason": "根据手机号创建线索(接口)",
 		})
 		})