diff --git a/Shared/Localization/en.lproj/Localizable.strings b/Shared/Localization/en.lproj/Localizable.strings index 28a7e71..246079c 100644 --- a/Shared/Localization/en.lproj/Localizable.strings +++ b/Shared/Localization/en.lproj/Localizable.strings @@ -263,3 +263,6 @@ "Please Enter The Modified Nickname" = "Please enter the new nickname"; "Save" = "Save"; "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."; diff --git a/Shared/Localization/zh-Hans.lproj/Localizable.strings b/Shared/Localization/zh-Hans.lproj/Localizable.strings index 02e2632..f930300 100644 --- a/Shared/Localization/zh-Hans.lproj/Localizable.strings +++ b/Shared/Localization/zh-Hans.lproj/Localizable.strings @@ -261,3 +261,6 @@ "Please Enter The Modified Nickname" = "请输入修改后的昵称"; "Save" = "保存"; "Please copy the text first" = "请先复制文本"; +"Purchase cancelled." = "已取消购买"; +"Purchase pending approval." = "购买等待确认"; +"Unable to obtain transaction payload." = "无法获取交易凭据"; diff --git a/keyBoard/Class/Pay/VC/KBJfPay.m b/keyBoard/Class/Pay/VC/KBJfPay.m index 4fcf3c2..bd42600 100644 --- a/keyBoard/Class/Pay/VC/KBJfPay.m +++ b/keyBoard/Class/Pay/VC/KBJfPay.m @@ -328,9 +328,9 @@ static NSString * const kKBJfPayCellId = @"kKBJfPayCellId"; __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:KBLocalized(message)]; (void)self; }]; } diff --git a/keyBoard/Class/Pay/VC/KBVipPay.m b/keyBoard/Class/Pay/VC/KBVipPay.m index f824daf..77bd25f 100644 --- a/keyBoard/Class/Pay/VC/KBVipPay.m +++ b/keyBoard/Class/Pay/VC/KBVipPay.m @@ -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];