可选是否要文件头

This commit is contained in:
shikong 2023-09-21 14:53:17 +08:00
parent 8a7c1e7edd
commit b12cdba22f

View File

@ -45,7 +45,7 @@ public class VideoController {
@Operation(summary = "获取视频 (目前仅供测试)")
@GetMapping(produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
@ResponseBody
public void video(HttpServletRequest request, HttpServletResponse response, @ParameterObject VideoReq req, @RequestParam("fileHeader") Boolean fileHeader) {
public void video(HttpServletRequest request, HttpServletResponse response, @ParameterObject VideoReq req, @RequestParam(value = "fileHeader",required = false) Boolean fileHeader) {
if(proxyConfig.getEnable()){
wvpService.video(request,response,req.getDeviceCode(), req.getStartTime(), req.getEndTime());
} else {