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