|
@ -180,8 +180,8 @@ public class CellularNetworkService : ICellularNetworkService |
|
|
return CellularNetworkOperationResult.Success(NetworkStatus.Disconnected); |
|
|
return CellularNetworkOperationResult.Success(NetworkStatus.Disconnected); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 2. 检查 RAN 退出状态(仅当配置类型为 BothRagAndCore 时)
|
|
|
// 2. 检查 RAN 退出状态(仅当配置类型为 BothRagAndCore 或 RagOnly 时)
|
|
|
if (_context.CurrentConfigType == NetworkConfigType.BothRagAndCore) |
|
|
if (_context.CurrentConfigType is NetworkConfigType.BothRagAndCore or NetworkConfigType.RagOnly) |
|
|
{ |
|
|
{ |
|
|
var isRanQuit = await _statusMonitor.CheckRanQuitAsync(_context.NetworkIPEndPointManager.GetRanEndPoint()); |
|
|
var isRanQuit = await _statusMonitor.CheckRanQuitAsync(_context.NetworkIPEndPointManager.GetRanEndPoint()); |
|
|
if (!isRanQuit) |
|
|
if (!isRanQuit) |
|
|