From 589dd8e2e472fddb898f16ea97f7316128bbd3db Mon Sep 17 00:00:00 2001 From: "wanling040@gmail.com" Date: Fri, 12 Aug 2022 18:45:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=BB=E7=AB=99=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=9B=BB=E7=AB=99=E7=84=A1=E6=B3=95=E5=95=9F?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Controllers/PowerStationController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SolarPower/Controllers/PowerStationController.cs b/SolarPower/Controllers/PowerStationController.cs index d89c2d2..c857286 100644 --- a/SolarPower/Controllers/PowerStationController.cs +++ b/SolarPower/Controllers/PowerStationController.cs @@ -3321,7 +3321,7 @@ namespace SolarPower.Controllers { status.Add($"s{powerStation.Code}01_inv SITEID錯誤"); } - if (powerStation.Code + "01" != sitecheck.Inv_inveter.Substring(0,11) && sitecheck.Inv_inveter != null) + if (sitecheck.Inv_inveter != null && powerStation.Code + "01" != sitecheck.Inv_inveter.Substring(0,11)) { status.Add($"s{powerStation.Code}01_Inv inveter格式錯誤"); }