1
This commit is contained in:
@@ -96,7 +96,7 @@ static NSString * const kKBSvipBenefitHeaderId = @"kKBSvipBenefitHeaderId";
|
||||
// 过滤 level=2 的 SVIP 数据
|
||||
NSMutableArray<KBPayProductModel *> *svipProducts = [NSMutableArray array];
|
||||
for (KBPayProductModel *product in products) {
|
||||
if (product.level == 1) {
|
||||
if (product.level == 2) {
|
||||
[svipProducts addObject:product];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,13 @@ static NSString * const kKBVipReviewListCellId = @"kKBVipReviewListCellId";
|
||||
if (tip.length) { [KBHUD showInfo:tip]; }
|
||||
return;
|
||||
}
|
||||
self.plans = products ?: @[];
|
||||
NSMutableArray<KBPayProductModel *> *vipProducts = [NSMutableArray array];
|
||||
for (KBPayProductModel *product in products) {
|
||||
if (product.level == 1) {
|
||||
[vipProducts addObject:product];
|
||||
}
|
||||
}
|
||||
self.plans = vipProducts ?: @[];
|
||||
self.selectedIndex = self.plans.count > 0 ? 0 : NSNotFound;
|
||||
[self.collectionView reloadData];
|
||||
[self prepareStoreKitWithPlans:self.plans];
|
||||
|
||||
Reference in New Issue
Block a user