Pārlūkot izejas kodu

Merge branch 'feature/eta_2.6.9' into debug

hsun 2 dienas atpakaļ
vecāks
revīzija
0bd34904c9
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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)
 		if e != nil {
 			err = fmt.Errorf("重新计算PDF生成高度失败, %v", e)