Browse Source

5d424c35a5cb26b9b7adf3f6冒号kv value取值不能为key

fengweiqiang 6 years ago
parent
commit
5e5af2f902
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/jy/pretreated/colonkv.go

+ 3 - 0
src/jy/pretreated/colonkv.go

@@ -724,6 +724,9 @@ func GetKvTags(findkvs []*Kv, title string, tagdbs []string) map[string][]*Tag {
 							if strings.TrimSpace(nextval) == "" {
 								continue
 							}
+							if GetAppointTags(nextval, tagdbs).Len() > 0 || GetAppointTags(k, tagdbs).Len() > 0{
+								continue
+							}
 						}
 					}
 					kvTags[tk.Value] = append(kvTags[tk.Value], &Tag{Key: k, Value: nextval, Weight: tk.Weight})