提交 2bf33722 authored 作者: yucaiwei's avatar yucaiwei

--no commit message

上级 614979e8
...@@ -584,7 +584,7 @@ public class EpubResolve { ...@@ -584,7 +584,7 @@ public class EpubResolve {
// 原图片资源路径 // 原图片资源路径
oldImg = img.toString(); oldImg = img.toString();
// 修改替换图片路径 // 修改替换图片路径
img.attr("src", "/" + bookPath + "/" + imgSrc); img.attr("src", "http://zgsccbs.com/" + bookPath + "/" + imgSrc);
// 新的图片资源路径 // 新的图片资源路径
newImg = img.toString(); newImg = img.toString();
content.setText(content.getText().replace(oldImg, newImg)); content.setText(content.getText().replace(oldImg, newImg));
...@@ -700,6 +700,10 @@ public class EpubResolve { ...@@ -700,6 +700,10 @@ public class EpubResolve {
entity.setFileName(uuid); entity.setFileName(uuid);
entity.setOriginalFileName(fileName); entity.setOriginalFileName(fileName);
entity.setSuffixName(suffixName); entity.setSuffixName(suffixName);
if(path.contains("sc")){
int i = path.indexOf("sc");
path = "/" + path.substring(i);
}
entity.setPath(path); entity.setPath(path);
entity.setContentType(contentType); entity.setContentType(contentType);
entity.setSize(file.getSize()); entity.setSize(file.getSize());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论