修复bug
This commit is contained in:
@@ -15,9 +15,12 @@
|
||||
#import "StatisticsServiceHelper.h"
|
||||
#import "YUMIConstant.h"
|
||||
#import "Api+Room.h"
|
||||
#import "Api+NobleCenter.h"
|
||||
#import "Api+RoomSetting.h"
|
||||
#import "AccountInfoStorage.h"
|
||||
#import "ClientConfig.h"
|
||||
#import "NobleCenterModel.h"
|
||||
#import "NobleInfo.h"
|
||||
///Model
|
||||
#import "XPMineItemModel.h"
|
||||
#import "UserInfoModel.h"
|
||||
@@ -26,6 +29,7 @@
|
||||
#import "HomeBannerInfoModel.h"
|
||||
#import "XPMineFuntionItemModel.h"
|
||||
#import "WalletInfoModel.h"
|
||||
|
||||
///P
|
||||
#import "XPMineProtocol.h"
|
||||
#import "XPMinePresent.h"
|
||||
@@ -129,6 +133,24 @@ UIKIT_EXTERN NSString *kRequestRicket;
|
||||
[super viewDidAppear:animated];
|
||||
if([AccountInfoStorage instance].isRequestRicket == YES)return;
|
||||
[self.presenter getUserInfo];
|
||||
[Api nobleCenterLevelList:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
|
||||
if (code == 200){
|
||||
NobleCenterModel *model = [NobleCenterModel modelWithDictionary:data.data];
|
||||
NobleInfo *vipInfo ;
|
||||
for (int index = 0; index < model.vipInfos.count; index++) {
|
||||
NobleInfo *tagInfo = [model.vipInfos safeObjectAtIndex1:index];
|
||||
|
||||
if (model.currLevel > 0){
|
||||
if (tagInfo.vipLevel == model.currLevel) {
|
||||
vipInfo = tagInfo;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
self.headView.vipInfo = vipInfo;
|
||||
}
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
#pragma mark- 检查是否有转赠钻石权限
|
||||
|
Reference in New Issue
Block a user