Browse Source

fix: PDF比例调整

hsun 3 days ago
parent
commit
929254c457
1 changed files with 2 additions and 2 deletions
  1. 2 2
      services/smart_report.go

+ 2 - 2
services/smart_report.go

@@ -341,8 +341,8 @@ func Report2pdfAndJpeg(reportUrl string, reportId, reportType int) {
 		}
 		}
 	}
 	}
 
 
-	// 7/10为A4的比例,不需要重新算
-	if freeRatio != "" && freeRatio != "7/10" {
+	// 重新比例
+	if freeRatio != "" {
 		h, e := calculateReportPdfHeight(pcWidth, freeRatio)
 		h, e := calculateReportPdfHeight(pcWidth, freeRatio)
 		if e != nil {
 		if e != nil {
 			err = fmt.Errorf("重新计算PDF生成高度失败, %v", e)
 			err = fmt.Errorf("重新计算PDF生成高度失败, %v", e)