Roc 1 ماه پیش
والد
کامیت
68ab35d736
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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