|
@@ -121,6 +121,8 @@
|
|
|
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(scanChangeDeviceBackFun:) name:scanChangeDeviceBackNotification object:nil];
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(scanChangeDeviceBackFun:) name:scanChangeDeviceBackNotification object:nil];
|
|
|
|
|
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(firstDidLinkBoxFun) name:@"firstDidLinkBox" object:nil];
|
|
|
|
+
|
|
UIWindowScene *windowScene = (UIWindowScene *)scene;
|
|
UIWindowScene *windowScene = (UIWindowScene *)scene;
|
|
self.window = [[UIWindow alloc] initWithWindowScene:windowScene];
|
|
self.window = [[UIWindow alloc] initWithWindowScene:windowScene];
|
|
self.window.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
|
|
self.window.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
|
|
@@ -552,8 +554,12 @@
|
|
NSArray *imageNArr = @[@"tabbar_nas_N", @"tabbar_file_N",@"tabbar_my_N"];
|
|
NSArray *imageNArr = @[@"tabbar_nas_N", @"tabbar_file_N",@"tabbar_my_N"];
|
|
NSArray *imageHArr = @[@"tabbar_nas_H", @"tabbar_file_H",@"tabbar_my_H"];
|
|
NSArray *imageHArr = @[@"tabbar_nas_H", @"tabbar_file_H",@"tabbar_my_H"];
|
|
|
|
|
|
- if(ksharedAppDelegate.DeviceThirdIdMod
|
|
|
|
- && ![ksharedAppDelegate.DeviceThirdIdMod.data.changeSn isEqualToString:@"0333933700223110016962"]){
|
|
|
|
|
|
+ //记录当前连接的SN
|
|
|
|
+ NSString* preSN = [HWDataManager getStringWithKey:@"Const_pre_did_link_ok_sn"];
|
|
|
|
+ NSString *curSN = ksharedAppDelegate.DeviceThirdIdMod.data.changeSn;
|
|
|
|
+ if(![curSN isEqualToString:@"0333933700223110016962"]
|
|
|
|
+ && ![preSN isEqualToString:@"0333933700223110016962"]
|
|
|
|
+ && preSN.length > 0){
|
|
titleArr = @[@"NAS",phoneTitle,myTitle];
|
|
titleArr = @[@"NAS",phoneTitle,myTitle];
|
|
imageNArr = @[@"tabbar_nas_N", @"my_device_NO",@"tabbar_my_N"];
|
|
imageNArr = @[@"tabbar_nas_N", @"my_device_NO",@"tabbar_my_N"];
|
|
imageHArr = @[@"tabbar_nas_H", @"my_device_ok",@"tabbar_my_H"];
|
|
imageHArr = @[@"tabbar_nas_H", @"my_device_ok",@"tabbar_my_H"];
|
|
@@ -612,6 +618,29 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+#pragma mark 第一次连接成功
|
|
|
|
+- (void)firstDidLinkBoxFun
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
|
+
|
|
|
|
+ if (ksharedAppDelegate.mainTabBar) {
|
|
|
|
+ NSArray *curArr = ksharedAppDelegate.mainTabBar.viewControllers;
|
|
|
|
+ if (curArr.count >= 3) {
|
|
|
|
+ BaseNavigationController *Nav = curArr[1];
|
|
|
|
+ UIViewController *curVC = Nav.viewControllers.firstObject;
|
|
|
|
+ if (![curVC isKindOfClass:[previewFileAndFolderViewController class]]) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //[self initMainTabbarFun];
|
|
|
|
+ [self enterMainVCFromScene];
|
|
|
|
+ });
|
|
|
|
+}
|
|
|
|
+
|
|
#pragma mark 处理进来是非隐私模式的情况
|
|
#pragma mark 处理进来是非隐私模式的情况
|
|
- (void)HandleEnterNotPrivacyModeFun
|
|
- (void)HandleEnterNotPrivacyModeFun
|
|
{
|
|
{
|