[後端] 修改新需求架構
This commit is contained in:
parent
dc17be9d01
commit
305280cf1c
@ -1230,7 +1230,8 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
var abstime = obj["abstime"]["@val"].ToString();
|
var abstime = obj["abstime"]["@val"].ToString();
|
||||||
historyRawData.Timestamp = Convert.ToDateTime(abstime).ToString("yyyy-MM-dd HH:mm:ss");
|
historyRawData.Timestamp = Convert.ToDateTime(abstime).ToString("yyyy-MM-dd HH:mm:ss");
|
||||||
//取得資料
|
//取得資料
|
||||||
historyRawData.Value = obj["real"]["@val"].ToString();
|
string tag = device_item_info.Points.Equals("st") || device_item_info.Points.Equals("ST") ? "bool" : "real";
|
||||||
|
historyRawData.Value = obj[tag]["@val"].ToString();
|
||||||
|
|
||||||
historyRawDatas.Add(historyRawData);
|
historyRawDatas.Add(historyRawData);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user