This commit is contained in:
2025-12-12 16:09:14 +08:00
parent 2b08dd44ee
commit 437f796a08
6 changed files with 12 additions and 7 deletions

View File

@@ -36,7 +36,6 @@
#else
type = 1;
#endif
// , @"type": @(type)
NSDictionary *params = @{ @"receipt": receipt ?: @""};
__weak typeof(self) weakSelf = self;
@@ -47,7 +46,9 @@
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
[KBHUD showSuccess:@"Success"];
if (handler) handler(KBLocalized(@"Success"), nil);
} else {
}else if(sta == KBBizCodeReceiptError){
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
}else {
[KBHUD showError:@"Failed"];
if (handler) handler(KBLocalized(@"Failed"), nil);
}