From 6ab33ee83800790cfe8ef1d08d1b3f652fd75ab1 Mon Sep 17 00:00:00 2001 From: lxw Date: Tue, 11 Jun 2024 21:42:15 +0800 Subject: [PATCH] =?UTF-8?q?soc=20=E4=B8=BA-1=20=E5=8F=96=E6=B6=88=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/MyTask/UpdateDownBatteryInfoTask.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Service/MyTask/UpdateDownBatteryInfoTask.cs b/Service/MyTask/UpdateDownBatteryInfoTask.cs index 0e33167..c856de6 100644 --- a/Service/MyTask/UpdateDownBatteryInfoTask.cs +++ b/Service/MyTask/UpdateDownBatteryInfoTask.cs @@ -61,6 +61,10 @@ public class UpdateDownBatteryInfoTask : ITask { continue; } + if (info.Soc == null || info.BatteryNo == "-1") + { + continue; + } battery.DownBatteryNo = info.BatteryNo; battery.DownBatterySoc = info.Soc;