From 16cdb46f80590ed0ca87b2bb77c9f25e89c94584 Mon Sep 17 00:00:00 2001 From: chenguilong <598604202@qq.com> Date: Tue, 2 Aug 2022 17:06:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xplan-ios/Main/Mine/Presenter/XPMinePresent.m | 12 ++++++------ xplan-ios/Main/Mine/View/XPMineViewController.m | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/xplan-ios/Main/Mine/Presenter/XPMinePresent.m b/xplan-ios/Main/Mine/Presenter/XPMinePresent.m index aa38c01f..7adbd1df 100644 --- a/xplan-ios/Main/Mine/Presenter/XPMinePresent.m +++ b/xplan-ios/Main/Mine/Presenter/XPMinePresent.m @@ -36,7 +36,7 @@ /// 获取用户信息 - (void)getUserInfo { NSString * uid = [[AccountInfoStorage instance] getUid]; - if (uid == nil) { + if (!uid.length) { return; } [Api getUserInfo:[self createHttpCompletion:^(BaseModel * _Nonnull data) { @@ -49,7 +49,7 @@ - (void)getUserWalletInfo { NSString * uid = [AccountInfoStorage instance].getUid; NSString * ticket = [AccountInfoStorage instance].getTicket; - if (uid == nil) { + if (!uid.length) { return; } [Api getUserWalletInfo:[self createHttpCompletion:^(BaseModel * _Nonnull data) { @@ -69,7 +69,7 @@ /// 获取家族详细的信息 - (void)getClanDetailInfo { NSString * uid = [[AccountInfoStorage instance] getUid]; - if (uid == nil) { + if (!uid.length) { return; } [Api getClanDetailInfo:[self createHttpCompletion:^(BaseModel * _Nonnull data) { @@ -81,7 +81,7 @@ ///获取个人功能列表 - (void)getPersonItemList { NSString * uid = [[AccountInfoStorage instance] getUid]; - if (uid == nil) { + if (!uid.length) { return; } [Api requestPersonalFunctionItem:[self createHttpCompletion:^(BaseModel * _Nonnull data) { @@ -93,7 +93,7 @@ ///获取小游戏列表 - (void)getLittleGameList { NSString * uid = [[AccountInfoStorage instance] getUid]; - if (uid == nil) { + if (!uid.length) { return; } [Api getLittleGameList:[self createHttpCompletion:^(BaseModel * _Nonnull data) { @@ -105,7 +105,7 @@ ///获取个人中心banner - (void)getMineBannerList { NSString * uid = [[AccountInfoStorage instance] getUid]; - if (uid == nil) { + if (!uid.length) { return; } [Api requestMineBannerList:[self createHttpCompletion:^(BaseModel * _Nonnull data) { diff --git a/xplan-ios/Main/Mine/View/XPMineViewController.m b/xplan-ios/Main/Mine/View/XPMineViewController.m index 11717527..6d839dd5 100644 --- a/xplan-ios/Main/Mine/View/XPMineViewController.m +++ b/xplan-ios/Main/Mine/View/XPMineViewController.m @@ -119,11 +119,11 @@ - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; - [self.presenter getUserInfo]; } - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; + [self.presenter getUserInfo]; } #pragma mark - Response