From 4168da618e87d62a39db9fd60d8bd1e8f340e662 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Wed, 11 Feb 2026 18:29:00 +0800 Subject: [PATCH] 1 --- CustomKeyboard/View/KBKeyboardView.m | 4 ++-- keyBoard/Class/Pay/VC/KBPaySvipVC.m | 2 +- keyBoard/Class/Pay/VC/KBVipPay.m | 8 +++++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CustomKeyboard/View/KBKeyboardView.m b/CustomKeyboard/View/KBKeyboardView.m index 82bd326..46a256b 100644 --- a/CustomKeyboard/View/KBKeyboardView.m +++ b/CustomKeyboard/View/KBKeyboardView.m @@ -593,7 +593,7 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier { [btn setTitle:key.title forState:UIControlStateNormal]; // 在设置完标题后,按当前皮肤应用图标与文字显隐 [btn applyThemeForCurrentKey]; - [btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchUpInside]; + [btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchDown]; [row addSubview:btn]; if (key.type == KBKeyTypeBackspace) { @@ -919,7 +919,7 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier { } [btn applyThemeForCurrentKey]; - [btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchUpInside]; + [btn addTarget:self action:@selector(onKeyTapped:) forControlEvents:UIControlEventTouchDown]; if (key.type == KBKeyTypeBackspace) { [self.backspaceHandler bindDeleteButton:btn showClearLabel:YES]; diff --git a/keyBoard/Class/Pay/VC/KBPaySvipVC.m b/keyBoard/Class/Pay/VC/KBPaySvipVC.m index 2ca817e..9558473 100644 --- a/keyBoard/Class/Pay/VC/KBPaySvipVC.m +++ b/keyBoard/Class/Pay/VC/KBPaySvipVC.m @@ -96,7 +96,7 @@ static NSString * const kKBSvipBenefitHeaderId = @"kKBSvipBenefitHeaderId"; // 过滤 level=2 的 SVIP 数据 NSMutableArray *svipProducts = [NSMutableArray array]; for (KBPayProductModel *product in products) { - if (product.level == 1) { + if (product.level == 2) { [svipProducts addObject:product]; } } diff --git a/keyBoard/Class/Pay/VC/KBVipPay.m b/keyBoard/Class/Pay/VC/KBVipPay.m index 44435b3..65c5d3d 100644 --- a/keyBoard/Class/Pay/VC/KBVipPay.m +++ b/keyBoard/Class/Pay/VC/KBVipPay.m @@ -135,7 +135,13 @@ static NSString * const kKBVipReviewListCellId = @"kKBVipReviewListCellId"; if (tip.length) { [KBHUD showInfo:tip]; } return; } - self.plans = products ?: @[]; + NSMutableArray *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];