diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/streamProxy/StreamProxyController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/streamProxy/StreamProxyController.java index 70d9b73c..4cef4a03 100755 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/streamProxy/StreamProxyController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/streamProxy/StreamProxyController.java @@ -191,14 +191,14 @@ public class StreamProxyController { } } - @DeleteMapping(value = "/del/id") + @DeleteMapping(value = "/delete/id") @ResponseBody @Operation(summary = "使用ID移除代理", security = @SecurityRequirement(name = JwtUtils.HEADER)) @Parameter(name = "app", description = "应用名", required = true) @Parameter(name = "stream", description = "流id", required = true) public void del(@RequestBody StreamProxy proxy){ - logger.info("移除代理: " + proxy.getGbId()); - if (ObjectUtils.isEmpty(proxy.getGbId())) { + logger.info("移除代理: " + proxy.getId()); + if (proxy.getId() <= 0) { throw new ControllerException(ErrorCode.ERROR400.getCode(), "缺少ID"); }else { streamProxyService.delById(proxy.getId());