Browse Source

Merge branch 'crm1.0' of hongze/hongze_mobile_admin into master

颜鹏 3 years ago
parent
commit
0fbf10a049
1 changed files with 2 additions and 2 deletions
  1. 2 2
      services/word.go

+ 2 - 2
services/word.go

@@ -1831,7 +1831,7 @@ func FuncDocs2Pdf(command string, fileSrcPath string, fileOutDir string, convert
 	//convert
 	cmd := exec.Command(command, "--invisible", "--convert-to", converterType,
 		fileSrcPath, "--outdir", fileOutDir)
-	_, errByCmdStart := cmd.Output()
+	byteByStat, errByCmdStart := cmd.Output()
 	//命令调用转换失败
 	if errByCmdStart != nil {
 		return "", errByCmdStart
@@ -1843,6 +1843,6 @@ func FuncDocs2Pdf(command string, fileSrcPath string, fileOutDir string, convert
 	} else {
 		fileOutPath += ".pdf"
 	}
-	//fmt.Println("文件转换成功...", string(byteByStat))
+	fmt.Println("文件转换成功...", string(byteByStat))
 	return fileOutPath, nil
 }