diff --git a/xplan-ios/Base/MVP/View/MvpViewController.m b/xplan-ios/Base/MVP/View/MvpViewController.m index 74d3e4a5..c687b5ee 100644 --- a/xplan-ios/Base/MVP/View/MvpViewController.m +++ b/xplan-ios/Base/MVP/View/MvpViewController.m @@ -42,6 +42,7 @@ } - (void)tokenInvalid { + LoginViewController *loginVC = [[LoginViewController alloc] init]; BaseNavigationController * nav = [[BaseNavigationController alloc] initWithRootViewController:loginVC]; nav.modalPresentationStyle = UIModalPresentationFullScreen; diff --git a/xplan-ios/Main/Tabbar/Presenter/MainPresenter.m b/xplan-ios/Main/Tabbar/Presenter/MainPresenter.m index 310c3148..b938683f 100644 --- a/xplan-ios/Main/Tabbar/Presenter/MainPresenter.m +++ b/xplan-ios/Main/Tabbar/Presenter/MainPresenter.m @@ -38,7 +38,9 @@ static NSString * kUpdateVersionNum = @"kUpdateVersionNum"; NSString *ticket = [tickets[0] valueForKey:@"ticket"]; [[AccountInfoStorage instance] saveTicket:ticket]; [[self getView] autoLoginSuccess]; - }] access_token:accountModel.access_token issue_type:@"multi"]; + } fail:^(NSInteger code, NSString * _Nullable msg) { + [self logout]; + } errorToast:NO] access_token:accountModel.access_token issue_type:@"multi"]; } - (void)loginNIM {