Roc 1 month ago
parent
commit
68ab35d736
1 changed files with 2 additions and 1 deletions
  1. 2 1
      services/llm_report.go

+ 2 - 1
services/llm_report.go

@@ -154,9 +154,10 @@ func handleReportAddOrModifyKnowledge(reportId, reportChapterId int, title, auth
 		item.Title = title
 		item.Author = author
 		item.TextContent = textContent
+		item.IsPublished = 1
 		item.PublishTime = publishTime
 		item.ModifyTime = time.Now()
-		err = item.Update([]string{"author", "text_content", "publish_time", "modify_time"})
+		err = item.Update([]string{"author", "text_content", "is_published", "publish_time", "modify_time"})
 	} else {
 		// 无数据的时候,需要新增
 		err = nil