解决二级目录部署时导入的图片无法显示的BUG

This commit is contained in:
lifei6671 2018-07-11 11:06:21 +08:00
parent 4a715d0785
commit 449fecd4eb

View File

@ -701,7 +701,7 @@ func (book *Book) ImportBook(zipPath string) error {
}
}
imageUrl = strings.Replace(strings.TrimSuffix(image, originalImageUrl+")")+imageUrl+")", "\\", "/", -1)
imageUrl = strings.Replace(strings.TrimSuffix(image, originalImageUrl+")")+ conf.URLForWithCdnImage(imageUrl) +")", "\\", "/", -1)
return imageUrl
})