lixiaojun
2022-11-23 b5c20e5143555a1bdd450a1e660216b90c93b6f1
Server/IStation.DataDocking.Socket/Job/PackageHandleHelper.cs
@@ -35,6 +35,16 @@
                    : ConfigureList.Find(x => x.ConfigureParas.RegisterCode == mySession.RegisterCode);
                if (configure == null)
                {
                    configure = string.IsNullOrEmpty(mySession.Heartbeat) ? ConfigureList.Find(x => x.ConfigureParas.Heartbeat == message_str)
                  : ConfigureList.Find(x => x.ConfigureParas.Heartbeat == mySession.Heartbeat);
                    if (configure != null)
                    {
                        mySession.Close($"关闭:[{configure.Name}]连接,未检测到注册码!");
                        return;
                    }
                }
                if (configure == null)
                {
                    LogHelper.Info($"Socket数据对接任务中,端口:{mySession.Server.Options.Listeners.First().Port},收到一条无法识别的消息:{message_str}");
                    return;
                }
@@ -84,7 +94,6 @@
            });
        }