This commit is contained in:
Lemon
2024-08-01 14:56:51 +08:00
70 changed files with 162 additions and 106 deletions

View File

@@ -92,7 +92,7 @@ public class ElectricBicyclesServerHandler extends ChannelInboundHandlerAdapter
}
// 处理数据
byte[] response = ykcService.process(msg, channel);
byte[] response = ykcService.process(msg, ctx);
if (Objects.nonNull(response)) {
// 响应客户端
ByteBuf buffer = ctx.alloc().buffer().writeBytes(response);

View File

@@ -92,7 +92,7 @@ public class NettyServerHandler extends SimpleChannelInboundHandler {
}
// 处理数据
byte[] response = ykcService.process(msg, channel);
byte[] response = ykcService.process(msg, ctx);
if (Objects.nonNull(response)) {
// 响应客户端
ByteBuf buffer = ctx.alloc().buffer().writeBytes(response);