浏览代码

no message

Jianghan 1 年之前
父节点
当前提交
3c6c5e7f24
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"])
 	uId := common.ObjToString((*info)["baseinfo_id"])
 	userId := ""
 	userId := ""
 	clueInfo := entity.JyBiTidb.FindOne("dwd_f_crm_clue_info", bson.M{"uid": uId}, "", "")
 	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{
 		return &pb.BiReply{
 			ErrorCode: -1,
 			ErrorCode: -1,
 			ErrorMsg:  "线索已经存在",
 			ErrorMsg:  "线索已经存在",