我正在尝试生成一个文本文件,其中包含当前目录中所有文件的列表及其扩展名的所有子目录".asp".最好的方法是什么?
我使用我的测试用户购买了非耗材产品,但是当我打电话给我时:
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
Run Code Online (Sandbox Code Playgroud)
我在paymentQueueRestoreCompletedTransactionsFinished中没有看到任何交易.代码如下所示:
- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue
{
NSLog(@"received restored transactions: %i", queue.transactions.count);
for (SKPaymentTransaction *transaction in queue.transactions)
{
[self restoreTransaction:transaction];
}
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Success" message:@"Your add-ons have been restored." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];
return;
}
Run Code Online (Sandbox Code Playgroud)
日志始终显示"已接收已恢复的事务:0",但我希望看到一个事务.有谁知道为什么交易没有被退回?