个人中心获取信息接口UID判断
This commit is contained in:
@@ -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];
|
||||
|
@@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user