Explorar o código

kv金额抽取优化

fengweiqiang %!s(int64=5) %!d(string=hai) anos
pai
achega
a73f0c1426
Modificáronse 1 ficheiros con 3 adicións e 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})
 				}
 			}