From bc4b8dea7dfb16060cb79e32b65ec3bdf9c71fc0 Mon Sep 17 00:00:00 2001 From: root <295172551@qq.com> Date: Sun, 15 Jun 2025 13:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=20=E4=BD=BF=E7=94=A8=20is?= =?UTF-8?q?=20=E6=A8=A1=E5=BC=8F=E5=8C=B9=E9=85=8D=E4=BC=98=E5=8C=96=20Cel?= =?UTF-8?q?lularNetworkService=20=E4=B8=AD=E7=9A=84=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Network/CellularNetworkService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs b/CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs index 7ba4af0..4c2b7bd 100644 --- a/CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs +++ b/CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs @@ -180,8 +180,8 @@ public class CellularNetworkService : ICellularNetworkService return CellularNetworkOperationResult.Success(NetworkStatus.Disconnected); } - // 2. 检查 RAN 退出状态(仅当配置类型为 BothRagAndCore 时) - if (_context.CurrentConfigType == NetworkConfigType.BothRagAndCore) + // 2. 检查 RAN 退出状态(仅当配置类型为 BothRagAndCore 或 RagOnly 时) + if (_context.CurrentConfigType is NetworkConfigType.BothRagAndCore or NetworkConfigType.RagOnly) { var isRanQuit = await _statusMonitor.CheckRanQuitAsync(_context.NetworkIPEndPointManager.GetRanEndPoint()); if (!isRanQuit)