[後端] 修改新需求架構

This commit is contained in:
dev02 2024-01-29 09:28:29 +08:00
parent dc17be9d01
commit 305280cf1c

View File

@ -1230,7 +1230,8 @@ namespace FrontendWebApi.ApiControllers
var abstime = obj["abstime"]["@val"].ToString();
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);
}