From 2e1766b31e889d9ee54d433476d031220dfda294 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期日, 27 四月 2025 17:46:24 +0800 Subject: [PATCH] 处理异常报错 --- ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/UPLinkTestReqService.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/UPLinkTestReqService.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/UPLinkTestReqService.java index cddbd25..f260013 100644 --- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/UPLinkTestReqService.java +++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/UPLinkTestReqService.java @@ -37,8 +37,10 @@ return; } int gnsscenterId = out.getGnsscenterId(); + //保存链路 ChannelMap.addServerChannel(gnsscenterId, ctx.channel()); - OuterPacket rep = new OuterPacket(DataType.UP_LINKTEST_RSP.getCode(), null); + OuterPacket rep = new OuterPacket(DataType.UP_LINKTEST_RSP.getCode(), gnsscenterId, null); + rep.setGnsscenterId(gnsscenterId); log.info("主链路连接保持应答({}):{}", DataType.UP_LINKTEST_RSP.getCode(), JSON.toJSONString(rep)); ctx.writeAndFlush(rep); } -- Gitblit v1.7.1