|
@@ -641,7 +641,7 @@ public class DeviceQuery {
|
|
|
@Parameter(name = "deviceId", description = "设备国标编号", required = true)
|
|
|
@Parameter(name = "channelId", description = "通道国标编号", required = true)
|
|
|
public void getSnap(HttpServletResponse resp, @PathVariable String deviceId, @PathVariable String channelId) {
|
|
|
-
|
|
|
+ logger.info("[web api] /snap/{deviceId}/{channelId} 请求截图");
|
|
|
try {
|
|
|
final InputStream in = Files.newInputStream(new File("snap" + File.separator + deviceId + "_" + channelId + ".jpg").toPath());
|
|
|
resp.setContentType(MediaType.IMAGE_PNG_VALUE);
|