fengweiqiang 6 anni fa
parent
commit
a436827296
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/jy/extract/score.go

+ 3 - 0
src/jy/extract/score.go

@@ -110,6 +110,9 @@ func ScoreFields(j *ju.Job, ftag map[string][]*Tag) map[string][]*ju.ExtField {
 		}
 		locktag.Lock()
 		taglength := len(ftag[field])
+		if taglength == 0{
+			continue
+		}
 		locktag.Unlock()
 		for tmpsindex, tmpsvalue := range tmps {
 			//没有抽取到值,不打分