小编Mar*_*ann的帖子

如何在当前目录及其子目录中创建具有给定扩展名的文件列表?

我正在尝试生成一个文本文件,其中包含当前目录中所有文件的列表及其扩展名的所有子目录".asp".最好的方法是什么?

python

9
推荐指数
1
解决办法
2万
查看次数

StoreKit restoreCompletedTransactions不返回任何事务

我使用我的测试用户购买了非耗材产品,但是当我打电话给我时:

[[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",但我希望看到一个事务.有谁知道为什么交易没有被退回?

iphone storekit ios

6
推荐指数
1
解决办法
4503
查看次数

标签 统计

ios ×1

iphone ×1

python ×1

storekit ×1