浏览代码

Merge branch 'feature/eta_2.6.9' into debug

hsun 2 天之前
父节点
当前提交
0bd34904c9
共有 1 个文件被更改,包括 2 次插入2 次删除
  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)