1、修复导出文档后缀错误的BUG

2、增加自定义导出文档的头部
This commit is contained in:
Minho
2018-01-30 13:21:27 +08:00
parent 9be6d9d437
commit 5f13063346
3 changed files with 20 additions and 10 deletions

View File

@@ -263,6 +263,9 @@ func (m *BookResult) Converter(sessionId string) (ConvertBookResult, error) {
Toc: tocList,
More: []string{},
}
if m.Publisher != "" {
ebookConfig.Footer = "\"<p style='color:#8E8E8E;font-size:12px;'>本文档由 <span style='text-decoration:none;color:#1abc9c;font-weight:bold;'>"+ m.Publisher +"</span> 生成<span style='float:right'>- _PAGENUM_ -</span></p>\""
}
if tempOutputPath, err = filepath.Abs(tempOutputPath); err != nil {
beego.Error("导出目录配置错误:" + err.Error())