Browse Source

增加width左右布局

kobe6258 1 week ago
parent
commit
7526d4eda0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/smart_report.go

+ 1 - 1
services/smart_report.go

@@ -186,7 +186,7 @@ finally:
     loop.close()
 `
 
-	pyCode = fmt.Sprintf(pyCode, utils.ChromePath, width, reportUrl, width, filePath, top, bottom, left, right)
+	pyCode = fmt.Sprintf(pyCode, utils.ChromePath, width+left+right, reportUrl, width, filePath, top, bottom, left, right)
 	utils.FileLog.Info("pdf pyCode: \n" + pyCode)
 	cmd := exec.Command("python3", "-c", pyCode)
 	output, e := cmd.CombinedOutput()