|
@@ -659,7 +659,7 @@ func (ts *TableResult) Analy() {
|
|
|
//核心模块
|
|
|
ts := tn.Analy(contactFormat)
|
|
|
for _, tab := range ts {
|
|
|
- if len(tab.TRs) > 0{
|
|
|
+ if len(tab.TRs) > 0 {
|
|
|
tabs = append(tabs, tab)
|
|
|
}
|
|
|
//fmt.Println("tab.SortKV.Map", tab.SortKV.Keys)
|
|
@@ -840,7 +840,7 @@ func (tn *Table) AnalyTables(contactFormat *u.ContactFormat) []*Table {
|
|
|
table.KVFilter()
|
|
|
}
|
|
|
for k, v := range table.StandKV { //过滤后的标准化kv
|
|
|
- if table.TableResult.SortKV.Map[k] == nil {
|
|
|
+ if table.TableResult.SortKV.Map[k] == nil || table.StandKVWeight[k] > table.TableResult.SortKVWeight[k] {
|
|
|
table.TableResult.SortKV.AddKey(k, v)
|
|
|
table.TableResult.SortKVWeight[k] = table.StandKVWeight[k]
|
|
|
}
|