Commit 09c2146a LN

料架属于空位展示修改

1 个父辈 45422c2b
......@@ -769,7 +769,7 @@ namespace OnlineStore.DeviceLibrary
CheckAxisAlarm();
ShowTimeLog("轴报警检测完成");
}
ShelfEmptyProcess();
foreach (WorkStation shelf in StationMap.Values)
{
shelf.TimerProcess();
......
......@@ -41,7 +41,7 @@ namespace OnlineStore.DeviceLibrary
string json = HttpHelper.Post(url, "", 2000);
if (rfids != "")
{
LogUtil.info("http :URL:" + url + " :Response:" + json + " 耗时[" + FormUtil.GetSpanStr(DateTime.Now - startTime) + "]");
LogUtil.debug("http :URL:" + url + " :Response:" + json + " 耗时[" + FormUtil.GetSpanStr(DateTime.Now - startTime) + "]");
}
else
{
......@@ -52,13 +52,14 @@ namespace OnlineStore.DeviceLibrary
return map;
}
ResultData result = JsonHelper.DeserializeJsonToObject<ResultData>(json);
if (result.code >= 0 || (!String.IsNullOrEmpty(result.msg))){
RFIDResultData result = JsonHelper.DeserializeJsonToObject<RFIDResultData>(json);
if (result.code > 0||result.data==null)
{
LogUtil.error("getShelfEmptySlot,rfids[" + rfids + "]结果:code=" + result.code + ",msg=" + result.msg);
}
else
{
map = (Dictionary<string, int>)(result.data);
map = result.data;
return map;
}
}
......@@ -354,6 +355,14 @@ namespace OnlineStore.DeviceLibrary
public object data { get; set; }
}
public class RFIDResultData
{
public int code { get; set; }
public string msg { get; set; }
public Dictionary<string,int> data { get; set; }
}
//public class ResultData
//{
// //{"code":0,"msg":"ok","data":"7"}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!