Эх сурвалжийг харах

fix:知识资源es内容截取

zqbao 6 сар өмнө
parent
commit
dca5716593

+ 1 - 0
services/knowledge/es.go

@@ -177,6 +177,7 @@ func ExtractTextFromResourceContent(content string) (text string) {
 		return
 	}
 	text = doc.Text()
+	text = strings.ReplaceAll(text, "\n", "")
 	return
 }