Browse Source

1.扫码后没有拿到设备信息 自动重新获取

huangxiaodong 2 years ago
parent
commit
770a10f86e
1 changed files with 22 additions and 1 deletions
  1. 22 1
      创维盒子/双子星云手机/Class/Guide/GuideViewController.m

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

@@ -58,9 +58,30 @@
         /*记录已经用户引导*/
         [HWDataManager setBoolWithKey:Const_Have_Show_Guide value:YES];
         
+       
+        if(![connectDeviceManager shareInstance].DeviceThirdIdMod){
+            
+            HLog(@"没有拿到设备信息");
+            
+            KWeakSelf
+            [[connectDeviceManager shareInstance] getThridMsgBySN:sn didNetEnd:^(bool didSuc) {
+                if(didSuc){
+                    
+                }
+                else{
+                    [[iToast makeText:NSLocalizedString(@"guide_qrcoede_tips_get_SdnID_fail",nil)] show];
+                }
+                
+                [weakSelf startMoveView];
+            }];
+            
+            return;
+        }
+
         //是否已经有密码了 有就是输入密码 没有就是设置密码
         NSString *curPwd = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.password;
-
+        
+        
         if(curPwd && curPwd.length > 0){
             /*设置密码*/
             inputPWDViewController *nextVC = [[inputPWDViewController alloc] init];