1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user