ソースを参照

1.切换云机

huangxiaodong 1 年間 前
コミット
37ae0d539b

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

@@ -319,6 +319,10 @@
         
     }
     else{
+        if (!ksharedAppDelegate.DeviceWebRtcMsgMod) {
+            //获取webrtc相关信息
+            [weakSelf queryWebRtcMsgFun];
+        }
         [self enterMainVCFromSceneSecondStepFun];
     }
 
@@ -359,7 +363,7 @@
     //确保通过SN号拿到密码了
     //非扫码进入 进入到这里很可能还没联网拿到设备最新信息
     if(!ksharedAppDelegate.DeviceThirdIdMod
-       &&!ksharedAppDelegate.DeviceThirdIdMod){
+       &&!ksharedAppDelegate.DeviceWebRtcMsgMod){
      
         dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
             mainBlock(^{

+ 2 - 1
创维盒子/双子星云手机/Class/Set/ChangeDevice/QRCodeScanForChangeDeviceViewController.m

@@ -477,9 +477,10 @@ bool isDownType22 = YES;
                     ksharedAppDelegate.isDidShowPwdType = NO;
                     ksharedAppDelegate.NASFileByBoxService = nil;
                     ksharedAppDelegate.NASShareFileService = nil;
+                    ksharedAppDelegate.DeviceWebRtcMsgMod = nil;
                     HLog(@"isWebSockLinkOKAginType NO")
                     
-                    [[webRtcManager shareManager] beginToLinkWebRtcFun];
+                    //[[webRtcManager shareManager] beginToLinkWebRtcFun];
                     [[NSNotificationCenter defaultCenter] postNotificationName:GuideOkNotification object:nil];
                 });