forked from ihaoljy/Rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Stresswatch.js
52 lines (32 loc) · 1.51 KB
/
Stresswatch.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
/*
Name:StressWatch
download:https://t.cn/A60aLBxu
To:@ios151 特别感谢@RealGuizhong付费提供数据
Disclaimers:Study, not spread
[rewrite_local]
^https?:\/\/api\.revenuecat\.com\/v1\/(subscribers\/[^\/]+$|receipts$) url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/Stresswatch.js
[MITM]
hostname = api.revenuecat.com
*/
const lovebaby = {};
const lovelovebabyforevey = JSON.parse(typeof $response != "undefined" && $response.body || null);
if (typeof $response == "undefined") {
delete $request.headers["x-revenuecat-etag"];
delete $request.headers["X-RevenueCat-ETag"];
lovebaby.headers = $request.headers;
} else if (lovelovebabyforevey && lovelovebabyforevey.subscriber) {
lovelovebabyforevey.subscriber.subscriptions = lovelovebabyforevey.subscriber.subscriptions || {};
lovelovebabyforevey.subscriber.entitlements = lovelovebabyforevey.subscriber.entitlements || {};
const data = {
"expires_date": "3021-03-14T08:57:58Z",
"original_purchase_date": "2023-07-27T08:57:58Z",
"purchase_date": "2023-07-27T08:57:58Z",
"ownership_type": "PURCHASED",
"store": "app_store"
};
lovelovebabyforevey.subscriber.subscriptions["stress_membership_monthly"] = data;
lovelovebabyforevey.subscriber.entitlements["StressWatch Pro"] = JSON.parse(JSON.stringify(data));
lovelovebabyforevey.subscriber.entitlements["StressWatch Pro"].product_identifier = "stress_membership_monthly";
lovebaby.body = JSON.stringify(lovelovebabyforevey);
}
$done(lovebaby);