From e42f8981bf302c513842ed3def25109b31e03525 Mon Sep 17 00:00:00 2001 From: rszn <645583145@qq.com> Date: Wed, 12 Jun 2024 18:34:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E8=BF=9E=E6=88=90=E5=8A=9F=E5=90=8E?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEsession=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Charger/Client/ClientMgr.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Service/Charger/Client/ClientMgr.cs b/Service/Charger/Client/ClientMgr.cs index d6cc724..9d0b752 100644 --- a/Service/Charger/Client/ClientMgr.cs +++ b/Service/Charger/Client/ClientMgr.cs @@ -95,7 +95,11 @@ public static class ClientMgr client.BinNo = binInfo?.No; client.BatteryNo = binInfo?.BatteryNo; client.LogName = "Charger" + netInfo.Code; - client.ConnectedEventHandler += (sender, b) => client.SendAuth(); + client.ConnectedEventHandler += (sender, b) => + { + client.SessionAttr(netInfo.Code, netInfo.DestAddr); + client.SendAuth(); + }; client.InitBootstrap(netInfo.NetAddr, int.Parse(netInfo.NetPort)); Task.Run(() =>