Explorar el Código

Merge branch 'feature/587-bowen-label-elationship' into debug

* feature/587-bowen-label-elationship:
  fixbug
boweniac hace 1 semana
padre
commit
d3db90d4b1

+ 3 - 2
internal/logic/label_relationship/get_label_relationship_list_logic.go

@@ -130,12 +130,13 @@ func (l *GetLabelRelationshipListLogic) GetLabelRelationshipList(req *types.Labe
 	for _, v := range data.List {
 		c := v.Edges.Contacts
 		label := v.Edges.Labels
+		wwx := wxWxidsSet[c.WxWxid]
 		logx.Info("c", c)
 		logx.Info("label", label)
-		if c == nil || label == nil {
+		logx.Info("wwx", wwx)
+		if c == nil || label == nil || wwx == nil {
 			continue
 		}
-		wwx := wxWxidsSet[c.WxWxid]
 		labelRelationships := make([]types.ContactLabelList, 0)
 		labelRelationships = append(labelRelationships, types.ContactLabelList{
 			Label: &label.Name,