電站管理: 修正電站無法啟用

This commit is contained in:
wanling040@gmail.com 2022-08-12 18:45:35 +08:00
parent 839f30cc40
commit 589dd8e2e4

View File

@ -3321,7 +3321,7 @@ namespace SolarPower.Controllers
{ {
status.Add($"s{powerStation.Code}01_inv SITEID錯誤"); 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格式錯誤"); status.Add($"s{powerStation.Code}01_Inv inveter格式錯誤");
} }