Commit b5165932 authored by yanzg's avatar yanzg

文件处理

parent ef97b87b
......@@ -107,6 +107,8 @@ public class YzgFileConfig {
}
private String getUrl(String folder, String fromUrl) {
return String.format("%s/%s", folder, fromUrl);
return String.format("%s/%s",
StringHelper.trimEnd(folder, "/"),
StringHelper.trimStart(fromUrl, "/"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment