forked from sngxpro/AutoSyncScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhnsyhb.js
More file actions
38 lines (23 loc) · 794 Bytes
/
hnsyhb.js
File metadata and controls
38 lines (23 loc) · 794 Bytes
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
/*
洪恩双语绘本 unlock Vip by 军哥哥
app 下载地址:https://t.cn/AiCEguqn
电报频道:https://t.me/ThorHCC
电报群组:https://t.me/f4thorHCC
QQ资源群:189519867
QQ吹牛群:316864309
QX:
[rewrite_local]👇
https:\/\/bookapi\.ihuman\.com\/(v1\/get\_user\_info|v1\/get\_purchase\_list) url script-response-body hnsyhb.js
MITM = bookapi.ihuman.com
*/
const path1 = "/v1/get_purchase_list";
const path2 = "/v1/get_user_info";
let key = {"expire_time":7955110875,"vip_type":1,"last_product_id":"com.ihuman.book.sub.vip1y"};
let obj = JSON.parse($response.body);
if ($request.url.indexOf(path1) != -1){
obj.result["vip_status"] = key;
}
if ($request.url.indexOf(path2) != -1){
obj.result.userinfo["vip_status"] = key;
}
$done({body: JSON.stringify(obj)});