From c44ab76ef4643a27e32694a852cfca5bcafec115 Mon Sep 17 00:00:00 2001 From: fengshuo <963787902@qq.com> Date: Sat, 7 Jan 2023 11:20:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5=20=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E7=99=BB=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xplan-ios/Base/MVP/View/MvpViewController.m | 1 + xplan-ios/Main/Tabbar/Presenter/MainPresenter.m | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 {