fyf 2 years ago
parent
commit
d68fd729e9
2 changed files with 9 additions and 9 deletions
  1. +1
    -1
      HBLConsole.Business/IotReport.cs
  2. +8
    -8
      HBLConsole/ViewModel/ViewModelBase.cs

+ 1
- 1
HBLConsole.Business/IotReport.cs View File

@@ -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 View File

@@ -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…
Cancel
Save