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

提几个问题,希望优化下 #17

Open
idewindy opened this issue Feb 12, 2020 · 0 comments
Open

提几个问题,希望优化下 #17

idewindy opened this issue Feb 12, 2020 · 0 comments

Comments

@idewindy
Copy link

1.XYStoreiTunesReceiptVerifier 这个类的查询订阅速度太慢,特别是在列表里,不断查询的话,能明显感觉到卡顿,yy_modelWithDictionary 可以把这个对象缓存到字典里,而不是把json数据缓存起来,速度会快很多
2.- (void)verifyTransaction:(SKPaymentTransaction*)transaction
success:(void (^)(void))successBlock
failure:(void (^)(NSError *error))failureBlock
这个协议方法,希望把这个SKPaymentTransaction参数给改了,改成productIdentifier,我看用的时候,也就是用的这个,其他参数用处不大,最主要的点是已订阅用户,卸载重装,这时候可以调用这个方法来检查订阅情况,[NSBundle mainBundle].appStoreReceiptURL这个url之前版本卸载后为空,现在新版本是有值的,所以是可以查询订阅状态的

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

1 participant