添加无网络去设置,优化多语言

This commit is contained in:
2025-11-21 18:36:00 +08:00
parent fc87c545a0
commit af8fff5b13
3 changed files with 8 additions and 3 deletions

View File

@@ -68,7 +68,7 @@
"HTTP GET\nURL: %@\nHeaders: %@\n参数: %@" = "HTTP GET\nURL: %@\nHeaders: %@\n参数: %@";
"无效响应\nURL: %@\n说明: %@" = "无效响应\nURL: %@\n说明: %@";
"网络不可用\n请在“设置”中检查本应用的无线数据权限或网络连接。" = "网络不可用\n请在“设置”中检查本应用的无线数据权限或网络连接。";
"请在“设置”中检查本应用的无线数据权限或网络连接。" = "请在“设置”中检查本应用的无线数据权限或网络连接。";
"Please check this app's wireless-data permission or network connection in Settings." = "请在“设置”中检查本应用的无线数据权限或网络连接。";
// 权限与引导(英文 key
"Usage Guide" = "使用引导";

View File

@@ -239,6 +239,7 @@
-(void)getNetJudge {
AFNetworkReachabilityManager *netManager = [AFNetworkReachabilityManager sharedManager];
[netManager startMonitoring];
__weak typeof(self) weakSelf = self;
[netManager setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status){
if (status == AFNetworkReachabilityStatusReachableViaWiFi){
// [PublicObj saveNetReachability:@"wifi"];
@@ -246,8 +247,12 @@
// [PublicObj saveNetReachability:@"wwan"];
}else{
// [PublicObj saveNetReachability:@"unknown"];
}
// /
__strong typeof(weakSelf) strongSelf = weakSelf;
if (!strongSelf) { return; }
[strongSelf kb_checkNetworkAndShowAlertIfNeeded];
}];
}

View File

@@ -135,7 +135,7 @@
self.titleLabel.text = @"Become A Member Of Love Key";
self.subTitleLabel.text = @"Unlock All Functions";
NSArray *titles = @[@"Wireless Sub-ai\nDialogue",
NSArray *titles = @[@"Wireless Sub-ai Dialogue",
@"Personalized\nKeyboard",
@"Chat\nPersona",
@"Emotional\nCounseling"];