|
@@ -80,10 +80,10 @@ func (l *GetLabelRelationshipListLogic) GetLabelRelationshipList(req *types.Labe
|
|
|
conPreds = append(conPreds, contact.Ctype(1)) // 默认 Ctype = 1
|
|
|
}
|
|
|
|
|
|
- if req.WxWxid != nil {
|
|
|
+ if req.WxWxid != nil && *req.WxWxid != "" {
|
|
|
conPreds = append(conPreds, contact.WxWxidContains(*req.WxWxid))
|
|
|
}
|
|
|
- if req.Wxid != nil {
|
|
|
+ if req.Wxid != nil && *req.Wxid != "" {
|
|
|
conPreds = append(conPreds, contact.WxidContains(*req.Wxid))
|
|
|
}
|
|
|
|
|
@@ -93,7 +93,7 @@ func (l *GetLabelRelationshipListLogic) GetLabelRelationshipList(req *types.Labe
|
|
|
conPreds = append(conPreds, contact.Or(contact.TypeEQ(1), contact.TypeEQ(2), contact.TypeEQ(4)))
|
|
|
}
|
|
|
|
|
|
- if req.Nickname != nil {
|
|
|
+ if req.Nickname != nil && *req.Nickname != "" {
|
|
|
conPreds = append(conPreds, contact.NicknameContains(*req.Nickname))
|
|
|
}
|
|
|
|