Browse Source

kv金额抽取优化

fengweiqiang 5 years ago
parent
commit
a73f0c1426
1 changed files with 3 additions and 0 deletions
  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})
 				}
 			}