forked from xuxiaobo4510/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLaunchCenterPro.js
69 lines (69 loc) · 9.69 KB
/
LaunchCenterPro.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
var obj = JSON.parse($response.body);
obj = {
"status": 0,
"environment": "Production",
"receipt": {
"receipt_type": "Production",
"adam_id": 532016360,
"app_item_id": 532016360,
"bundle_id": "com.appcubby.launchpro",
"application_version": "419",
"download_id": 36067532683136,
"version_external_identifier": 834788001,
"receipt_creation_date": "2020-03-23 08:44:59 Etc/GMT",
"receipt_creation_date_ms": "1584953099000",
"receipt_creation_date_pst": "2020-03-23 01:44:59 America/Los_Angeles",
"request_date": "2020-03-23 08:53:05 Etc/GMT",
"request_date_ms": "1584953585061",
"request_date_pst": "2020-03-23 01:53:05 America/Los_Angeles",
"original_purchase_date": "2020-03-23 07:25:19 Etc/GMT",
"original_purchase_date_ms": "1584948319000",
"original_purchase_date_pst": "2020-03-23 00:25:19 America/Los_Angeles",
"original_application_version": "419",
"in_app": [{
"quantity": "1",
"product_id": "com.appcubby.launchpro.subscription.annual",
"transaction_id": "160000705706982",
"original_transaction_id": "160000705706982",
"purchase_date": "2020-03-23 08:42:53 Etc/GMT",
"purchase_date_ms": "1584952973000",
"purchase_date_pst": "2020-03-23 01:42:53 America/Los_Angeles",
"original_purchase_date": "2020-03-23 08:42:53 Etc/GMT",
"original_purchase_date_ms": "1584952973000",
"original_purchase_date_pst": "2020-03-23 01:42:53 America/Los_Angeles",
"expires_date": "2099-03-30 08:42:53 Etc/GMT",
"expires_date_ms": "4078544769000",
"expires_date_pst": "2099-03-30 01:42:53 America/Los_Angeles",
"web_order_line_item_id": "160000251874135",
"is_trial_period": "true",
"is_in_intro_offer_period": "false"
}]
},
"latest_receipt_info": [{
"quantity": "1",
"product_id": "com.appcubby.launchpro.subscription.annual",
"transaction_id": "160000705706982",
"original_transaction_id": "160000705706982",
"purchase_date": "2020-03-23 08:42:53 Etc/GMT",
"purchase_date_ms": "1584952973000",
"purchase_date_pst": "2020-03-23 01:42:53 America/Los_Angeles",
"original_purchase_date": "2020-03-23 08:42:53 Etc/GMT",
"original_purchase_date_ms": "1584952973000",
"original_purchase_date_pst": "2020-03-23 01:42:53 America/Los_Angeles",
"expires_date": "2099-03-30 08:42:53 Etc/GMT",
"expires_date_ms": "4078544769000",
"expires_date_pst": "2099-03-30 01:42:53 America/Los_Angeles",
"web_order_line_item_id": "160000251874135",
"is_trial_period": "true",
"is_in_intro_offer_period": "false",
"subscription_group_identifier": "20491497"
}],
"latest_receipt": "MIIUFgYJKoZIhvcNAQcCoIIUBzCCFAMCAQExCzAJBgUrDgMCGgUAMIIDtwYJKoZIhvcNAQcBoIIDqASCA6QxggOgMAoCARQCAQEEAgwAMAsCARkCAQEEAwIBAzAMAgELAgEBBAQCAlHJMAwCAQ4CAQEEBAICAL0wDQIBAwIBAQQFDAM0MTkwDQIBCgIBAQQFFgMxMiswDQIBDQIBAQQFAgMB/PwwDQIBEwIBAQQFDAM0MTkwDgIBAQIBAQQGAgQftezoMA4CAQkCAQEEBgIEUDI1MzAOAgEQAgEBBAYCBDHB2qEwEAIBDwIBAQQIAgYgzaB5N4AwFAIBAAIBAQQMDApQcm9kdWN0aW9uMBgCAQQCAQIEENuH1Dkwr6jT0n3LVOjPTv8wHAIBBQIBAQQUYS9x1MV87g7hz3rrydIziyusHDkwHgIBCAIBAQQWFhQyMDIwLTAzLTIzVDA4OjQ0OjU5WjAeAgEMAgEBBBYWFDIwMjAtMDMtMjNUMDg6NTM6MDVaMB4CARICAQEEFhYUMjAyMC0wMy0yM1QwNzoyNToxOVowIAIBAgIBAQQYDBZjb20uYXBwY3ViYnkubGF1bmNocHJvMDECAQcCAQEEKcnq4L/uG+UsjaVJdGLFg1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iPvl4/2vIB+x9OYOLUyDTOMSxv5pPCmv/K/xZpwUJfBdAVhEedNO3iyM7R6PVbyTi69G3cN8PReEnyvFteO3ntRcXqNx+IjXKJdXZD9Zr1KIkIxH3oayPc4FgxhtbCS+SsvhESPBgOJ4V9T0mZyCKM2r3DYLP3uujL/lTaltkwGMzd/c6ByxW69oPIQ7aunMZT7XZNn/Bh1XZp5m5MkL72NVxnn6hUrcbvZNCJBIqxw8dtk2cXmPIS4AXUKqK1drk/NAJBzewdXUhMYIByzCCAccCAQEwgaMwgZYxCzAJBgNVBAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3JsZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkCCA7rV4fnngmNMAkGBSsOAwIaBQAwDQYJKoZIhvcNAQEBBQAEggEABAu6h5RGFYyYqz4L+9JIeh4zkNDiwcNkybzbYJcPjuX1IJpc8RO5ecdmu2LGd027ZVJzvmxASHWKjb6my7sXJf5ldR0Z0F/Y+CHRjwec4Y9UCDZ8ZQxmp0XlU+EaVBPw6Hc6mizxDsBGWR1nNnhtpZxhCkQT8IlsLFZc/QgiLxuDvMVShy6SdOa7f3TkhA7yyHmGpNqbT3OKBNT9cZaoV+gPQMiWtuTMgyXe5SwP06xhYWFCin1ALMiK2mPmAQOWgFIv9pO2YYiNGyjvcI8dD0a/YpJY2qqP4q/NIJ8Ph6Qjo/xyySG/QTcijDKNHY7WK2//eyXodsG9jKBRVvk+cA==",
"pending_renewal_info": [{
"auto_renew_product_id": "com.appcubby.launchpro.subscription.annual",
"original_transaction_id": "160000705706982",
"product_id": "com.appcubby.launchpro.subscription.annual",
"auto_renew_status": "0"
}]
}
$done({body: JSON.stringify(obj)});