diff --git a/FrontendWebApi/ApiControllers/HistoryController.cs b/FrontendWebApi/ApiControllers/HistoryController.cs index f61b19d..3f99f55 100644 --- a/FrontendWebApi/ApiControllers/HistoryController.cs +++ b/FrontendWebApi/ApiControllers/HistoryController.cs @@ -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); }