Browse Source

1.isFirstInputPwdDone代码逻辑迁移

huangxiaodong 1 year ago
parent
commit
6843af1fe1

+ 2 - 0
创维盒子/双子星云手机/AppDelegate/AppDelegate.h

@@ -35,6 +35,8 @@
 @property (nonatomic, copy) NSString * NASShareFileService;//走公网的
 @property (nonatomic, copy) NSString * NASFileByBoxService;//本盒子的IP 或者公网
 
+//是否完成了第一次密码输入
+@property(nonatomic,assign) BOOL  isFirstInputPwdDone;
 //与 isFirstInputPwdDone 有重复的地方 后续优化
 @property (nonatomic, assign)  BOOL isDidShowPwdType;// 是否显示密码界面了
 

+ 3 - 3
创维盒子/双子星云手机/AppDelegate/SceneDelegate.m

@@ -430,7 +430,7 @@
         else{
             [self HandleEnterNotPrivacyModeFun];
 
-            [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
+            ksharedAppDelegate.isFirstInputPwdDone = YES;
             //playerRootVC.isPwdVCShow = NO;
             //[playerRootVC setShowImgAndVoiceTypeFun:YES];
             //[weakSelf shareAwakenAppBy:weakSelf.getShareStr];
@@ -826,7 +826,7 @@
         BOOL isPrivacyMode = ksharedAppDelegate.DeviceThirdIdMod.data.isPrivacyMode;
         if(!isPrivacyMode)
         {
-            [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
+            ksharedAppDelegate.isFirstInputPwdDone = YES;
             [[NSNotificationCenter defaultCenter] postNotificationName:didInputPWDNotification object:nil];
             return;
         }
@@ -1111,7 +1111,7 @@
     
     [self closeCalculatorVC];
     
-    [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
+    ksharedAppDelegate.isFirstInputPwdDone = YES;
 }
 
 

+ 1 - 1
创维盒子/双子星云手机/Class/Calculator/CalculatorViewController.m

@@ -411,7 +411,7 @@
                         return;
                     }
                     
-                    [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
+                    ksharedAppDelegate.isFirstInputPwdDone = YES;
                     ksharedAppDelegate.isDidShowPwdType = NO;
                     [self.view removeFromSuperview];
                     //被别的设备挤下线 重新链接 如果是链接中 走这个函数会被return

+ 1 - 1
创维盒子/双子星云手机/Class/Controller/HWWebViewController.m

@@ -353,7 +353,7 @@
                             return;
                         }
                         
-                        [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
+                        ksharedAppDelegate.isFirstInputPwdDone = YES;
                         ksharedAppDelegate.isDidShowPwdType = NO;
                         [self.view removeFromSuperview];
                         //被别的设备挤下线 重新链接 如果是链接中 走这个函数会被return

+ 1 - 1
创维盒子/双子星云手机/Class/Guide/GuideViewController.m

@@ -90,7 +90,7 @@
             BOOL haveOpenMask = ksharedAppDelegate.DeviceThirdIdMod.data.isPrivacyMode;
             if(!haveOpenMask)
             {
-                [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
+                ksharedAppDelegate.isFirstInputPwdDone = YES;
                 [[NSNotificationCenter defaultCenter] postNotificationName:GuideOkNotification object:nil];
                
                 dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{

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

@@ -524,7 +524,7 @@
         return;
     }
     
-    [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
+    ksharedAppDelegate.isFirstInputPwdDone = YES;
     ksharedAppDelegate.isDidShowPwdType = NO;
     
     if(_isQRCodeType){

+ 1 - 1
创维盒子/双子星云手机/Class/Set/privacyMode/privacyModeTipViewController.m

@@ -25,7 +25,7 @@
     
     [self initBaseUIFun];
     
-    [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
+    ksharedAppDelegate.isFirstInputPwdDone = YES;
 }
 
 - (void)initBaseUIFun

+ 2 - 2
创维盒子/双子星云手机/NAS/NASViewController.m

@@ -883,7 +883,7 @@
 - (void)beginShowAlertFun
 {
     //1.隐私模式密码界面 3秒检测一次是否输入完成密码了
-    if(![connectDeviceManager shareInstance].isFirstInputPwdDone){
+    if(!ksharedAppDelegate.isFirstInputPwdDone){
         KWeakSelf
         dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
             [weakSelf beginShowAlertFun];
@@ -930,7 +930,7 @@
 - (void)getVersion {
     
     //密码框界面 拦着 不给弹出
-    if(![connectDeviceManager shareInstance].isFirstInputPwdDone){
+    if(!ksharedAppDelegate.isFirstInputPwdDone){
         return;
     }