From eeb0fad802f9558eb74c6964480b38b49e016c45 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期四, 06 四月 2023 17:40:08 +0800
Subject: [PATCH] 1.增加不能app配网提示页功能 2.修改部分或计划语言

---
 EZSDK/EZSDK/EZ/UIViewControllers/EZWifiInfoViewController.m |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/EZSDK/EZSDK/EZ/UIViewControllers/EZWifiInfoViewController.m b/EZSDK/EZSDK/EZ/UIViewControllers/EZWifiInfoViewController.m
index 101a4d0..9ee20c1 100644
--- a/EZSDK/EZSDK/EZ/UIViewControllers/EZWifiInfoViewController.m
+++ b/EZSDK/EZSDK/EZ/UIViewControllers/EZWifiInfoViewController.m
@@ -11,6 +11,7 @@
 #import "DDKit.h"
 #import "EZWifiConfigViewController.h"
 #import "EZAPWiFiConfigViewController.h"
+#import "GlobalKit.h"
 
 #define WIFI_PREFROOT_URL @"prefs:root=WIFI"
 #define WIFI_IOS10_WIFI_URL @"App-Prefs:root=WIFI"
@@ -49,6 +50,15 @@
     [self.nameTextField dd_addCornerRadius:4.0f lineColor:[UIColor lightGrayColor]];
     [self.passwordTextField dd_addCornerRadius:4.0f lineColor:[UIColor lightGrayColor]];
     [self.nextButton dd_addCornerRadius:19.0 lineColor:[UIColor dd_hexStringToColor:@"0x1b9ee2"]];
+    
+    self.tipsLabel.text=HDLEZLocallizedString(@"wifi_config_step_2_tips");
+    self.tipsLabel.adjustsFontSizeToFitWidth=YES;
+    
+    [self.nextButton setTitle:HDLEZLocallizedString(@"wifi_config_step_2_next_step") forState:UIControlStateNormal];
+    
+    self.nameLabel.text=HDLEZLocallizedString(@"wifi_config_step_2_net");
+    self.passwordLabel.text=HDLEZLocallizedString(@"wifi_config_step_2_password");
+
 }
 
 - (void) viewWillAppear:(BOOL)animated
@@ -94,6 +104,7 @@
     for (NSString *ifnam in interfaces)
     {
         NSDictionary *info = CFBridgingRelease(CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam));
+        HDLEZLog(@"info锛�%@",info);
         self.nameTextField.text = info[@"SSID"];
         break;
     }
@@ -230,10 +241,14 @@
 
 - (IBAction)nextAction:(id)sender
 {
-    //鐑偣閰嶇綉
-    [self performSegueWithIdentifier:@"go2APWifiConfig" sender:nil];
+    if ([GlobalKit shareKit].deviceType==HDLEZDeviceType_Door) {//涓洪棬閿�
+        //鐑偣閰嶇綉
+        [self performSegueWithIdentifier:@"go2APWifiConfig" sender:nil];
+    }else{
+        [self showModeSelect];
+    }
 
-//    [self showModeSelect];
+
 }
 
 @end

--
Gitblit v1.8.0