From 8a7d543cdc7e99106b8db3b4b1a5df0bc25472e9 Mon Sep 17 00:00:00 2001 From: joywayer Date: Sat, 4 Jul 2026 18:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=81=94=E7=BD=91=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Source/WebView/WebContainerViewController.swift | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ylgamehall/Source/WebView/WebContainerViewController.swift b/ylgamehall/Source/WebView/WebContainerViewController.swift index 91b4c30..e975d72 100644 --- a/ylgamehall/Source/WebView/WebContainerViewController.swift +++ b/ylgamehall/Source/WebView/WebContainerViewController.swift @@ -231,14 +231,15 @@ public final class WebContainerViewController: UIViewController { title = "当前未联网" message = "请检查 Wi-Fi 或蜂窝数据后重试。" actionTitle = "重试" - case .wifiDenied: - title = "未授权使用无线局域网" + case .wifiDenied, .cellularDenied: + // 文案与 iOS Settings → 本应用 → 「无线数据」combined toggle 对齐: + // 该开关有"关闭 / WLAN / WLAN 与蜂窝数据"三档,是用户唯一可操作的 + // 入口。NWPath 的 wifiDenied vs cellularDenied 内部区分保留在 + // BootErrorKind 里(供日志排查),但用户文案不再区分——两种情况用户 + // 都要走同一条路径(打开"无线数据"),精确区分反而让"文案对不上设置项"。 + title = "未授权使用无线数据" message = "请前往 iOS 设置 → 本应用 → 打开「无线数据」,授权后将自动重试。" actionTitle = "前往设置" - case .cellularDenied: - title = "未授权使用蜂窝数据" - message = "请前往 iOS 设置 → 本应用 → 打开「无线数据」,或连接 Wi-Fi 后重试。" - actionTitle = "前往设置" case .networkTimeout: title = "网络较慢" message = "连接超时,请稍后重试。"