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

@@ -263,3 +263,6 @@
"Please Enter The Modified Nickname" = "Please enter the new nickname"; "Please Enter The Modified Nickname" = "Please enter the new nickname";
"Save" = "Save"; "Save" = "Save";
"Please copy the text first" = "Please copy the text first"; "Please copy the text first" = "Please copy the text first";
"Purchase cancelled." = "Purchase cancelled.";
"Purchase pending approval." = "Purchase pending approval.";
"Unable to obtain transaction payload." = "Unable to obtain transaction payload.";

View File

@@ -261,3 +261,6 @@
"Please Enter The Modified Nickname" = "请输入修改后的昵称"; "Please Enter The Modified Nickname" = "请输入修改后的昵称";
"Save" = "保存"; "Save" = "保存";
"Please copy the text first" = "请先复制文本"; "Please copy the text first" = "请先复制文本";
"Purchase cancelled." = "已取消购买";
"Purchase pending approval." = "购买等待确认";
"Unable to obtain transaction payload." = "无法获取交易凭据";

View File

@@ -328,9 +328,9 @@ static NSString * const kKBJfPayCellId = @"kKBJfPayCellId";
__weak typeof(self) weakSelf = self; __weak typeof(self) weakSelf = self;
[[KBStoreKitBridge shared] purchaseWithProductId:productId completion:^(BOOL success, NSString * _Nullable message) { [[KBStoreKitBridge shared] purchaseWithProductId:productId completion:^(BOOL success, NSString * _Nullable message) {
__strong typeof(weakSelf) self = weakSelf; __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 dismiss];
[KBHUD showInfo:tip]; [KBHUD showInfo:KBLocalized(message)];
(void)self; (void)self;
}]; }];
} }

View File

@@ -204,9 +204,10 @@ static NSString * const kKBVipReviewListCellId = @"kKBVipReviewListCellId";
__weak typeof(self) weakSelf = self; __weak typeof(self) weakSelf = self;
[[KBStoreKitBridge shared] purchaseWithProductId:productId completion:^(BOOL success, NSString * _Nullable message) { [[KBStoreKitBridge shared] purchaseWithProductId:productId completion:^(BOOL success, NSString * _Nullable message) {
__strong typeof(weakSelf) self = weakSelf; __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 dismiss];
[KBHUD showInfo:tip]; // [KBHUD showInfo:tip];
[KBHUD showInfo:KBLocalized(message)];
if (!self || !success) { return; } if (!self || !success) { return; }
// UI // UI
[self selectCurrentPlanAnimated:NO]; [self selectCurrentPlanAnimated:NO];