fengweiqiang %!s(int64=5) %!d(string=hai) anos
pai
achega
42561c9f45
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/jy/extract/extract.go

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

@@ -268,6 +268,9 @@ func (e *ExtractTask) PreInfo(doc map[string]interface{}) (j, jf *ju.Job, isSite
 		file2text(&doc) //附件文本堆一起(后期可以考虑,分开处理),方法里修改了doc["detailfile"]结果
 	}
 	if utf8.RuneCountInString(detail) < 2000 {
+		if doc["detailfile"] == nil || doc["detailfile"] == "" {
+			file2text(&doc) //附件文本堆一起(后期可以考虑,分开处理),方法里修改了doc["detailfile"]结果
+		}
 		detail += qu.ObjToString(doc["detailfile"])
 		doc["detail"] = detail
 	} else {