-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathbdcloud.js
More file actions
167 lines (151 loc) · 4.25 KB
/
bdcloud.js
File metadata and controls
167 lines (151 loc) · 4.25 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*************************************
项目名称:百度网盘,一刻相册 解锁部分功能
下载地址:https://t.cn/AiT82mfg
下载地址:https://t.cn/Ainbj7GV
脚本作者:chxm1023
使用声明:⚠️仅供参考,🈲转载与售卖!
使用说明:非一次性解锁,每次解锁需打开脚本
**************************************
[rewrite_local]
^https?:\/\/pan\.baidu\.com\/(youai\/(user\/.+\/getminfo|membership\/.+\/adswitch)|(rest\/.+\/membership\/user|act\/.+\/(bchannel|welfare)\/list|api\/usercfg)) url script-response-body https://raw.githubusercontent.com/chxm1023/Rewrite/main/bdcloud.js
[mitm]
hostname = pan.baidu.com
*************************************/
var chxm1023 = JSON.parse($response.body);
const yike = '/getminfo';
const ad = '/adswitch';
const wangpan = '/membership/user';
const list = '/bchannel/list';
const hf = '/welfare/list';
const usercfg = '/api/usercfg';
if ($request.url.indexOf(yike) != -1){
chxm1023 = {
"errno": 0,
"request_id": 342581654394297772,
"has_purchased": 1,
"has_buy_1m_auto_first": 0,
"can_buy_1m_auto_first": 0,
"can_buy_1m_auto_first_6": 0,
"has_received_7dfree": 1,
"product_tag": 3,
"sign_status": 1,
"sign_infos": [{
"product_id": "12745849497343294855",
"order_no": "2203060931530010416",
"ctime": 1646537208,
"mtime": "2022-05-06 11:26:48",
"status": 1,
"sign_price": 1000,
"sign_channel": 0
}],
"vip_tags": ["album_vip"],
"product_infos": [{
"product_id": "12745849497343294855",
"start_time": 1646534568,
"end_time": 4092599349,
"buy_time": 1649994533,
"tag": "album_vip",
"order_no": "2203060931530010416"
}],
"vip_infos": [{
"tag": "album_vip",
"start_time": 1646537208,
"end_time": 4092599349
}],
"expire_time": 0
};
}
if ($request.url.indexOf(ad) != -1){
chxm1023.switch = "open";
}
if ($request.url.indexOf(wangpan) != -1){
chxm1023.product_infos = [
{
"product_id" : "5310897792128633390",
"end_time" : 4092600296,
"buy_time" : "1417260485",
"cluster" : "offlinedl",
"start_time" : 1417260485,
"detail_cluster" : "offlinedl",
"product_name" : "gz_telecom_exp"
},
{
"product_name" : "svip2_nd",
"product_description" : "超级会员",
"function_num" : 0,
"start_time" : 1417260485,
"buy_description" : "",
"buy_time" : 1417260485,
"product_id" : "1",
"auto_upgrade_to_svip" : 1,
"end_time" : 4092600296,
"cluster" : "vip",
"detail_cluster" : "svip",
"status" : 1
}
];
chxm1023.guide_data = {
"title" : "超级会员 SVIP",
"content" : "已拥有极速下载+视频倍速特权",
"button" : {
"text" : "会员中心",
"action_url" : "https://pan.baidu.com/wap/vip/user?from=myvip2#svip"
}
};
chxm1023.identity_icon = {
"vip" : "https://internal-amis-res.cdn.bcebos.com/images/2019-8/1566452237582/78b88bf113b7.png",
"common" : "https://internal-amis-res.cdn.bcebos.com/images/2019-8/1566452539056/bf72cf66fae1.png",
"svip" : "https://internal-amis-res.cdn.bcebos.com/images/2019-8/1566452115696/38c1d743bfe9.png",
"contentvip" : ""
};
chxm1023.error_code = 1;
delete chxm1023.tips_data_list;
delete chxm1023.status_data_arr;
delete chxm1023.sub_card_list;
}
if ($request.url.indexOf(list) != -1){
chxm1023.data = [
{
"sub_title" : "",
"id" : 856,
"bg_icon" : "",
"button_text" : "",
"web_url" : "",
"type" : 3,
"name" : "已解锁SVIP,未完整解锁"
},
{
"sub_title" : "",
"id" : 460,
"bg_icon" : "",
"button_text" : "",
"web_url" : "",
"type" : 3,
"name" : "已拥有极速下载+视频倍速特权"
}
];
}
if ($request.url.indexOf(hf) != -1){
delete chxm1023.data;
}
if ($request.url.indexOf(usercfg) != -1){
chxm1023.user_new_define_cards = [
{
"card_id" : "1",
"card_type" : "4",
"card_area_name" : "首页笔记-卡片"
},
{
"is_manager" : 1,
"card_area_name" : "最近",
"card_id" : "1",
"card_type" : "7"
},
{
"card_id" : "1",
"card_type" : "13",
"card_area_name" : "卡片管理-卡片"
}
];
}
$done({body : JSON.stringify(chxm1023)});