Commit cb1630b9 LN

1

1 个父辈 66887678
...@@ -1398,17 +1398,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -1398,17 +1398,8 @@ namespace OnlineStore.DeviceLibrary
return; return;
} }
isInProcess = true; isInProcess = true;
if (StoreManager.IsConnectServer)
{
try try
{ {
SendLineStatus();
}
catch (Exception ex)
{
LOGGER.Error("定时给服务器发送消息出错:", ex);
}
}
if (LineConnect.IsConnect()) if (LineConnect.IsConnect())
{ {
int hasTray = (int)IOManager.IOValue(IO_Type.TrayCheck_Door); int hasTray = (int)IOManager.IOValue(IO_Type.TrayCheck_Door);
...@@ -1419,9 +1410,25 @@ namespace OnlineStore.DeviceLibrary ...@@ -1419,9 +1410,25 @@ namespace OnlineStore.DeviceLibrary
} }
LineConnect.SendHeart(Config.Id, Config.CID, (int)ss, (int)storeRunStatus, hasTray, (int)alarmType); LineConnect.SendHeart(Config.Id, Config.CID, (int)ss, (int)storeRunStatus, hasTray, (int)alarmType);
} }
if (StoreManager.IsConnectServer)
{
try
{
SendLineStatus();
}
catch (Exception ex)
{
LOGGER.Error("定时给服务器发送消息出错:", ex);
}
}
HumitureController.QueryData(); HumitureController.QueryData();
HumidityProcess(); HumidityProcess();
LedProcess(); LedProcess();
}catch(Exception ex)
{
LogUtil.error("server_connect_timer_Tick出错:"+ex.ToString());
}
isInProcess = false; isInProcess = false;
} }
......
...@@ -141,7 +141,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -141,7 +141,7 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
LogUtil.info("收到消息:" + message); LogUtil.debug("收到消息:" + message);
} }
} }
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!