Browse Source

1.输入密码界面,点击右上角更换扫码,扫码成功后仍显示2秒的启动页

huangxiaodong 11 months ago
parent
commit
f3c835f1ab
1 changed files with 7 additions and 1 deletions
  1. 7 1
      创维盒子/双子星云手机/AppDelegate/SceneDelegate.m

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

@@ -59,6 +59,8 @@
 
 @property(nonatomic, copy)   NSString *getShareStr;//拿到分享的字符串
 
+@property (nonatomic, assign)  BOOL isFirstOpenInLaunch;//启动页停两秒
+
 //冷启动分享跳入用
 @property(nonatomic, strong)   UISceneSession *session;
 @property(nonatomic, strong)   UISceneConnectionOptions *connectionOptions;
@@ -89,6 +91,8 @@
         self.window = [[UIWindow alloc] initWithWindowScene:windowScene];
         self.window.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
        
+        _isFirstOpenInLaunch = YES;
+        
         // 初始化数据库
         [self initBrowserWindow];
         // 加载主页面
@@ -177,11 +181,13 @@
     }
     
     
-    if(maskModel == 0){
+    if(maskModel == 0 && _isFirstOpenInLaunch){
         //20240612 产品觉得 启动页太快了 要停两秒
         dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
             [self getDeviceMsgInMainVCWith:deviceDict];
         });
+        
+        _isFirstOpenInLaunch = NO;
     }
     else{
         [self getDeviceMsgInMainVCWith:deviceDict];