Browse Source

wip:空判断校验修改

wangkaiyue 2 năm trước cách đây
mục cha
commit
4c2bb6a145
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      jyBXSubscribe/rpc/model/staffSubscribe.go

+ 8 - 0
jyBXSubscribe/rpc/model/staffSubscribe.go

@@ -38,6 +38,14 @@ func (p *PersonSubscribe) IsEmpty() bool {
 	if len(p.AItems) > 0 || len(p.AInfotype) > 0 || len(p.ABuyerclass) > 0 || len(p.OArea) > 0 {
 		return false
 	}
+	// 遍历订阅词
+	for _, item := range p.AItems {
+		for _, key := range item.AKey {
+			if len(key.Key) > 0 || len(key.Notkey) > 0 {
+				return false
+			}
+		}
+	}
 	return true
 }