From bf12bf1aad1ea43fcd99038d066ac3157d847f5a Mon Sep 17 00:00:00 2001 From: liuqingkun Date: Thu, 1 Jun 2023 16:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../websocket/WsChannelInboundHandler.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/jtt808-server/src/main/java/io/github/yezhihao/netmc/websocket/WsChannelInboundHandler.java b/jtt808-server/src/main/java/io/github/yezhihao/netmc/websocket/WsChannelInboundHandler.java index eb3c8ab..9805594 100644 --- a/jtt808-server/src/main/java/io/github/yezhihao/netmc/websocket/WsChannelInboundHandler.java +++ b/jtt808-server/src/main/java/io/github/yezhihao/netmc/websocket/WsChannelInboundHandler.java @@ -1,5 +1,6 @@ package io.github.yezhihao.netmc.websocket; +import io.github.yezhihao.netmc.session.SessionManager; import io.netty.channel.Channel; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; @@ -10,6 +11,7 @@ import io.netty.util.concurrent.GlobalEventExecutor; import io.netty.util.internal.StringUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; import org.yzh.commons.constant.BusinessConstant; import org.yzh.commons.util.BusinessCacheUtil; import org.yzh.web.util.SendCommandUtil; @@ -24,6 +26,9 @@ public class WsChannelInboundHandler extends SimpleChannelInboundHandler 0) { SendCommandUtil.getService().sendToDevice(null, null); } // emptyTimes = 0;