gpt4 book ai didi

ios - 应用内购买收据中的 "expires_date"设置为早于 iOS 中的 "purchase_date"的日期

转载 作者:行者123 更新时间:2023-11-29 12:41:27 25 4
gpt4 key购买 nike

我目前正在沙盒模式下测试我的应用内订阅购买。如果你曾经这样做过,我同情你。

当我尝试验证我的购买时,我收到了一个非常奇怪的 Apple 收据。不知何故 expires_datepurchase_date 相比,我的购买时间更早.这显然不能,订阅在购买之前不能过期......我只是想知道是否有人经历过这种情况。我希望这是一些时髦的苹果沙盒错误。

如果在订阅期间我重新启动应用程序并请求收据,我会通过增加订阅获得正确的收据。一旦我将应用程序置于后台并回到前台,请求收据,我会得到一个完全不同的收据,错误 expires_date .

这是我在两次订阅续订后收到的良好收据,我必须重新启动应用程序才能获得此...
"latest_receipt_info" = (
{
"expires_date" = "2014-07-16 20:57:28 Etc/GMT";
"expires_date_ms" = 1405544248000;
"expires_date_pst" = "2014-07-16 13:57:28 America/Los_Angeles";
"is_trial_period" = false;
"original_purchase_date" = "2014-07-16 20:54:29 Etc/GMT";
"original_purchase_date_ms" = 1405544069000;
"original_purchase_date_pst" = "2014-07-16 13:54:29 America/Los_Angeles";
"original_transaction_id" = 1000000117061189;
"product_id" = "com.test.subscription";
"purchase_date" = "2014-07-16 20:57:40 Etc/GMT";
"purchase_date_ms" = 1405544260063;
"purchase_date_pst" = "2014-07-16 13:57:40 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000117061189;
"web_order_line_item_id" = 1000000028408117;
},
{
"expires_date" = "2014-07-16 21:00:28 Etc/GMT";
"expires_date_ms" = 1405544428000;
"expires_date_pst" = "2014-07-16 14:00:28 America/Los_Angeles";
"is_trial_period" = false;
"original_purchase_date" = "2014-07-16 20:56:35 Etc/GMT";
"original_purchase_date_ms" = 1405544195000;
"original_purchase_date_pst" = "2014-07-16 13:56:35 America/Los_Angeles";
"original_transaction_id" = 1000000117061189;
"product_id" = "com.test.subscription";
"purchase_date" = "2014-07-16 20:57:40 Etc/GMT";
"purchase_date_ms" = 1405544260063;
"purchase_date_pst" = "2014-07-16 13:57:40 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000117061258;
"web_order_line_item_id" = 1000000028408116;
}
);
receipt = {
"adam_id" = 0;
"application_version" = "1.99.9";
"bundle_id" = "com.test.company";
"download_id" = 0;
"in_app" = (
{
"expires_date" = "2014-07-16 20:57:28 Etc/GMT";
"expires_date_ms" = 1405544248000;
"expires_date_pst" = "2014-07-16 13:57:28 America/Los_Angeles";
"is_trial_period" = false;
"original_purchase_date" = "2014-07-16 20:54:29 Etc/GMT";
"original_purchase_date_ms" = 1405544069000;
"original_purchase_date_pst" = "2014-07-16 13:54:29 America/Los_Angeles";
"original_transaction_id" = 1000000117061189;
"product_id" = "com.test.subscription";
"purchase_date" = "2014-07-16 20:54:33 Etc/GMT";
"purchase_date_ms" = 1405544073000;
"purchase_date_pst" = "2014-07-16 13:54:33 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000117061189;
"web_order_line_item_id" = 1000000028408117;
}
);
"original_application_version" = "1.0";
"original_purchase_date" = "2013-08-01 07:00:00 Etc/GMT";
"original_purchase_date_ms" = 1375340400000;
"original_purchase_date_pst" = "2013-08-01 00:00:00 America/Los_Angeles";
"receipt_type" = ProductionSandbox;
"request_date" = "2014-07-16 20:57:40 Etc/GMT";
"request_date_ms" = 1405544260075;
"request_date_pst" = "2014-07-16 13:57:40 America/Los_Angeles";
};
status = 0;
}

这是当我将应用程序放入 BG 然后 FG 时我开始收到的坏收据...
"latest_receipt_info" = (
{
"expires_date" = "2014-07-15 19:44:07 Etc/GMT";
"expires_date_ms" = 1405453447000;
"expires_date_pst" = "2014-07-15 12:44:07 America/Los_Angeles";
"is_trial_period" = false;
"original_purchase_date" = "2014-07-15 19:41:08 Etc/GMT";
"original_purchase_date_ms" = 1405453268000;
"original_purchase_date_pst" = "2014-07-15 12:41:08 America/Los_Angeles";
"original_transaction_id" = 1000000116920864;
"product_id" = "com.test.subscription";
"purchase_date" = "2014-07-16 21:23:55 Etc/GMT";
"purchase_date_ms" = 1405545835331;
"purchase_date_pst" = "2014-07-16 14:23:55 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000116920864;
"web_order_line_item_id" = 1000000028402326;
}

如您所见 purchase_date如果将其与 expires_date 进行比较,实际上是在 future ……这是什么鬼?!

任何帮助,将不胜感激!

最佳答案

在购买任何 IAP 时,purchase_date 将仅显示该日期,之后将显示日期/时间或收据的恢复。

如果您希望获得实际购买日期,请使用 original_purchase_date 字段。如果您查看显示的收据,您会看到这看起来是正确的。

简而言之,您必须使用 original_purchase_date 字段来获取实际原始交易的时间/日期。

关于ios - 应用内购买收据中的 "expires_date"设置为早于 iOS 中的 "purchase_date"的日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24791100/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com