瀏覽代碼

Merge remote-tracking branch 'origin/branch-nt-1.0.1' into branch-nt-1.0.1

yangyang 3 年之前
父節點
當前提交
38dd362281

+ 2 - 2
eladmin-system/src/main/java/me/zhengjie/application/admin/controller/AdminDocEditorController.java

@@ -31,10 +31,10 @@ public class AdminDocEditorController {
     private final HtmlConvertToPdf htmlConvertToPdf;
 
     @AnonymousGetMapping("/convert-pdf")
-    public void convertToPdf(@RequestParam String srcFileName, @RequestParam String destFileNmae) {
+    public void convertToPdf(@RequestParam String srcFileName, @RequestParam String destFileName) {
         String path = "/Users/sakuya/Downloads/";
         String srcFilePath = path + srcFileName + ".html";
-        String destFilePath = path + destFileNmae + ".pdf";
+        String destFilePath = path + destFileName + ".pdf";
         try {
             htmlConvertToPdf.converPdf(FileUtil.readString(new File(srcFilePath), "UTF-8"), destFilePath);
         } catch (Exception e) {