- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在沙盒模式下测试我的应用内订阅购买。如果你曾经这样做过,我同情你。
当我尝试验证我的购买时,我收到了一个非常奇怪的 Apple 收据。不知何故 expires_date
与 purchase_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/
我有一个 javascript 函数,可以执行以下操作; 它将日期编辑框设置为与另一个日期编辑相同的日期。但是我希望它将 txt_Testin
我有一个输入框,类型为“时间”。我想将迟到时间 (23:00pm) 作为最小值,将早期时间 (6:00am) 作为最大值 - 创建一个 23pm - 6am 的范围。 (即中午 11 点、中午 12
使用 Joda 时间并获得类似以下行为的最简单方法是什么: public boolean check( DateTime checkTime ) { DateTime someTime = n
我想计算 updated_at 比 created_at 早 2 小时的记录。 代码 $teLang = $kentekens->where('updated_at', '>', 'created_a
我是一名优秀的程序员,十分优秀!