Script/Surge/JS/BaiduCloud.js

46 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
Baidu netdisc unlocks online video play speed.
Surge4.0:
http-response https:\/\/pan\.baidu\.com\/rest\/2\.0\/membership\/user requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/BaiduCloud.js
QX1.0.0:
https:\/\/pan\.baidu\.com\/rest\/2\.0\/membership\/user url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/BaiduCloud.js
MITM = pan.baidu.com
*/
let obj = JSON.parse($response.body);
obj = {
 "product_infos": [{
   "product_id": "5310897792128633390",
   "start_time": 1417260485,
   "end_time": 2147483648,
   "buy_time": "1417260485",
   "cluster": "offlinedl",
   "detail_cluster": "offlinedl",
   "product_name": "gz_telecom_exp"
}, {
   "product_name": "svip2_nd",
   "product_description": "超级会员",
   "function_num": 0,
   "start_time": 1553702399,
   "buy_description": "",
   "buy_time": 0,
   "product_id": "1",
   "auto_upgrade_to_svip": 0,
   "end_time": 1672502399,
   "cluster": "vip",
   "detail_cluster": "svip",
   "status": 0
}],
 "currenttime": 1573473597,
 "reminder": {
   "reminderWithContent": [],
   "advertiseContent": []
},
 "request_id": 7501873289383874371
};
$done({body: JSON.stringify(obj)});
//Key data from thor filter