瀏覽代碼

1.进入设备(NAS\云手机\我的)切后台再切回前台手机无网络,隐私模式private-x图标时,输入密码之后仍可进入云机

huangxiaodong 10 月之前
父節點
當前提交
12e3f4d33a
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      创维盒子/双子星云手机/Class/Guide/inputPWDViewController.m

+ 11 - 0
创维盒子/双子星云手机/Class/Guide/inputPWDViewController.m

@@ -14,6 +14,7 @@
 #import "BaseNavigationController.h"
 
 #import "QRCodeScanForChangeDeviceViewController.h"
+#import "customToastVew.h"
 
 @interface inputPWDViewController (){
     NSString *pwd;
@@ -513,6 +514,16 @@
         return;
     }
     
+    if([AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusNotReachable)
+    {
+        //[[iToast makeText:NSLocalizedString(@"phone_network_fail_Tips",nil)] show];
+        customToastVew *view = [customToastVew makeText:NSLocalizedString(@"phone_network_fail_Tips",nil)];
+        [view show];
+        [self.view addSubview:view];
+        
+        return;
+    }
+    
     [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
     ksharedAppDelegate.isDidShowPwdType = NO;