|
|
@@ -496,6 +496,15 @@ public class FlowInfoServiceImpl extends ServiceImpl<FlowInfoMapper, FlowInfo> i
|
|
|
FileDetail fileDetail = fileInfoService.getFileSize(latestFile.getUrl())
|
|
|
.setUrl(latestFile.getUrl())
|
|
|
.setFilename(latestFile.getName());
|
|
|
+
|
|
|
+ //预览链接
|
|
|
+ String previewUrl = systemPropertiesService.getValue("previewUrl");
|
|
|
+ Map<String, String> formatMap = new HashMap<>();
|
|
|
+ formatMap.put("userId", UserUtil.getUserId().toString());
|
|
|
+ formatMap.put("userName", UserUtil.getUserName());
|
|
|
+ formatMap.put("url", fileDetail.getUrl());
|
|
|
+ fileDetail.setPreviewUrl(StrUtil.format(previewUrl, formatMap));
|
|
|
+
|
|
|
return Collections.singletonList(fileDetail);
|
|
|
}
|
|
|
}
|