From 6de6c0955d2489c8e1acf2701b19ea5951217388 Mon Sep 17 00:00:00 2001 From: chendaofei <857448963@qq.com> Date: Wed, 8 Jan 2025 14:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gather/detection/controller/PreDetectionController.java | 6 +++--- .../detection/util/socket/cilent/NettyDevClientHandler.java | 2 +- .../util/socket/cilent/NettySourceClientHandler.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/detection/src/main/java/com/njcn/gather/detection/controller/PreDetectionController.java b/detection/src/main/java/com/njcn/gather/detection/controller/PreDetectionController.java index 54f1b55d..2adc871d 100644 --- a/detection/src/main/java/com/njcn/gather/detection/controller/PreDetectionController.java +++ b/detection/src/main/java/com/njcn/gather/detection/controller/PreDetectionController.java @@ -61,14 +61,14 @@ public class PreDetectionController extends BaseController { } /** - * 开始预检测 + * 开始检测 */ @PostMapping("/startPreTest") @OperateInfo - @ApiOperation("开始预检测") + @ApiOperation("开始检测") @ApiImplicitParam(name = "param", value = "查询参数", required = true) public HttpResult startPreTest(@RequestBody PreDetectionParam param){ - System.out.println("系数校验controller进入================================22"); + System.out.println("开始检测controller进入================================22"); String methodDescribe = getMethodDescribe("startPreTest"); preDetectionService.sourceCommunicationCheck(param); return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe); diff --git a/detection/src/main/java/com/njcn/gather/detection/util/socket/cilent/NettyDevClientHandler.java b/detection/src/main/java/com/njcn/gather/detection/util/socket/cilent/NettyDevClientHandler.java index 7d6d8be7..e9cf8435 100644 --- a/detection/src/main/java/com/njcn/gather/detection/util/socket/cilent/NettyDevClientHandler.java +++ b/detection/src/main/java/com/njcn/gather/detection/util/socket/cilent/NettyDevClientHandler.java @@ -48,7 +48,7 @@ public class NettyDevClientHandler extends SimpleChannelInboundHandler { * @param ctx */ @Override - public void channelActive(ChannelHandlerContext ctx) { + public void channelActive(ChannelHandlerContext ctx)throws Exception { System.out.println("客户端通道已建立" + ctx.channel().id()); Channel channel = SocketManager.getChannelByUserId(param.getUserPageId()+dev); if(Objects.nonNull(channel)){ diff --git a/detection/src/main/java/com/njcn/gather/detection/util/socket/cilent/NettySourceClientHandler.java b/detection/src/main/java/com/njcn/gather/detection/util/socket/cilent/NettySourceClientHandler.java index 466214a8..01402668 100644 --- a/detection/src/main/java/com/njcn/gather/detection/util/socket/cilent/NettySourceClientHandler.java +++ b/detection/src/main/java/com/njcn/gather/detection/util/socket/cilent/NettySourceClientHandler.java @@ -69,7 +69,7 @@ public class NettySourceClientHandler extends SimpleChannelInboundHandler