Commit cb1630b9 LN

1

1 个父辈 66887678
...@@ -1398,30 +1398,37 @@ namespace OnlineStore.DeviceLibrary ...@@ -1398,30 +1398,37 @@ namespace OnlineStore.DeviceLibrary
return; return;
} }
isInProcess = true; isInProcess = true;
if (StoreManager.IsConnectServer) try
{ {
try if (LineConnect.IsConnect())
{ {
SendLineStatus(); int hasTray = (int)IOManager.IOValue(IO_Type.TrayCheck_Door);
int ss = (int)storeStatus;
if (IsDebug)
{
ss = (int)StoreStatus.Debugging;
}
LineConnect.SendHeart(Config.Id, Config.CID, (int)ss, (int)storeRunStatus, hasTray, (int)alarmType);
} }
catch (Exception ex) if (StoreManager.IsConnectServer)
{ {
LOGGER.Error("定时给服务器发送消息出错:", ex); try
{
SendLineStatus();
}
catch (Exception ex)
{
LOGGER.Error("定时给服务器发送消息出错:", ex);
}
} }
}
if (LineConnect.IsConnect()) HumitureController.QueryData();
HumidityProcess();
LedProcess();
}catch(Exception ex)
{ {
int hasTray = (int)IOManager.IOValue(IO_Type.TrayCheck_Door); LogUtil.error("server_connect_timer_Tick出错:"+ex.ToString());
int ss = (int)storeStatus;
if (IsDebug)
{
ss = (int)StoreStatus.Debugging;
}
LineConnect.SendHeart(Config.Id, Config.CID, (int)ss, (int)storeRunStatus, hasTray, (int)alarmType);
} }
HumitureController.QueryData();
HumidityProcess();
LedProcess();
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!