diff --git a/LanSheng/LanShengAPI/Properties/launchSettings.json b/LanSheng/LanShengAPI/Properties/launchSettings.json index ea34080..4618bbd 100644 --- a/LanSheng/LanShengAPI/Properties/launchSettings.json +++ b/LanSheng/LanShengAPI/Properties/launchSettings.json @@ -8,7 +8,7 @@ "ASPNETCORE_ENVIRONMENT": "Development" }, "dotnetRunMessages": true, - "applicationUrl": "http://localhost:5048" + "applicationUrl": "http://localhost:5000" }, "IIS Express": { "commandName": "IISExpress", diff --git a/LanSheng/LanShengService/TcpService.cs b/LanSheng/LanShengService/TcpService.cs index 58a9221..d19bd85 100644 --- a/LanSheng/LanShengService/TcpService.cs +++ b/LanSheng/LanShengService/TcpService.cs @@ -249,6 +249,10 @@ namespace LanShengService if (deviceData.Data8_B7_1104 == null) { deviceData.Data8_B7_1104 = 0; } + if(deviceData.BinSize == null) + { + deviceData.BinSize = 0; + } foreach (PropertyInfo propertyInfo in TempPropertys) { if (propertyInfo.GetValue(deviceData) == null) {