|
|
@ -154,14 +154,11 @@ namespace Ems.CollectService.Analysis
|
|
|
|
if(SendMessageAsync(client, SendMessagePackInfo))
|
|
|
|
if(SendMessageAsync(client, SendMessagePackInfo))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
logger.Debug($"向客户端:{client.ID};地址:{client.GetIPPort()};回复心跳指令成功");
|
|
|
|
logger.Debug($"向客户端:{client.ID};地址:{client.GetIPPort()};回复心跳指令成功");
|
|
|
|
if (client.ID.Contains("450063"))
|
|
|
|
Thread.Sleep(500);
|
|
|
|
{
|
|
|
|
SendMessagePackInfo.m_MessageType = (byte)CallbackSendData._SetTime;
|
|
|
|
Thread.Sleep(500);
|
|
|
|
SendMessagePackInfo.m_PackLen = new byte[] {0x00, 0x0D};
|
|
|
|
SendMessagePackInfo.m_MessageType = (byte)CallbackSendData._SetTime;
|
|
|
|
bool isRes = SendTimeSyncToClient(client, SendMessagePackInfo);
|
|
|
|
SendMessagePackInfo.m_PackLen = new byte[] {0x00, 0x0D};
|
|
|
|
logger.Info($"向客户端:{client.ID};地址:{client.GetIPPort()};发送校时指令{(isRes ? "成功":"失败")}");
|
|
|
|
bool isRes = SendTimeSyncToClient(client, SendMessagePackInfo);
|
|
|
|
|
|
|
|
logger.Info($"向客户端:{client.ID};地址:{client.GetIPPort()};发送校时指令{(isRes ? "成功":"失败")}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|