个人中心获取信息接口UID判断

This commit is contained in:
chenguilong
2022-07-29 15:43:32 +08:00
parent e0571c6e75
commit 8a770de295
2 changed files with 9 additions and 2 deletions

View File

@@ -49,6 +49,9 @@
- (void)getUserWalletInfo {
NSString * uid = [AccountInfoStorage instance].getUid;
NSString * ticket = [AccountInfoStorage instance].getTicket;
if (uid == nil) {
return;
}
[Api getUserWalletInfo:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
WalletInfoModel * model = [WalletInfoModel modelWithDictionary:data.data];
[[self getView] getUserWalletInfo:model];
@@ -89,6 +92,10 @@
///
- (void)getLittleGameList {
NSString * uid = [[AccountInfoStorage instance] getUid];
if (uid == nil) {
return;
}
[Api getLittleGameList:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
NSArray * array = [LittleGameInfoModel modelsWithArray:data.data];
[[self getView] onGetLittleGameListSuccess:array];

View File

@@ -117,14 +117,14 @@
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.presenter getUserInfo];
[self.presenter getClanDetailInfo];
}
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[self.presenter getUserInfo];
[self.presenter getUserWalletInfo];
[self.presenter getPersonItemList];
[self.presenter getClanDetailInfo];
[self.presenter getLittleGameList];
[self.presenter getMineBannerList];
}