提交 33c636ee authored 作者: lizhuo's avatar lizhuo

--no commit message

上级 c662810b
...@@ -573,12 +573,13 @@ public class EpubResolve { ...@@ -573,12 +573,13 @@ public class EpubResolve {
// 原图片资源路径 // 原图片资源路径
oldImg = img.toString(); oldImg = img.toString();
// 修改替换图片路径 // 修改替换图片路径
if (!imgSrc.contains("/resource")) { // 原图片资源路径
img.attr("src", bookPath + imgSrc); oldImg = img.toString();
// 新的图片资源路径 // 修改替换图片路径
newImg = img.toString(); img.attr("src", "/"+bookPath +"/"+ imgSrc);
content.setText(content.getText().replace(oldImg, newImg)); // 新的图片资源路径
} newImg = img.toString();
content.setText(content.getText().replace(oldImg, newImg));
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论