From d50b33a35fb6a031f9eee4370a122389de1d6fda Mon Sep 17 00:00:00 2001 From: fengshuo <963787902@qq.com> Date: Thu, 4 Nov 2021 15:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=E8=B5=84=E6=96=99=E4=B9=8B=E5=90=8Etabbar=E7=9A=84item=20?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E8=B5=9B=E4=BA=8B=E5=92=8C=E6=88=91=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.h | 2 +- xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.m | 2 +- xplan-ios/Main/Login/View/LoginFullInfoViewController.m | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.h b/xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.h index b36bc92a..2eb0866d 100644 --- a/xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.h +++ b/xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.h @@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN @interface LoginFullInfoPresenter : BaseMvpPresenter /// 获取保存的第三方的数据模型 -+ (ThirdUserInfo * __nullable)getThirdUserInfo; +- (ThirdUserInfo *)getThirdUserInfo; /// 随机获取昵称 - (void)randomRequestNick; diff --git a/xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.m b/xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.m index 4e2311b7..d340eaed 100644 --- a/xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.m +++ b/xplan-ios/Main/Login/Presenter/LoginFullInfoPresenter.m @@ -22,7 +22,7 @@ /// 获取保存的第三方的数据模型 -+ (ThirdUserInfo * __nullable)getThirdUserInfo { +- (ThirdUserInfo *)getThirdUserInfo { if ([AccountInfoStorage instance].thirdUserInfo) { return [AccountInfoStorage instance].thirdUserInfo; } diff --git a/xplan-ios/Main/Login/View/LoginFullInfoViewController.m b/xplan-ios/Main/Login/View/LoginFullInfoViewController.m index 8036a8e7..0c761a42 100644 --- a/xplan-ios/Main/Login/View/LoginFullInfoViewController.m +++ b/xplan-ios/Main/Login/View/LoginFullInfoViewController.m @@ -15,6 +15,7 @@ #import "UIImage+Utils.h" #import "UIButton+EnlargeTouchArea.h" #import "StatisticsServiceHelper.h" +#import "AccountInfoStorage.h" ///Model #import "ThirdUserInfo.h" ///P @@ -203,6 +204,8 @@ - (void)complementInfoSuccess { [StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventLoginRepariSuccess]; + ///需要重新加载一次 ticket 刷新tabbar的item + [[AccountInfoStorage instance] saveTicket:nil]; UIViewController *vc = self.presentingViewController; while (vc.presentingViewController) { vc = vc.presentingViewController;