소스 검색

Merge branch 'feature/eta_2.6.9' into debug

hsun 4 일 전
부모
커밋
6449842735
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      services/smart_report.go

+ 2 - 2
services/smart_report.go

@@ -368,8 +368,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)