From 7f8e39bc43b8ec23ed7eae5ef8a096f1eafff9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=BB=BA=E4=B8=9C?= <617601767@qq.com> Date: Tue, 23 Jan 2024 15:26:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LanSheng/LanShengAPI/Properties/launchSettings.json | 2 +- LanSheng/LanShengService/TcpService.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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) {