Jianghan 1 year ago
parent
commit
523d597d63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/clueByPhone.go

+ 1 - 1
service/clueByPhone.go

@@ -26,7 +26,7 @@ func CreateClue(in *pb.CreateCuleReq) (result *pb.BiReply, err error) {
 	uId := common.ObjToString((*info)["baseinfo_id"])
 	userId := ""
 	clueInfo := entity.JyBiTidb.FindOne("dwd_f_crm_clue_info", bson.M{"uid": uId}, "", "")
-	if clueInfo == nil || len(*clueInfo) == 0 {
+	if clueInfo != nil || len(*clueInfo) > 0 {
 		return &pb.BiReply{
 			ErrorCode: -1,
 			ErrorMsg:  "线索已经存在",