Commit b3b01254 LN

增加关门命令

1 个父辈 e931b448
......@@ -199,6 +199,8 @@ namespace OnlineStore.Common
/// <summary>
/// 温度报警值
/// </summary>
public static string maxTemperature = "temp";
public static string maxTemperature = "temp";
public static string closeDoor = "closeDoor";
public static object doit = "doit";
}
}
......@@ -698,6 +698,17 @@ namespace OnlineStore.DeviceLibrary
//发送状态信息到服务器
if (resultOperation == null || (resultOperation.op <= 0))
{
if (resultOperation.data != null)
{
Dictionary<string, string> dataMap = resultOperation.data;
//closeDoor = doit 和 openDoor = doit
if (dataMap.ContainsKey(ParamDefine.closeDoor) && dataMap[ParamDefine.closeDoor].Equals(ParamDefine.doit))
{
LogUtil.info(Name + "收到服务器命令:closeDoor=doit");
SureCloseDoor();
}
}
//判断服务端是否返回出库操作
return;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!