-
Notifications
You must be signed in to change notification settings - Fork 180
/
Copy pathDSY.js
53 lines (40 loc) · 1.49 KB
/
DSY.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
/******************************
脚本功能:倒数鸭——解锁订阅
下载地址:https://is.gd/rETAhp
软件版本:1.1.5
脚本作者:彭于晏💞
更新时间:2023-9-11
问题反馈:QQ+89996462
QQ会员群:779392027💞
TG反馈群:https://t.me/plus8889
TG频道群:https://t.me/py996
使用声明:此脚本仅供学习与交流,请勿转载与贩卖!⚠️⚠️⚠️
*******************************
[rewrite_local]
https://api.revenuecat.com/v1/(receipts|subscribers)/* url script-response-body https://raw.githubusercontent.com/89996462/Quantumult-X/main/ycdz/DSY.js
[mitm]
hostname = api.revenuecat.com
*******************************/
const py996 = {};
const py997 = JSON.parse(typeof $response != "undefined" && $response.body || null);
const name = "premium";
const appid = "Lifetime";
if (typeof $response == "undefined") {
delete $request.headers["x-revenuecat-etag"];
delete $request.headers["X-RevenueCat-ETag"];
py996.headers = $request.headers;
} else if (py997 && py997.subscriber) {
data = {
"expires_date": "9999-09-09T09:09:09Z",
"original_purchase_date": "2023-02-23T02:33:33Z",
"purchase_date": "2023-02-23T02:33:33Z",
"ownership_type": "PURCHASED",
"store": "app_store"
};
py997.subscriber.subscriptions[(appid)] = data
py997.subscriber.entitlements[(name)] = JSON.parse(JSON.stringify(data));
py997.subscriber.entitlements[(name)].product_identifier = (appid);
py996.body = JSON.stringify(py997);
}
$done(py996);