Przeglądaj źródła

fix:权益报告

Roc 1 tydzień temu
rodzic
commit
9afab79c42
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      controllers/llm/report.go

+ 4 - 0
controllers/llm/report.go

@@ -144,6 +144,10 @@ func (c *RagEtaReportController) ArticleDetail() {
 				return
 			}
 			content = reportInfo.Content
+			// 如果是rai报告,则使用纯文本的报告内容
+			if reportInfo.RaiReportId > 0 {
+				content = item.TextContent
+			}
 		} else {
 			// 章节报告
 			reportChapterInfo, err := models.GetReportChapterInfoById(item.ReportChapterId)