forked from ihaoljy/Rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Persona.js
61 lines (50 loc) · 1.65 KB
/
Persona.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
/*
Persona 1.8.24
[rewrite_local]
https://api.revenuecat.com/v1/(receipts|subscribers)/* url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/Persona.js
[mitm]
hostname = api.revenuecat.com
*/
var objc = JSON.parse($response.body);
objc = {
"request_date_ms" : 1692277501204,
"request_date" : "2023-08-17T13:05:01Z",
"subscriber" : {
"last_seen" : "2023-08-17T13:04:43Z",
"first_seen" : "2023-08-17T13:04:43Z",
"original_application_version" : "201",
"other_purchases" : {
},
"management_url" : "https://apps.apple.com/account/subscriptions",
"subscriptions" : {
"httpbot_1499_1y_1w0" : {
"store_transaction_id" : "310001526027197",
"expires_date" : "2999-07-24T13:04:56Z",
"is_sandbox" : false,
"refunded_at" : null,
"unsubscribe_detected_at" : null,
"auto_resume_date" : null,
"grace_period_expires_date" : null,
"period_type" : "trial",
"purchase_date" : "2023-08-17T13:04:56Z",
"billing_issues_detected_at" : null,
"ownership_type" : "PURCHASED",
"store" : "app_store",
"original_purchase_date" : "2023-08-17T13:04:57Z"
}
},
"entitlements" : {
"pro" : {
"expires_date" : "2999-07-24T13:04:56Z",
"purchase_date" : "2023-08-17T13:04:56Z",
"product_identifier" : "ios151_1499_1y_1w0",
"grace_period_expires_date" : null
}
},
"original_purchase_date" : "2023-06-27T12:15:30Z",
"original_app_user_id" : "$RCAnonymousID:ded6a7de98824745b76e2d354e64ea4f",
"non_subscriptions" : {
}
}
}
$done({body : JSON.stringify(objc)});