修复bug
This commit is contained in:
@@ -136,24 +136,7 @@ UIKIT_EXTERN NSString *kRequestRicket;
|
||||
}
|
||||
-(void)getDataInfo{
|
||||
[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- 检查是否有转赠钻石权限
|
||||
|
||||
@@ -635,7 +618,25 @@ UIKIT_EXTERN NSString *kRequestRicket;
|
||||
///获取VIP信息成功
|
||||
- (void)getNobleCenterInfoSuccess:(NobleCenterModel *)model {
|
||||
self.headView.nobleInfo = model;
|
||||
[self.tableView reloadData];
|
||||
[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;
|
||||
}
|
||||
[self.tableView reloadData];
|
||||
}];
|
||||
|
||||
}
|
||||
-(void)getNobleCenterInfoFail{
|
||||
|
||||
|
Reference in New Issue
Block a user