forked from ihaoljy/Rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lungy.js
43 lines (31 loc) · 1.03 KB
/
Lungy.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
/*
Lungy:https://apps.apple.com/app/id1545223887
[rewrite_local]
^https?:\/\/api\.revenuecat\.com\/v1\/(subscribers\/[^\/]+$|receipts$) url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/Lungy.js
[MITM]
hostname = api.revenuecat.com
*/
var lovebaby = JSON.parse($response.body);
if (lovebaby && lovebaby.subscriber) {
// 更新订阅信息
lovebaby.subscriber.entitlements = {
"Deluxe": {
"expires_date": "6666-06-06T06:06:06Z",
"product_identifier": "lungy_1999_lifetime",
"purchase_date": "2023-02-23T02:33:33Z"
}
};
// 更新原始购买日期
lovebaby.subscriber.original_purchase_date = "2023-02-23T03:33:33Z";
// 更新订阅
lovebaby.subscriber.subscriptions = {
"lungy_1999_lifetime": {
"expires_date": "6666-06-06T06:06:06Z",
"original_purchase_date": "2023-02-23T02:33:33Z",
"purchase_date": "2023-02-23T02:33:33Z",
"ownership_type": "PURCHASED",
"store": "app_store"
}
};
}
$done({ body: JSON.stringify(lovebaby) });