From f6157cc42c048a15f9962653cc957e4a32849bb2 Mon Sep 17 00:00:00 2001 From: Iwan Lebron <105045937+iwanlebron@users.noreply.github.com> Date: 星期一, 10 六月 2024 09:18:37 +0800 Subject: [PATCH] 修复参数名称 --- src/main/java/com/genersoft/iot/vmp/vmanager/streamPush/StreamPushController.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/streamPush/StreamPushController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/streamPush/StreamPushController.java index 8202bf5..010b2f2 100755 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/streamPush/StreamPushController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/streamPush/StreamPushController.java @@ -13,7 +13,7 @@ import com.genersoft.iot.vmp.gb28181.transmit.callback.DeferredResultHolder; import com.genersoft.iot.vmp.gb28181.transmit.callback.RequestMessage; import com.genersoft.iot.vmp.media.zlm.dto.StreamPushItem; -import com.genersoft.iot.vmp.service.IMediaServerService; +import com.genersoft.iot.vmp.media.service.IMediaServerService; import com.genersoft.iot.vmp.service.IMediaService; import com.genersoft.iot.vmp.service.IStreamPushService; import com.genersoft.iot.vmp.service.impl.StreamPushUploadFileHandler; @@ -112,7 +112,7 @@ @ResponseBody @Operation(summary = "涓涓�涓帹娴�", security = @SecurityRequirement(name = JwtUtils.HEADER)) @Parameter(name = "app", description = "搴旂敤鍚�", required = true) - @Parameter(name = "stream", description = "娴乮d", required = true) + @Parameter(name = "streamId", description = "娴乮d", required = true) public void stop(String app, String streamId){ if (!streamPushService.stop(app, streamId)){ throw new ControllerException(ErrorCode.ERROR100); @@ -249,7 +249,7 @@ if (push != null && !push.isSelf()) { throw new ControllerException(ErrorCode.ERROR100.getCode(), "鏉ヨ嚜鍏朵粬骞冲彴鐨勬帹娴佷俊鎭�"); } - StreamInfo streamInfo = mediaService.getStreamInfoByAppAndStreamWithCheck(app, stream, mediaServerId, authority); + StreamInfo streamInfo = mediaServerService.getStreamInfoByAppAndStreamWithCheck(app, stream, mediaServerId, authority); if (streamInfo == null){ throw new ControllerException(ErrorCode.ERROR100.getCode(), "鑾峰彇鎾斁鍦板潃澶辫触"); } @@ -274,7 +274,7 @@ stream.setStatus(false); stream.setPushIng(false); stream.setAliveSecond(0L); - stream.setTotalReaderCount("0"); + stream.setTotalReaderCount(0); if (!streamPushService.add(stream)) { throw new ControllerException(ErrorCode.ERROR100); } -- Gitblit v1.8.0