bug:修改文件下载链接的’/‘

This commit is contained in:
wxyclub
2023-08-29 10:17:01 +08:00
parent cae8c9c2ac
commit 31f3ce66b6
@@ -55,8 +55,11 @@ public class AttFileEOServiceImpl extends ServiceImpl<AttFileEODao, AttFileEO> i
//2020年10月25日 此处补充文件的下载地址
StringBuffer downloadFileUrl = new StringBuffer();
// 去除downloadURL末尾的 /
downloadUrl = downloadUrl.substring(0,downloadUrl.length()-1);
downloadFileUrl.append(downloadUrl).append(attFileEO.getFilePath()).append(attFileEO.getFileName());
String url = downloadUrl;
if (url.endsWith("/")) {
url = url.substring(0, url.length() - 1);
}
downloadFileUrl.append(url).append(attFileEO.getFilePath()).append(attFileEO.getFileName());
attFileEO.setDownLoadUrl(downloadFileUrl.toString());
}else{
String fileId = UUIDUtils.randomUUID20();