Browse Source

fix:修改搜索号码

jimmyyem 1 month ago
parent
commit
6ac339cef4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      internal/logic/contact/get_whatsapp_contact_list_logic.go

+ 2 - 2
internal/logic/contact/get_whatsapp_contact_list_logic.go

@@ -43,10 +43,10 @@ func (l *GetWhatsappContactListLogic) GetWhatsappContactList(req *types.Whatsapp
 		))
 	}
 	if req.Phone != nil {
-		predicates = append(predicates, contact.WxWxidContains(*req.Phone))
+		predicates = append(predicates, contact.PhoneContains(*req.Phone))
 	}
 	if req.Name != nil {
-		predicates = append(predicates, contact.NicknameContains(*req.Name))
+		predicates = append(predicates, contact.CnameContains(*req.Name))
 	}
 
 	data, err := l.svcCtx.DB.Contact.Query().Where(predicates...).WithContactRelationships(func(query *ent.LabelRelationshipQuery) {