提交 5785ce88 authored 作者: yucaiwei's avatar yucaiwei

--no commit message

上级 1dc37a89
......@@ -161,6 +161,23 @@ public class FileController {
}
return CallBack.success(filePath);
}
@ApiOperation(value = "获取视频第一帧切片")
@RequestMapping(value = "/getVideoImg", method = RequestMethod.GET)
public CallBack<String> getFilePath(String fileName) throws Exception {
String filePath = null;
if (StringUtils.isNotBlank(fileName)) {
FileInfo entity = new FileInfo();
entity.setFileName(fileName);
entity = service.selectOne(entity);
if (entity.getId() == null) {
throw new BaseException(1,"没有找到该文件!");
}
fileName = entity.getOriginalFileName();
filePath = "/sc/" + entity.getPath()+"/"+entity.getFileName() + "/1.jpg";
}
return CallBack.success(filePath);
}
@ApiOperation(value = "在线打开")
@RequestMapping(value = "/", method = RequestMethod.GET)
public void downLoad(String fileName, HttpServletRequest request, HttpServletResponse response, boolean isOnLine)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论