修复bug

This commit is contained in:
liyuhua
2023-09-27 12:35:29 +08:00
parent 84413059be
commit c476416283
48 changed files with 3240 additions and 44 deletions

View File

@@ -119,6 +119,8 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
@property (nonatomic,assign) BOOL isFirstReachability;
///
@property (nonatomic,assign) BOOL isReload;
///
@property (nonatomic,assign) BOOL isInitReload;
///
@property(nonatomic,strong) PIFullScreenBannerAnimation *roomAnimation;
@@ -145,13 +147,16 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
[[NSNotificationCenter defaultCenter] addObserverForName:kRoomMiniNotificationKey object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
[self configRoomMiniNView:note.userInfo];
}];
[[NSNotificationCenter defaultCenter] addObserverForName:@"kLogout" object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
self.isInitReload = NO;
self.isReload = NO;
}];
[[NSNotificationCenter defaultCenter] addObserverForName:kUserCompleteInfoFinishKey object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
[self completeUserInfoFinish:note.object];
}];
[[NSNotificationCenter defaultCenter] addObserverForName:@"reloadnewtab" object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
if (self.isReload) {
if (self.isInitReload == NO) {
[self initTabs:YES];
self.isReload = YES;
}
@@ -253,7 +258,11 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
}
return;
}
[self initTabs:YES];
if(self.isReload == NO){
[self initTabs:YES];
self.isInitReload = YES;
}
if ([ClientConfig shareConfig].canOpen) {
if (self.inviteCode.length <= 0) {
[self initQuickEnterRoom];
@@ -417,6 +426,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
#pragma mark - BaseMvpProtocol
- (void)tokenInvalid {
[[NSNotificationCenter defaultCenter]postNotificationName:@"kLogout" object:nil];
XPLoginViewController *lvc = [[XPLoginViewController alloc] init];
BaseNavigationController * nav = [[BaseNavigationController alloc] initWithRootViewController:lvc];
nav.modalPresentationStyle = UIModalPresentationFullScreen;