Преглед на файлове

1.修改切换云机盒子地址未变问题

huangxiaodong преди 8 месеца
родител
ревизия
9248c5be8d

+ 3 - 0
创维盒子/双子星云手机/AppDelegate/AppDelegate.h

@@ -45,5 +45,8 @@
 
 @property (nonatomic, assign)BOOL supportScreenRotateType;
 +(AppDelegate*)sharedAppDelegate;
+
+#pragma mark 更换设备 重新设置地址
+- (void)resetBoxNetUrlFun;
 @end
 

+ 8 - 0
创维盒子/双子星云手机/AppDelegate/AppDelegate.m

@@ -403,6 +403,14 @@
     return @"";
 }
 
+#pragma mark 更换设备 重新设置地址
+- (void)resetBoxNetUrlFun
+{
+    _NASShareFileService = nil;
+    NASFileByBoxServiceByPingok = nil;
+    NASFileByBoxServiceByPingNot = nil;
+}
+
 - (void)imageLoadingSettings {
     [SDImageCache sharedImageCache].config.maxDiskAge = 3600 * 24 * 7;
     [SDImageCache sharedImageCache].config.maxMemoryCount = 1024 * 1024 * 20;

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

@@ -480,8 +480,12 @@ bool isDownType22 = YES;
                     ksharedAppDelegate.DeviceWebRtcMsgMod = nil;
                     HLog(@"isWebSockLinkOKAginType NO")
                     
+                    [ksharedAppDelegate resetBoxNetUrlFun];
+                    
                     //[[webRtcManager shareManager] beginToLinkWebRtcFun];
                     [[NSNotificationCenter defaultCenter] postNotificationName:GuideOkNotification object:nil];
+                    //改走http方案
+                    [[NSNotificationCenter defaultCenter] postNotificationName:getExtraFilesDoneNotification object:nil];/*发送通知*/
                 });