forked from ihaoljy/Rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PureLibro.js
70 lines (56 loc) · 1.92 KB
/
PureLibro.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
/******************************
脚本名称: PureLibro
下载地址:商店
脚本作者:ios151
更新时间:2023年9月27日 22:05
使用声明:⚠️此脚本仅供学习与交流,请勿转载与贩卖!⚠️⚠️⚠️
***************************
[rewrite_local]
https://api.revenuecat.com/v1/(receipts|subscribers)/* url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/PureLibro.js
[mitm]
hostname = api.revenuecat.com
*******************************/
var objc = JSON.parse($response.body);
objc =
{
"request_date_ms" : 1695823444784,
"request_date" : "2023-09-27T14:04:04Z",
"subscriber" : {
"last_seen" : "2023-09-27T13:53:14Z",
"first_seen" : "2023-09-27T13:53:14Z",
"original_application_version" : "187",
"other_purchases" : {
},
"management_url" : "https://apps.apple.com/account/subscriptions",
"subscriptions" : {
"reader.lifetime.pro" : {
"store_transaction_id" : "190001736542492",
"expires_date" : "2099-10-27T14:03:52Z",
"is_sandbox" : false,
"refunded_at" : null,
"unsubscribe_detected_at" : null,
"auto_resume_date" : null,
"grace_period_expires_date" : null,
"period_type" : "normal",
"purchase_date" : "2023-09-27T14:03:52Z",
"billing_issues_detected_at" : null,
"ownership_type" : "PURCHASED",
"store" : "app_store",
"original_purchase_date" : "2023-09-27T14:03:55Z"
}
},
"entitlements" : {
"pro" : {
"expires_date" : "2099-10-27T14:03:52Z",
"purchase_date" : "2023-09-27T14:03:52Z",
"product_identifier" : "reader.lifetime.pro",
"grace_period_expires_date" : null
}
},
"original_purchase_date" : "2023-09-27T13:52:21Z",
"original_app_user_id" : "$RCAnonymousID:e2b381c2f7204bf69899c1bc1318bb90",
"non_subscriptions" : {
}
}
}
$done({body : JSON.stringify(objc)});