增加项目导出目录配置,可自定义导出的缓存目录

This commit is contained in:
lifei6671
2018-07-11 11:30:48 +08:00
parent 449fecd4eb
commit ebf36e6146
6 changed files with 24 additions and 10 deletions

View File

@@ -707,7 +707,7 @@ func (c *BookController) Release() {
models.NewBook().ReleaseContent(bookId)
//当文档发布后,需要删除已缓存的转换项目
outputPath := filepath.Join(beego.AppConfig.DefaultString("book_output_path", "cache"), strconv.Itoa(bookId))
outputPath := filepath.Join(conf.GetExportOutputPath(), strconv.Itoa(bookId))
os.RemoveAll(outputPath)
}(identify)