This commit is contained in:
2025-12-15 15:40:25 +08:00
parent 2620bd6845
commit d5b4ef2b59
3 changed files with 3 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ NSString * const KBIAPDidCompletePurchaseNotification = @"KBIAPDidCompletePurcha
// , @"type": @(type) // , @"type": @(type)
NSDictionary *params = @{ @"receipt": receipt ?: @""}; NSDictionary *params = @{ @"receipt": receipt ?: @""};
__weak typeof(self) weakSelf = self; __weak typeof(self) weakSelf = self;
[KBHUD showWithStatus:@"请稍等..."];
[self.payVM applePayReqWithParams:params needShow:NO completion:^(NSInteger sta, NSString * _Nullable msg) { [self.payVM applePayReqWithParams:params needShow:NO completion:^(NSInteger sta, NSString * _Nullable msg) {
// [KBHUD dismiss]; // [KBHUD dismiss];
// [KBHUD showInfo:(sta == !KBBizCodeSuccess ? KBLocalized(@"Payment failed") : KBLocalized(@"Payment successful"))]; // [KBHUD showInfo:(sta == !KBBizCodeSuccess ? KBLocalized(@"Payment failed") : KBLocalized(@"Payment successful"))];

View File

@@ -333,7 +333,7 @@ static NSString * const kKBJfPayCellId = @"kKBJfPayCellId";
} }
[[FGIAPManager shared].iap buyProduct:match onCompletion:^(NSString * _Nonnull message, FGIAPManagerPurchaseRusult result) { [[FGIAPManager shared].iap buyProduct:match onCompletion:^(NSString * _Nonnull message, FGIAPManagerPurchaseRusult result) {
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[KBHUD dismiss]; // [KBHUD dismiss];
}); });
}]; }];
}); });

View File

@@ -209,7 +209,7 @@ static NSString * const kKBVipReviewListCellId = @"kKBVipReviewListCellId";
} }
[[FGIAPManager shared].iap buyProduct:match onCompletion:^(NSString * _Nonnull message, FGIAPManagerPurchaseRusult result) { [[FGIAPManager shared].iap buyProduct:match onCompletion:^(NSString * _Nonnull message, FGIAPManagerPurchaseRusult result) {
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[KBHUD dismiss]; // [KBHUD dismiss];
}); });
}]; }];
}); });