fyf 2 年之前
父節點
當前提交
d68fd729e9
共有 2 個文件被更改,包括 9 次插入9 次删除
  1. +1
    -1
      HBLConsole.Business/IotReport.cs
  2. +8
    -8
      HBLConsole/ViewModel/ViewModelBase.cs

+ 1
- 1
HBLConsole.Business/IotReport.cs 查看文件

@@ -185,7 +185,7 @@ namespace HBLConsole.Business
/// </summary>
private T GetTypeValue<T>(string str)
{
return (T)SimpleFactory.GetInstance.GVL?.GetType().GetProperty(str).GetValue(SimpleFactory.GetInstance.GVL,null);
return (T)SimpleFactory.GetInstance.GVL?.GetType().GetProperty(str)?.GetValue(SimpleFactory.GetInstance.GVL,null);
}
#endregion
}


+ 8
- 8
HBLConsole/ViewModel/ViewModelBase.cs 查看文件

@@ -30,14 +30,14 @@ namespace HBLConsole.ViewModel
{
LogMessage = MessageLog.GetInstance.LogInfo;

IotReport.GetInstance.SendLogMessage(new BPA.Message.API请求.LogTable
{
ClientId = InternetInfo.ClientId.ToString(),
LogTime = DateTime.Now,
LogType = "1",
LogMessage = s,
LogVla = "正常",
});
//IotReport.GetInstance.SendLogMessage(new BPA.Message.API请求.LogTable
//{
// ClientId = InternetInfo.ClientId.ToString(),
// LogTime = DateTime.Now,
// LogType = "1",
// LogMessage = s,
// LogVla = "正常",
//});
});
}



Loading…
取消
儲存