This commit is contained in:
2026-02-11 18:29:00 +08:00
parent d2ffada83f
commit 4168da618e
3 changed files with 10 additions and 4 deletions

View File

@@ -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];