forked from ihaoljy/Rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlantApp.js
163 lines (152 loc) · 13.3 KB
/
PlantApp.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/******************************
Plantapp
下载地址:https://apps.apple.com/cn/app/plant-app-plant-identifier/id1595795215
Mimic:Ai动态图片制作
下载地址:https://apps.apple.com/cn/app/mimic-ai%E7%85%A7%E7%89%87%E9%9D%A2%E9%83%A8%E5%8A%A8%E7%94%BB%E5%88%B6%E4%BD%9C/id1590841930
[rewrite_local]
https://api.adapty.io/api/v1/sdk/in-apps/apple/receipt/validate/ url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/PlantApp.js
[mitm]
hostname = api.adapty.io
*******************************/
var objc = JSON.parse($response.body);
objc = {
"data": {
"type": "adapty_inapps_apple_receipt_validation_result",
"id": "59fe2e63-0211-42ac-b34a-968265040237",
"attributes": {
"app_id": "f0400c70-89aa-47ef-9fee-7e85eecf3d2c",
"total_revenue_usd": 0,
"customer_user_id": "DE21D2D730A441469B8756F968913E0C",
"subscriptions": {
"plantapp.lifetime.sub": {
"vendor_transaction_id": "220001751110666",
"offer_id": null,
"billing_issue_detected_at": null,
"is_lifetime": false,
"store": "app_store",
"vendor_product_id": "plantapp.lifetime.sub",
"vendor_original_transaction_id": "220001751110666",
"will_renew": false,
"renewed_at": "2023-10-06T01:47:25.000000+0000",
"cancellation_reason": null,
"active_promotional_offer_id": null,
"active_promotional_offer_type": null,
"unsubscribed_at": "2023-10-06T06:43:57.110174+0000",
"is_active": true,
"activated_at": "2023-10-06T01:47:26.000000+0000",
"is_refund": false,
"is_in_grace_period": false,
"active_introductory_offer_type": "free_trial",
"expires_at": "2099-10-13T01:47:25.000000+0000",
"starts_at": null,
"is_sandbox": false
}
},
"promotional_offer_eligibility": false,
"custom_attributes": {
},
"profile_id": "59fe2e63-0211-42ac-b34a-968265040237",
"paid_access_levels": {
"premium": {
"id": "premium",
"is_lifetime": false,
"vendor_product_id": "retouch_lifetime_ios",
"active_promotional_offer_type": null,
"cancellation_reason": null,
"billing_issue_detected_at": null,
"unsubscribed_at": "2023-10-06T06:43:57.115521+0000",
"expires_at": "2099-10-13T01:47:25.000000+0000",
"will_renew": false,
"is_active": true,
"offer_id": null,
"is_in_grace_period": false,
"activated_at": "2023-10-06T01:47:26.000000+0000",
"active_promotional_offer_id": null,
"renewed_at": "2023-10-06T01:47:25.000000+0000",
"is_refund": false,
"active_introductory_offer_type": "free_trial",
"store": "app_store",
"starts_at": null
}
},
"introductory_offer_eligibility": false,
"apple_validation_result": {
"environment": "Production",
"receipt": {
"receipt_type": "Production",
"app_item_id": 1637817985,
"receipt_creation_date": "2023-10-06 06:40:08 Etc\/GMT",
"bundle_id": "com.scaleup.plantid",
"original_purchase_date": "2023-10-06 01:41:29 Etc\/GMT",
"in_app": [
{
"quantity": "1",
"purchase_date_ms": "1696556845000",
"expires_date": "2099-10-13 01:47:25 Etc\/GMT",
"expires_date_pst": "2023-10-12 18:47:25 America\/Los_Angeles",
"is_in_intro_offer_period": "false",
"transaction_id": "220001751110666",
"is_trial_period": "true",
"original_transaction_id": "220001751110666",
"purchase_date": "2023-10-06 01:47:25 Etc\/GMT",
"product_id": "retouch_lifetime_ios",
"original_purchase_date_pst": "2023-10-05 18:47:26 America\/Los_Angeles",
"in_app_ownership_type": "PURCHASED",
"original_purchase_date_ms": "1696556846000",
"web_order_line_item_id": "220000798337860",
"expires_date_ms": "4095510443000",
"purchase_date_pst": "2023-10-05 18:47:25 America\/Los_Angeles",
"original_purchase_date": "2023-10-06 01:47:26 Etc\/GMT"
}
],
"adam_id": 1637817985,
"receipt_creation_date_pst": "2023-10-05 23:40:08 America\/Los_Angeles",
"request_date": "2023-10-06 06:43:57 Etc\/GMT",
"request_date_pst": "2023-10-05 23:43:57 America\/Los_Angeles",
"version_external_identifier": 855359449,
"request_date_ms": "1696574637083",
"original_purchase_date_pst": "2023-10-05 18:41:29 America\/Los_Angeles",
"application_version": "7",
"original_purchase_date_ms": "1696556489000",
"receipt_creation_date_ms": "1696574408000",
"original_application_version": "7",
"download_id": 502842088787971977
},
"pending_renewal_info": [
{
"product_id": "plantapp.lifetime.sub",
"original_transaction_id": "220001751110666",
"auto_renew_product_id": "plantapp.lifetime.sub",
"auto_renew_status": "0"
}
],
"status": 0,
"latest_receipt_info": [
{
"quantity": "1",
"purchase_date_ms": "1696556845000",
"expires_date": "2099-10-13 01:47:25 Etc\/GMT",
"expires_date_pst": "2023-10-12 18:47:25 America\/Los_Angeles",
"is_in_intro_offer_period": "false",
"transaction_id": "220001751110666",
"is_trial_period": "true",
"original_transaction_id": "220001751110666",
"purchase_date": "2023-10-06 01:47:25 Etc\/GMT",
"product_id": "plantapp.lifetime.sub",
"original_purchase_date_pst": "2023-10-05 18:47:26 America\/Los_Angeles",
"in_app_ownership_type": "PURCHASED",
"subscription_group_identifier": "21057385",
"original_purchase_date_ms": "1696556846000",
"web_order_line_item_id": "220000798337860",
"expires_date_ms": "4095510443000",
"purchase_date_pst": "2023-10-05 18:47:25 America\/Los_Angeles",
"original_purchase_date": "2023-10-06 01:47:26 Etc\/GMT"
}
],
"latest_receipt": "MIIUhwYJKoZIhvcNAQcCoIIUeDCCFHQCAQExCzAJBgUrDgMCGgUAMIIDxQYJKoZIhvcNAQcBoIIDtgSCA7IxggOuMAoCARQCAQEEAgwAMAsCAQMCAQEEAwwBNzALAgETAgEBBAMMATcw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