Explorar el Código

kv金额抽取优化

fengweiqiang hace 5 años
padre
commit
a73f0c1426
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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})
 				}
 			}