diff --git a/HBLConsole.Business/IotReport.cs b/HBLConsole.Business/IotReport.cs index e61d408..38c9d86 100644 --- a/HBLConsole.Business/IotReport.cs +++ b/HBLConsole.Business/IotReport.cs @@ -185,7 +185,7 @@ namespace HBLConsole.Business /// private T GetTypeValue(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 } diff --git a/HBLConsole/ViewModel/ViewModelBase.cs b/HBLConsole/ViewModel/ViewModelBase.cs index 4045181..4f686d1 100644 --- a/HBLConsole/ViewModel/ViewModelBase.cs +++ b/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 = "正常", + //}); }); }