1
This commit is contained in:
@@ -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