|
|
|
@ -42,7 +42,9 @@ public class HeartBeatMsgHandler : SimpleChannelInboundHandler<HeartBeatMsg>, IB
|
|
|
|
|
ioSession.BusinessMap.AddOrUpdate("HeartBeatMsg", msg, ((s, o) => msg));
|
|
|
|
|
ioSession?.BusinessMap.AddOrUpdate("Connected", true, ((s, o) => true));
|
|
|
|
|
|
|
|
|
|
HeartBeatMsgResp resp = new HeartBeatMsgResp(CarServerMgr.CarServer.StationStatus)
|
|
|
|
|
byte stationStatus = msg.CarNo == CarServerMgr.CarServer.VIN ? CarServerMgr.CarServer.StationStatus :(byte)1;
|
|
|
|
|
|
|
|
|
|
HeartBeatMsgResp resp = new HeartBeatMsgResp(stationStatus)
|
|
|
|
|
{
|
|
|
|
|
CarNo = msg.CarNo
|
|
|
|
|
};
|
|
|
|
|