Sfoglia il codice sorgente

kv金额抽取优化

fengweiqiang 5 anni fa
parent
commit
a73f0c1426
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/jy/pretreated/colonkv.go

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

@@ -829,6 +829,9 @@ func GetKvTags(findkvs []*Kv, title string, tagdbs []string,isSite bool,codeSite
 							}
 						}
 					}
+					if moneyreg.MatchString(tk.Value) {
+						nextval += GetMoneyUnit(k, nextval)
+					}
 					kvTags[tk.Value] = append(kvTags[tk.Value], &Tag{Key: k, Value: nextval, Weight: tk.Weight})
 				}
 			}