Browse Source

Merge branch 'fix/1.8.3' into debug

Roc 9 months ago
parent
commit
5cc3eace5c
3 changed files with 10 additions and 1 deletions
  1. 5 0
      controllers/report_chapter.go
  2. 3 0
      controllers/report_v2.go
  3. 2 1
      services/report_v2.go

+ 5 - 0
controllers/report_chapter.go

@@ -255,6 +255,7 @@ func (this *ReportController) EditChapterBaseInfoAndPermission() {
 	if reportInfo.State == 2 {
 		br.Msg = "该报告已发布,不允许编辑"
 		br.ErrMsg = "该报告已发布,不允许编辑"
+		br.IsSendEmail = false
 		return
 	}
 
@@ -370,6 +371,7 @@ func (this *ReportController) EditDayWeekChapter() {
 	if reportInfo.State == 2 {
 		br.Msg = "该报告已发布,不允许编辑"
 		br.ErrMsg = "该报告已发布,不允许编辑"
+		br.IsSendEmail = false
 		return
 	}
 	// 报告的最后编辑人
@@ -558,6 +560,7 @@ func (this *ReportController) DelChapter() {
 	if reportInfo.State == 2 {
 		br.Msg = "该报告已发布,不允许编辑"
 		br.ErrMsg = "该报告已发布,不允许编辑"
+		br.IsSendEmail = false
 		return
 	}
 
@@ -1310,6 +1313,7 @@ func (this *ReportController) PublishDayWeekReportChapter() {
 	if reportInfo.State == 2 {
 		br.Msg = "该报告已发布,不允许编辑"
 		br.ErrMsg = "该报告已发布,不允许编辑"
+		br.IsSendEmail = false
 		return
 	}
 
@@ -1577,6 +1581,7 @@ func (this *ReportController) EditChapterTitle() {
 	if reportInfo.State == 2 {
 		br.Msg = "该报告已发布,不允许编辑"
 		br.ErrMsg = "该报告已发布,不允许编辑"
+		br.IsSendEmail = false
 		return
 	}
 	// 报告的最后编辑人

+ 3 - 0
controllers/report_v2.go

@@ -567,6 +567,7 @@ func (this *ReportController) Edit() {
 	if reportInfo.State == models.ReportStatePublished || reportInfo.State == models.ReportStatePass {
 		br.Msg = "该报告已发布,不允许编辑"
 		br.ErrMsg = "该报告已发布,不允许编辑"
+		br.IsSendEmail = false
 		return
 	}
 
@@ -736,6 +737,7 @@ func (this *ReportController) SaveReportContent() {
 	if reportInfo != nil && reportInfo.State == 2 {
 		br.Msg = "该报告已发布,不允许编辑"
 		br.ErrMsg = "该报告已发布,不允许编辑"
+		br.IsSendEmail = false
 		return
 	}
 
@@ -1144,6 +1146,7 @@ func (this *ReportController) EditLayoutImg() {
 	if reportInfo.State == models.ReportStatePublished || reportInfo.State == models.ReportStatePass {
 		br.Msg = "该报告已发布,不允许编辑"
 		br.ErrMsg = "该报告已发布,不允许编辑"
+		br.IsSendEmail = false
 		return
 	}
 

+ 2 - 1
services/report_v2.go

@@ -1386,7 +1386,8 @@ func UpdateReportVideo(reportInfo *models.Report) {
 		for _, chapter := range chapterList {
 			if chapter.PublishState == 2 {
 				reportChapterIdList = append(reportChapterIdList, chapter.ReportChapterId)
-				reportContent += chapter.Content
+				reportContent += chapter.Title + `。`
+				reportContent += chapter.Content + `。`
 			}
 		}
 		if len(reportChapterIdList) > 0 {