From 6c0fad79163463c19a1947f8742e2d1582bdff99 Mon Sep 17 00:00:00 2001 From: fyf Date: Fri, 13 May 2022 17:31:45 +0800 Subject: [PATCH] 454343 --- DataVAPI/UpAndDown/ProcessServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataVAPI/UpAndDown/ProcessServer.cs b/DataVAPI/UpAndDown/ProcessServer.cs index 124c288..d24f65f 100644 --- a/DataVAPI/UpAndDown/ProcessServer.cs +++ b/DataVAPI/UpAndDown/ProcessServer.cs @@ -228,7 +228,7 @@ namespace DataVAPI.UpAndDown int index = 0; if (receiveModel.status.value == "离线") { index = devModel.operatingDeviceStatus.data.Count - 1; } - else index = devModel.operatingDeviceStatus.data.FindLastIndex(0, ar => ar.DeviceMS.Contains("离线")); + else index = devModel.operatingDeviceStatus.data.FindIndex(0, ar => ar.DeviceMS.Contains("离线")); if (index > devModel.operatingDeviceStatus.data.Count - 1) index = devModel.operatingDeviceStatus.data.Count - 1; int now = devModel.operatingDeviceStatus.data.IndexOf(dev);