1、完善日志配置

2、文章自动生成摘要
3、修正文档名称问题
4、修复Redis无法读取缓存的BUG
This commit is contained in:
lifei6671
2018-07-25 14:46:56 +08:00
parent 774530bbc2
commit 1cbdd4baca
11 changed files with 226 additions and 73 deletions

View File

@@ -510,8 +510,6 @@ func (this *Converter) convertToMobi() (err error) {
args := []string{
filepath.Join(this.OutputPath, "content.epub"),
filepath.Join(this.OutputPath, output, "book.mobi"),
"--debug-pipeline",
"--verbose",
}
cmd := exec.Command(ebookConvert, args...)
if this.Debug {
@@ -526,8 +524,6 @@ func (this *Converter) convertToPdf() (err error) {
args := []string{
filepath.Join(this.OutputPath, "content.epub"),
filepath.Join(this.OutputPath, output, "book.pdf"),
"--debug-pipeline",
"--verbose",
}
//页面大小
if len(this.Config.PaperSize) > 0 {
@@ -579,8 +575,6 @@ func (this *Converter) convertToDocx() (err error) {
args := []string{
filepath.Join(this.OutputPath , "content.epub"),
filepath.Join(this.OutputPath , output , "book.docx"),
"--debug-pipeline",
"--verbose",
}
args = append(args, "--docx-no-toc")