要存储的交易收据的哪一部分用于检查到期日

时间:2012-07-28 09:28:53

标签: iphone ios ios4 in-app-purchase

我正在尝试将事务收据存储到db中,请澄清我将在db上存储的数据部分由Apple服务器返回。

请让我知道并谢谢

  

"收据":{" original_purchase_date_pst":" 2012-07-24 05:41:19   美洲/洛杉矶&#34 ;,   " unique_identifier":" 46f070c011e0da17bc168ae9d3901dcf961f8c09&#34 ;,   " original_transaction_id":" 1000000053343936&#34 ;,   " expires_date":" 1343135478998"," transaction_id":" 1000000053343936",   "数量":" 1"," product_id":" com.XX.XXX",   " original_purchase_date_ms":" 1343133679239"," bid":" com.XX.XXX",   " web_order_line_item_id":" 1000000026126403"," bvrs":" 1.0",   " expires_date_formatted":" 2012-07-24 13:11:18 Etc / GMT",   " purchase_date":" 2012-07-24 12:41:18 Etc / GMT",   #&34; purchase_date_ms":" 1343133678998&#34 ;,   " expires_date_formatted_pst":" 2012-07-24 06:11:18   America / Los_Angeles"," purchase_date_pst":" 2012-07-24 05:41:18   America / Los_Angeles"," original_purchase_date":" 2012-07-24 12:41:19   Etc / GMT"," item_id":" 547592716"},   " latest_receipt_info" {" original_purchase_date_pst":" 2012-07-24   05:41:19 America / Los_Angeles",   " unique_identifier":" 46f070c011e0da17bc168ae9d3901dcf961f8c09&#34 ;,   " original_transaction_id":" 1000000053343936&#34 ;,   " expires_date":" 1343135478000"," transaction_id":" 1000000053343936",   "数量":" 1"," product_id":" com.XX.XXX",   " original_purchase_date_ms":" 1343133679000"," bid":" com.XX.XXX",   " web_order_line_item_id":" 1000000026126403"," bvrs":" 1.0",   " expires_date_formatted":" 2012-07-24 13:11:18 Etc / GMT",   " purchase_date":" 2012-07-24 12:41:18 Etc / GMT",   #&34; purchase_date_ms":" 1343133678000&#34 ;,   " expires_date_formatted_pst":" 2012-07-24 06:11:18   America / Los_Angeles"," purchase_date_pst":" 2012-07-24 05:41:18   America / Los_Angeles"," original_purchase_date":" 2012-07-24 12:41:19   Etc / GMT"," item_id":" 547592716"}," status":0,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scGJtRndjSEIxY21Ob1lYTmxkR1Z6ZEdsdVp5STdDZ2tpY0hWeVkyaGhjMlV0WkdGMFpTMXdjM1FpSUQwZ0lqSXdNVEl0TURjd​​E1qUWdNRFU2TkRFNk1UZ2dRVzFsY21sallTOU1iM05mUVc1blpXeGxjeUk3Q2draWNYVmhiblJwZEhraUlEMGdJakVpT3dwOSI7CgkiZW52aXJvbm1lbnQiID0gIlNhbmRib3giOwoJInBvZCIgPSAiMTAwIjsKCSJzaWduaW5nLXN0YXR1cyIgPSAiMCI7Cn0"

1 个答案:

答案 0 :(得分:0)

很容易猜到,"expires_date"就是你所需要的。 但是如果你想重新验证,如果用户以后继续订阅,那么你应该回想一下Apple服务器 - 在此之前无法知道,真的。