@@ -60,6 +60,7 @@ func ChapterDetail(c *gin.Context) {
response.FailMsg("查看章节详情出错", err.Error(), c)
return
}
+
response.OkData("查询成功", chapterDetail, c)
@@ -214,6 +214,9 @@ func GetChapterDetail(user user.UserInfo, reportChapterId int) (reportChapterDet
err = errors.New("报告不存在")
+ if reportChapter.Author == `` {
+ reportChapter.Author = reportInfo.Author
+ }
//if reportInfo.ClassifyNameFirst == "周报" && reportChapter.IsEdit != 1 {
// err = errors.New("章节未编辑")
// return