This commit is contained in:
2025-12-16 16:09:14 +08:00
parent dfbd5efe69
commit e8a980ff5b
4 changed files with 11 additions and 4 deletions

View File

@@ -204,9 +204,10 @@ static NSString * const kKBVipReviewListCellId = @"kKBVipReviewListCellId";
__weak typeof(self) weakSelf = self;
[[KBStoreKitBridge shared] purchaseWithProductId:productId completion:^(BOOL success, NSString * _Nullable message) {
__strong typeof(weakSelf) self = weakSelf;
NSString *tip = message.length ? message : (success ? KBLocalized(@"Payment successful") : KBLocalized(@"Payment failed"));
// NSString *tip = message.length ? message : (success ? KBLocalized(@"Payment successful") : KBLocalized(@"Payment failed"));
[KBHUD dismiss];
[KBHUD showInfo:tip];
// [KBHUD showInfo:tip];
[KBHUD showInfo:KBLocalized(message)];
if (!self || !success) { return; }
// UI
[self selectCurrentPlanAnimated:NO];