Commit 8786baf1 LN

料仓或者移栽调试状态时,不获取库位号

1 个父辈 5a77e3ee
...@@ -204,6 +204,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -204,6 +204,9 @@ namespace OnlineStore.DeviceLibrary
TimeSpan span = DateTime.Now - box.LastMsgTime; TimeSpan span = DateTime.Now - box.LastMsgTime;
if (span.TotalSeconds < ClientKeepSecond) if (span.TotalSeconds < ClientKeepSecond)
{ {
LineStatus status = (LineStatus)box.SStatus;
if ((!status.Equals(LineStatus.Debugging)) && (!status.Equals(LineStatus.SuddenStop)))
{
if (LineManager.Line.CanIntore(box.ID)) if (LineManager.Line.CanIntore(box.ID))
{ {
result += box.CId + ","; result += box.CId + ",";
...@@ -211,6 +214,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -211,6 +214,7 @@ namespace OnlineStore.DeviceLibrary
} }
} }
} }
}
if (result.EndsWith(",")) if (result.EndsWith(","))
{ {
result = result.Substring(0, result.Length - 1); result = result.Substring(0, result.Length - 1);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!