修复图片显示
This commit is contained in:
@@ -251,7 +251,11 @@ public class IReportOutputServiceImpl implements ReportOutputService {
|
||||
return files.stream()
|
||||
.filter(f -> expectedName.equals(f.getFileName()))
|
||||
.findFirst()
|
||||
.map(f -> (reportProperties.getFiles().getServerUrl() + "/" + f.getFilePath()).replace("\\", "/").replace("//", "/"))
|
||||
.map(f -> {
|
||||
String server = reportProperties.getFiles().getServerUrl().replaceAll("/+$", "");
|
||||
String path = f.getFilePath().replace("\\", "/").replaceAll("^/+", "");
|
||||
return server + "/" + path;
|
||||
})
|
||||
.orElse("");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user