ios自动续订订阅,验证收据但是旧的purchase_date?

时间:2015-06-05 13:18:01

标签: ios in-app-purchase subscription

我验证了这样的收据:

NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
NSData *receipt = [NSData dataWithContentsOfURL:receiptURL];
/* send data to apple to verify */

我按预期得到了json的回应。奇怪的是我今天(6月5日)订阅了,但是在json dict中,我得到的最新记录是5月7日,就像这样:

 {
"expires_date" = "2015-05-07 15:25:33 Etc/GMT";
"expires_date_ms" = 1431012333000;
"expires_date_pst" = "2015-05-07 08:25:33 America/Los_Angeles";
"is_trial_period" = false;
"original_purchase_date" = "2015-05-07 14:13:35 Etc/GMT";
"original_purchase_date_ms" = 1431008015000;
"original_purchase_date_pst" = "2015-05-07 07:13:35 America/Los_Angeles";
"original_transaction_id" = 1000000152987263;
"product_id" = "com.xxxxx.xxxxxx";
"purchase_date" = "2015-05-07 14:25:33 Etc/GMT";
"purchase_date_ms" = 1431008733000;
"purchase_date_pst" = "2015-05-07 07:25:33 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000154409972;
"web_order_line_item_id" = 1000000029706408;
}

知道发生了什么事吗?我希望从这次验证中获得最新的到期日期,这应该是一段时间。这是正确的方法吗?

0 个答案:

没有答案