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

@@ -593,7 +593,7 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
[btn setTitle:key.title forState:UIControlStateNormal]; [btn setTitle:key.title forState:UIControlStateNormal];
// //
[btn applyThemeForCurrentKey]; [btn applyThemeForCurrentKey];
[btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchUpInside]; [btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchDown];
[row addSubview:btn]; [row addSubview:btn];
if (key.type == KBKeyTypeBackspace) { if (key.type == KBKeyTypeBackspace) {
@@ -919,7 +919,7 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
} }
[btn applyThemeForCurrentKey]; [btn applyThemeForCurrentKey];
[btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchUpInside]; [btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchDown];
if (key.type == KBKeyTypeBackspace) { if (key.type == KBKeyTypeBackspace) {
[self.backspaceHandler bindDeleteButton:btn showClearLabel:YES]; [self.backspaceHandler bindDeleteButton:btn showClearLabel:YES];

View File

@@ -96,7 +96,7 @@ static NSString * const kKBSvipBenefitHeaderId = @"kKBSvipBenefitHeaderId";
// level=2 SVIP // level=2 SVIP
NSMutableArray<KBPayProductModel *> *svipProducts = [NSMutableArray array]; NSMutableArray<KBPayProductModel *> *svipProducts = [NSMutableArray array];
for (KBPayProductModel *product in products) { for (KBPayProductModel *product in products) {
if (product.level == 1) { if (product.level == 2) {
[svipProducts addObject:product]; [svipProducts addObject:product];
} }
} }

View File

@@ -135,7 +135,13 @@ static NSString * const kKBVipReviewListCellId = @"kKBVipReviewListCellId";
if (tip.length) { [KBHUD showInfo:tip]; } if (tip.length) { [KBHUD showInfo:tip]; }
return; 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.selectedIndex = self.plans.count > 0 ? 0 : NSNotFound;
[self.collectionView reloadData]; [self.collectionView reloadData];
[self prepareStoreKitWithPlans:self.plans]; [self prepareStoreKitWithPlans:self.plans];