Commit 342e9cd8 by pidan

修复个推的token无法绑定的问题

parent 19dcca3a
......@@ -1438,7 +1438,7 @@
}];
} else {
// 其他情况
[FUSAlertView showAlertWithTitle:nil message:[NSString fus_localString:@"网络出错,是否重新进入包房?"] cancelButtonTitle:nil otherButtonTitles:@[[NSString fus_localString:@"确定"], [NSString fus_localString:@"退出"]] clickBlock:^(NSInteger buttonIndex) {
[FUSAlertView showAlertWithTitle:nil message:msg cancelButtonTitle:nil otherButtonTitles:@[[NSString fus_localString:@"确定"], [NSString fus_localString:@"退出"]] clickBlock:^(NSInteger buttonIndex) {
if (buttonIndex == 0) {
[self fus_audienceJoinRoomWithRoomId:currentRoomId password:password];
......
......@@ -31,7 +31,7 @@ import RxSwift
guard let showVC = UINavigationController.fus_top() else { return }
let password = UserDefaults.standard.string(forKey: FUSLiveUDKeys.fus_LiveRoomPasswordCacheUDKEY(FUSLiveHelper.shareInstance().roomInfoModel?.roomId ?? "")) ?? ""
let view = FUSLiveStartSetPasswordView(frame: showVC.view.bounds, isAudience: true, password: password)
view.clickWithSucceedHandler = { succeed, password in
clickHandler(succeed, password)
......
......@@ -75,28 +75,28 @@
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(recieveAccountInfoChangedNotification:) name:STR(USER_ACCOUNT_CHANGE) object:nil];
// 监听网络状态, 重连Sockt
[FUSHttpHelper fus_monitorNetWorkStatus:^(AFNetworkReachabilityStatus status) {
[[NSNotificationCenter defaultCenter] postNotificationName:FUSLiveNotificationKeys.fus_Networking_Statu_Changed object:@(status)];
if (status > 0) {
// 重新连接Socket
[FUSSocketMessageCenter fus_socketReconnectWithBlock:^(BOOL isSuccess) {
if (isSuccess) {
FUSLogInfo(@"---->重连成功");
}
}];
// 连接Socket
if (![FUSSocketMessageCenter isConnected]) {
[FUSSocketMessageCenter fus_socketReconnectWithBlock:^(BOOL isSuccess) {
if (isSuccess) {
[[NSNotificationCenter defaultCenter] postNotificationName:FUSLiveNotificationKeys.fus_Baofang_Socket_Reconnected object:nil];
}
}];
}
}
}];
// // 监听网络状态, 重连Sockt
// [FUSHttpHelper fus_monitorNetWorkStatus:^(AFNetworkReachabilityStatus status) {
// [[NSNotificationCenter defaultCenter] postNotificationName:FUSLiveNotificationKeys.fus_Networking_Statu_Changed object:@(status)];
// if (status > 0) {
// // 重新连接Socket
// [FUSSocketMessageCenter fus_socketReconnectWithBlock:^(BOOL isSuccess) {
// if (isSuccess) {
// FUSLogInfo(@"---->重连成功");
// }
// }];
//
// // 连接Socket
// if (![FUSSocketMessageCenter isConnected]) {
// [FUSSocketMessageCenter fus_socketReconnectWithBlock:^(BOOL isSuccess) {
// if (isSuccess) {
// [[NSNotificationCenter defaultCenter] postNotificationName:FUSLiveNotificationKeys.fus_Baofang_Socket_Reconnected object:nil];
// }
// }];
// }
// }
// }];
//
}
// 获取用户信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment