浏览代码

fix:权益报告

Roc 1 周之前
父节点
当前提交
9afab79c42
共有 1 个文件被更改,包括 4 次插入0 次删除
  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)