Commit 4633df22 LN

托盘号大于0才上传

1 个父辈 a64130bc
...@@ -928,15 +928,18 @@ namespace OnlineStore.DeviceLibrary ...@@ -928,15 +928,18 @@ namespace OnlineStore.DeviceLibrary
} }
foreach (TrayDisableInfo dis in trayDisList) foreach (TrayDisableInfo dis in trayDisList)
{ {
if (dis.TrayCode > 0)
{
if (String.IsNullOrEmpty(disabledTray)) if (String.IsNullOrEmpty(disabledTray))
{ {
disabledTray += "E" + dis.TrayCode+"="+dis.DeviceId; disabledTray += "E" + dis.TrayCode + "=" + dis.DeviceId;
} }
else else
{ {
disabledTray += ",E" + dis.TrayCode + "=" + dis.DeviceId; disabledTray += ",E" + dis.TrayCode + "=" + dis.DeviceId;
} }
} }
}
try try
{ {
//code= 0 表示正常,其他为异常 //code= 0 表示正常,其他为异常
...@@ -964,6 +967,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -964,6 +967,10 @@ namespace OnlineStore.DeviceLibrary
private static string Addr_updateTray = "/rest/api/qisda/device/updateTray"; private static string Addr_updateTray = "/rest/api/qisda/device/updateTray";
public static void updateTray(int trayNum) public static void updateTray(int trayNum)
{ {
if (trayNum <= 0)
{
return;
}
Task.Factory.StartNew(delegate Task.Factory.StartNew(delegate
{ {
try try
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!