-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathNoto_biji.js
32 lines (29 loc) · 945 Bytes
/
Noto_biji.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
/*
Quantumult X 脚本:
[rewrite_local]
# Fantastical Unlock Pro (by LTribe)
^https?:\/\/api\.revenuecat\.com\/v1\/(subscribers*|receipts) url script-response-body Noto_biji.js
[mitm]
hostname = api.revenuecat.com,
*/
let obj = JSON.parse($response.body);
obj.subscriber.entitlements = {
"pro": {
"expires_date": "2100-01-01T01:01:01Z",
"product_identifier": "com.lkzhao.editor.pro.ios.yearly",
"purchase_date": "2020-01-01T01:01:01Z"
}
};
obj.subscriber.subscriptions = {
"com.lkzhao.editor.pro.ios.yearly": {
"billing_issues_detected_at": null,
"expires_date": "2100-01-01T01:01:01Z",
"is_sandbox": false,
"original_purchase_date": "2020-01-01T01:01:01Z",
"period_type": "trial",
"purchase_date": "2020-01-01T01:01:01Z",
"store": "app_store",
"unsubscribe_detected_at": null
}
};
$done({body: JSON.stringify(obj)});