|
|
|
|
@ -164,13 +164,13 @@ public class RecordInspectionCabinetController extends BaseController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
/**
|
|
|
|
|
* 处理GET请求,返回指定路径的视频文件。
|
|
|
|
|
* @param filePath 视频文件的路径
|
|
|
|
|
* @return ResponseEntity<FileSystemResource> 包含视频文件资源的响应实体
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getVisibleVideo/{filePath}")
|
|
|
|
|
public ResponseEntity<FileSystemResource> getVisibleVideo(@PathVariable String filePath) {
|
|
|
|
|
@GetMapping("/getVisibleVideo/{filePath}")
|
|
|
|
|
public ResponseEntity<FileSystemResource> getVisibleVideo(@PathVariable String filePath) {
|
|
|
|
|
// 获取配置文件中的路径application.yml的profile
|
|
|
|
|
String myPath = RuoYiConfig.getMyPath();
|
|
|
|
|
// 构建完整的文件路径
|
|
|
|
|
@ -204,6 +204,6 @@ public ResponseEntity<FileSystemResource> getVisibleVideo(@PathVariable String f
|
|
|
|
|
// 如果文件不存在,返回404状态
|
|
|
|
|
return ResponseEntity.notFound().build();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|