摄像头分享和切换网络时重连
This commit is contained in:
parent
aff0f33ec6
commit
52e644f3ab
|
|
@ -15697,7 +15697,7 @@
|
|||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 7;
|
||||
CURRENT_PROJECT_VERSION = 8;
|
||||
DEVELOPMENT_TEAM = WFX8GD5HFX;
|
||||
ENABLE_BITCODE = NO;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
|
|
@ -15815,7 +15815,7 @@
|
|||
CODE_SIGN_IDENTITY = "iPhone Distribution";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
|
||||
CODE_SIGN_STYLE = Manual;
|
||||
CURRENT_PROJECT_VERSION = 7;
|
||||
CURRENT_PROJECT_VERSION = 8;
|
||||
DEVELOPMENT_TEAM = WFX8GD5HFX;
|
||||
ENABLE_BITCODE = NO;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
|
|
|
|||
|
|
@ -83,10 +83,23 @@
|
|||
[super viewDidLoad];
|
||||
[self setup];
|
||||
[self connect];
|
||||
[self networknotify];
|
||||
|
||||
// Do any additional setup after loading the view from its nib.
|
||||
}
|
||||
|
||||
-(void)networknotify
|
||||
{
|
||||
AFNetworkReachabilityManager*networkManager=[AFNetworkReachabilityManager sharedManager];
|
||||
[networkManager startMonitoring];
|
||||
[networkManager setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) {
|
||||
if (![Socketsingleton sharedInstance].clientSocket.isConnected)
|
||||
{
|
||||
[[Socketsingleton sharedInstance] cutOffSocket];
|
||||
[self InitSocket];
|
||||
}
|
||||
|
||||
}];
|
||||
}
|
||||
- (void)setup{
|
||||
self.title = self.currentDevice.showName;
|
||||
//右侧菜单
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@
|
|||
}
|
||||
else if ([type isEqualToString:@"cameraId"])
|
||||
{
|
||||
url=[NSString stringWithFormat:@"%@/api/user/shareCamaraDeviceByQrCode.do",JIEKOUPORT];
|
||||
url=[NSString stringWithFormat:@"%@/api/user/shareCameraByQrCode.do",JIEKOUPORT];
|
||||
para=@{
|
||||
@"deviceId":deviceId,@"userId":userID
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue