|
|
@@ -134,6 +134,7 @@
|
|
|
KWeakSelf
|
|
|
//有设备了先去做链接准备 // 80bec9c5
|
|
|
NSString *SNStr = deviceDict[@"Const_Have_Add_Device_SN"];
|
|
|
+ //SNStr = @"0333933700222490012925";
|
|
|
NSString *sdnId = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.sdnId;
|
|
|
if(SNStr && !sdnId){
|
|
|
[[connectDeviceManager shareInstance] getThridMsgBySN:SNStr needReconnect:YES didNetEnd:^(NSInteger didSuc) {
|
|
|
@@ -142,10 +143,17 @@
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
mainBlock(^{
|
|
|
[weakSelf showNetErrorAlertFun];
|
|
|
+ [weakSelf enterMainVCFromSceneSecondStepFun];
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
- [weakSelf enterMainVCFromSceneSecondStepFun];
|
|
|
+ else if(didSuc == 2){
|
|
|
+ [weakSelf gotoScanAginByThridMsgErrorFun];
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ [weakSelf enterMainVCFromSceneSecondStepFun];
|
|
|
+ }
|
|
|
+
|
|
|
}];
|
|
|
}
|
|
|
else{
|
|
|
@@ -752,4 +760,12 @@
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
+- (void)gotoScanAginByThridMsgErrorFun
|
|
|
+{
|
|
|
+ /*扫码界面*/
|
|
|
+ TipsQRCodeViewController *qrCodeVC = [[TipsQRCodeViewController alloc] init];
|
|
|
+ qrCodeVC.isNeedToShowAleatType = YES;
|
|
|
+ BaseNavigationController *qrCodeVCNav = [[BaseNavigationController alloc] initWithRootViewController:qrCodeVC];
|
|
|
+ self.window.rootViewController = qrCodeVCNav;
|
|
|
+}
|
|
|
@end
|