|
@@ -3516,7 +3516,7 @@ func (this *ReportController) PrePublishReport() {
|
|
|
}
|
|
|
|
|
|
// 生成报告pdf和长图
|
|
|
- if report.HasChapter == 1 && (report.ChapterType == utils.REPORT_TYPE_DAY || report.ChapterType == utils.REPORT_TYPE_WEEK) && req.ReportUrl != "" {
|
|
|
+ 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)
|
|
|
}
|
|
|
|