Эх сурвалжийг харах

wip:空判断校验修改

wangkaiyue 2 жил өмнө
parent
commit
4c2bb6a145

+ 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
 }