mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
优化pdf生成逻辑
This commit is contained in:
@@ -534,11 +534,7 @@ func (c *BookController) Release() {
|
||||
}
|
||||
go func(identify string) {
|
||||
models.NewDocument().ReleaseContent(book_id)
|
||||
pdfpath := "cache/" + identify + ".pdf"
|
||||
|
||||
if _,err := os.Stat(pdfpath); os.IsExist(err){
|
||||
os.Remove(pdfpath)
|
||||
}
|
||||
|
||||
}(identify)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user