Selaa lähdekoodia

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

huangxiaodong 10 kuukautta sitten
vanhempi
commit
12e3f4d33a

+ 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;