|
@@ -367,10 +367,12 @@ func (this *ReportController) PublishReport() {
|
|
|
_, _ = models.AddReportStateRecord(recordItem)
|
|
|
}()
|
|
|
|
|
|
+ // 生成报告pdf和长图
|
|
|
+ if req.ReportUrl != "" {
|
|
|
+ go services.Report2pdfAndJpeg(req.ReportUrl, report.Id, 1)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- // 生成报告pdf和长图
|
|
|
- go services.Report2pdfAndJpeg(req.ReportUrl, report.Id, 1)
|
|
|
}
|
|
|
// 发布晨周报部分章节未发布的提示
|
|
|
if tips != "" {
|
|
@@ -3513,6 +3515,11 @@ func (this *ReportController) PrePublishReport() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ // 生成报告pdf和长图
|
|
|
+ if report.HasChapter == 1 && (report.ChapterType == utils.REPORT_TYPE_DAY || report.ChapterType == utils.REPORT_TYPE_WEEK) && req.ReportUrl != "" {
|
|
|
+ go services.Report2pdfAndJpeg(req.ReportUrl, report.Id, 1)
|
|
|
+ }
|
|
|
+
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "定时发布成功"
|