Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetchProduct 存在不回调的情况 #15

Open
zhenhuamu opened this issue Dec 11, 2019 · 1 comment
Open

fetchProduct 存在不回调的情况 #15

zhenhuamu opened this issue Dec 11, 2019 · 1 comment

Comments

@zhenhuamu
Copy link

// 若内存中没有,网络获取
NSSet *set = [[NSSet alloc] initWithArray:@[identifier]];
[self requestProducts:set
success:^(NSArray *products, NSArray *invalidProductIdentifiers)
{
if (products.count > 0) {
if (success) {
success(products.firstObject);
}
}
} failure:failure];
在products.count == 0 的情况

@exorxw
Copy link

exorxw commented Feb 5, 2020

这个自己补充else走失败回调

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants