|
@@ -1142,8 +1142,12 @@ NSString * const KMMemberInfoChangeNotification = @"KMMemberInfoChangeNotificati
|
|
|
self.proAIProduct.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.fourDevicesAllAccessPackNew6Months_lite.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:transaction];
|
|
|
+// [[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
+// object:nil, ];
|
|
|
+ NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
|
|
|
+ dict[@"tid"] = transactionId ? transactionId : @"";
|
|
|
+ dict[@"pid"] = productId ? productId : @"";
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification object:nil userInfo:dict];
|
|
|
}];
|
|
|
self.fourDevicesAllAccessPackNew6Months_lite.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.fourDevicesAllAccessPackNew12months_lite.productIdentifier]) {
|
|
@@ -1222,7 +1226,7 @@ NSString * const KMMemberInfoChangeNotification = @"KMMemberInfoChangeNotificati
|
|
|
}];
|
|
|
}
|
|
|
if (!self.isPurchasing) {
|
|
|
- return;
|
|
|
+// return;
|
|
|
}
|
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPProductPurchasedNotification
|