我正在使用自动续订订阅inApp Purchase,在验证了苹果购买收据后,我得到了以下回复。现在latest_receipt_info
和receipt
之间有什么区别。 orignal_purchase_date
和purchase_date
{
"latest_receipt" = "ewoJInNpZ25hdHVyZSIgPSAiQXBadmlLOGhlTGVQV1o3bjNsRysrcSt6cm5pUG51VnVwVkxaaGx5bjVCMzVnTWZIVGVZMnVnbkkxRUpEMlpqZm5PL3hQSVJRQWU1QmZ1SzluUVlLNnIzZXpBQW9zR1lYc3RyeW9GenRBM1NtUitNYmhwNjg2T2ZTejE3L0gzK0ZmK3JjKzUvaSttWUljZENYZ0plUXh4Y3V0cVdNTExaNGFhT0ZVa2NRaXZCUEFBQURWekNDQTFNd2dnSTdvQU1DQVFJQ0NHVVVrVTNaV0FTMU1BMEdDU3FHU0liM0RRRUJCUVVBTUg4eEN6QUpCZ05WQkFZVEFsVlRNUk13RVFZRFZRUUtEQXBCY0hCc1pTQkpibU11TVNZd0pBWURWUVFMREIxQmNIQnNaU0JEWlhKMGFXWnBZMkYwYVc5dUlFRjFkR2h2Y21sMGVURXpNREVHQTFVRUF3d3FRWEJ3YkdVZ2FWUjFibVZ6SUZOMGIzSmxJRU5sY25ScFptbGpZWFJwYjI0Z1FYVjBhRzl5YVhSNU1CNFhEVEE1TURZeE5USXlNRFUxTmxvWERURTBNRFl4TkRJeU1EVTFObG93WkRFak1DRUdBMVVFQXd3YVVIVnlZMmhoYzJWU1pXTmxhWEIwUTJWeWRHbG1hV05oZEdVeEd6QVpCZ05WQkFzTUVrRndjR3hsSUdsVWRXNWxjeUJUZEc5eVpURVRNQkVHQTFVRUNnd0tRWEJ3YkdVZ1NXNWpMakVMTUFrR0ExVUVCaE1DVlZNd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFNclJqRjJjdDRJclNkaVRDaGFJMGc4cHd2L2NtSHM4cC9Sd1YvcnQvOTFYS1ZoTmw0WElCaW1LalFRTmZnSHNEczZ5anUrK0RyS0pFN3VLc3BoT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nUlhSakwwZE5WQ0k3Q2draVltbGtJaUE5SUNKamIyMHVZMkZ1Wkdsa1RXRnlhMlYwTG1OdmJTSTdDZ2tpY0hWeVkyaGhjMlV0WkdGMFpTMXdjM1FpSUQwZ0lqSXdNVEl0TVRJdE1UWWdNREk2TkRrNk5EVWdRVzFsY21sallTOU1iM05mUVc1blpXeGxjeUk3Q2draWNYVmhiblJwZEhraUlEMGdJakVpT3dwOSI7CgkiZW52aXJvbm1lbnQiID0gIlNhbmRib3giOwoJInBvZCIgPSAiMTAwIjsKCSJzaWduaW5nLXN0YXR1cyIgPSAiMCI7Cn0=";
"latest_receipt_info" =
{
bid = "com.candidMarket.com";
bvrs = "1.0";
"expires_date" = 1355655285000;
"expires_date_formatted" = "2012-12-16 10:54:45 Etc/GMT";
"expires_date_formatted_pst" = "2012-12-16 02:54:45 America/Los_Angeles";
"item_id" = 588124128;
"original_purchase_date" = "2012-12-16 07:23:11 Etc/GMT";
"original_purchase_date_ms" = 1355642591000;
"original_purchase_date_pst" = "2012-12-15 23:23:11 America/Los_Angeles";
"original_transaction_id" = 1000000060542119;
"product_id" = candidMarket101;
"purchase_date" = "2012-12-16 10:49:45 Etc/GMT";
"purchase_date_ms" = 1355654985000;
"purchase_date_pst" = "2012-12-16 02:49:45 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000060544594;
"unique_identifier" = 2cc1d763f86c47ffe24b1ac9f351c3ae126c8144;
"web_order_line_item_id" = 1000000026481135;
};
receipt =
{
bid = "com.candidMarket.com";
bvrs = "1.0";
"expires_date" = 1355643190000;
"expires_date_formatted" = "2012-12-16 07:33:10 Etc/GMT";
"expires_date_formatted_pst" = "2012-12-15 23:33:10 America/Los_Angeles";
"item_id" = 588124128;
"original_purchase_date" = "2012-12-16 07:23:11 Etc/GMT";
"original_purchase_date_ms" = 1355642591000;
"original_purchase_date_pst" = "2012-12-15 23:23:11 America/Los_Angeles";
"original_transaction_id" = 1000000060542119;
"product_id" = candidMarket101;
"purchase_date" = "2012-12-16 07:28:10 Etc/GMT";
"purchase_date_ms" = 1355642890000;
"purchase_date_pst" = "2012-12-15 23:28:10 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000060542139;
"unique_identifier" = 2cc1d763f86c47ffe24b1ac9f351c3ae126c8144;
"web_order_line_item_id" = 1000000026481035;
};
status = 0;
}
答案 0 :(得分:1)
似乎收据字段包含第一个receipt
信息,而latest_receipt_info
包含来自最新交易的收据。我正在等待续约确认。
假设这样,第一个事务将使这两个字段相同。
他们应该在续约方面有所不同
original_purchase_date
是订阅开始的日期(用户成功订阅)purchase_date
是最后一张发票发生的日期(例如续订)。如果它是第一个事务(用户刚刚第一次订阅的情况),它们几乎是相同的。如收据数据中所示