forked from enkiger/Rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmtxx.js
294 lines (274 loc) · 7.97 KB
/
mtxx.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
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
/*************************************
项目名称:美图秀秀 解锁SVIP
下载地址:https://t.cn/AiN3YLHl
脚本作者:chxm1023
电报频道:https://t.me/chxm1023
使用声明:⚠️仅供参考,🈲转载与售卖!
**************************************
[rewrite_local]
^https?:\/\/((h5|api)\.xiuxiu|api-sub|api\.posters)\.meitu\.com\/.+\/(vip|user|h\d|center|home) url script-response-body https://raw.githubusercontent.com/chxm1023/Rewrite/main/mtxx.js
[mitm]
hostname = *.xiuxiu.meitu.com, api.posters.meitu.com, api-sub.meitu.com
*************************************/
var chxm1023 = JSON.parse($response.body);
const hysj = '/vip/prompt/query.json';
const hyxx = '/vip/vip_show.json';
const user = '/user/show.json';
const hyzl = '/vip/new_sub_detail.json';
const hymb = '/vip/vip_navigation.json';
const group = '/user/vip_info_by_group.json';
const vip = '/center/user_info.json';
const sjs = '/user/info_by_entrance.json';
const sjshf = '/home/home.json';
const kta = 'https://api.posters.meitu.com/center/user_rights.json';
const ktb = 'https://api.posters.meitu.com/center/user_rights_consume.json';
if ($request.url.indexOf(hysj) != -1){
chxm1023.data = {
"home_btn_prompt" : "立即查看",
"if_transfer" : 0,
"pay_interval" : 3000,
"beautify_prompt" : "",
"home_prompt" : "会员有效期至2099/09/09",
"svip_bubble_text" : "粉钻SVIP:有效期至2099/09/09\n粉钻VIP:有效期至2099/09/99",
"beautify_btn_prompt" : "",
"request_time" : 1666666666666
};
}
if ($request.url.indexOf(hyxx) != -1){
chxm1023.data = {
"id": "666666666666666666",
"id_str": "666666666666666666",
"valid_time": 4092599349,
"uid" : 1666666666,
"sub_type": 3,
"expire_days": -66666,
"screen_name": "",
"avatar_url": "",
"in_valid_time": 4092599349,
"gid": 1234567890,
"s": 1,
"vip_type": 101,
"platform": 2,
"sub_name": "包年",
"renew": 2,
"is_valid_user": 1,
"create_time": 1666666666,
"sub_biz_type": 1,
"is_expire": 0,
"in_valid_time" : 4092599349
};
}
if ($request.url.indexOf(user) != -1){
chxm1023.data.vip_type = 101;
chxm1023.data.vip_icon = "https://xximg1.meitudata.com/6948531747980333892.png";
chxm1023.data.follower_count = 999000;
chxm1023.data.fan_count = 999000;
chxm1023.data.be_like_count = 999000;
}
if ($request.url.indexOf(hyzl) != -1){
delete chxm1023.data.materials;
delete chxm1023.data.prices;
delete chxm1023.data.new_version_rotograms;
chxm1023.data.vip_sign_info = {
"sub_type" : 3,
"renew_status" : 1,
"show_auto_renew" : 1,
"next_withhold_amount" : 16800,
"withhold_currency_symbol" : "¥",
"next_withhold_date" : "2099-09-09",
"pay_channel" : "苹果支付",
"do_pop_up" : false
};
chxm1023.data.vip_power_num = 999999;
chxm1023.data.new_power_num = 999999;
chxm1023.data.welfare_center_num = 999999;
chxm1023.data.exchange_vip = 0;
chxm1023.data.platform = 2;
chxm1023.data.renew = 1;
chxm1023.data.is_new_vipsub = 0;
chxm1023.data.s = 1;
chxm1023.data.expire_days = -66666;
chxm1023.data.sub_type = 3;
chxm1023.data.old_vip_type = 4;
chxm1023.data.valid_time = 4092599349;
chxm1023.data.invalid_time = 4092599349;
chxm1023.data.is_expire = 0;
chxm1023.data.rights_page_vip_btn_title = "立即解锁";
chxm1023.data.rights_page_svip_btn_title = "立即解锁";
chxm1023.data.hbp_vip = {
"sub_type" : 3,
"valid_time" : 4092599349,
"renew" : 1,
"expire_days" : -66666,
"is_expire" : 0,
"in_valid_time" : 4092599349,
"s" : 0
};
chxm1023.data.sub_biz_type = 1;
chxm1023.data.vip_type = 101;
chxm1023.data.xx_vip = {
"sub_type" : 3,
"valid_time" : 4092599349,
"renew" : 1,
"expire_days" : -66666,
"is_expire" : 0,
"in_valid_time" : 4092599349,
"s" : 0
};
}
if ($request.url.indexOf(hymb) != -1){
delete chxm1023.data.rights;
delete chxm1023.data.navigation_card_list;
delete chxm1023.data.config_list;
delete chxm1023.data.pendant;
chxm1023.data.vip_type = 101;
chxm1023.data.display_vip_time = 1;
chxm1023.data.display_vip_type = 2;
chxm1023.data.hbp_vip = {
"id" : "666666666666666666",
"id_str" : "666666666666666666",
"valid_time" : 4092599349,
"uid" : 1666666666,
"sub_type" : 3,
"sub_biz_type" : 1,
"avatar_url" : "",
"is_expire" : 0,
"expire_days" : -66666,
"gid" : 1234567890,
"vip_type" : 101,
"platform" : 2,
"sub_name" : "包年",
"renew" : 2,
"s" : 0,
"is_valid_user" : 1,
"create_time" : 1666666666,
"screen_name" : "",
"in_valid_time" : 4092599349
};
chxm1023.data.xx_vip = {
"id" : "666666666666666666",
"id_str" : "666666666666666666",
"valid_time" : 4092599349,
"uid" : 1666666666,
"sub_type" : 3,
"sub_biz_type" : 1,
"avatar_url" : "",
"is_expire" : 0,
"expire_days" : -66666,
"gid" : 1234567890,
"vip_type" : 101,
"platform" : 2,
"sub_name" : "包年",
"renew" : 2,
"s" : 0,
"is_valid_user" : 1,
"create_time" : 1666666666,
"screen_name" : "",
"in_valid_time" : 4092599349
};
}
if ($request.url.indexOf(group) != -1){
chxm1023.data = {
"active_sub_type" : 2,
"account_type" : 1,
"sub_type_name" : "续期",
"active_sub_order_id" : "666666666666666666",
"trial_period_invalid_time" : "4092599349000",
"current_order_invalid_time" : "4092599349000",
"active_order_id" : "666666666666666666",
"limit_type" : 0,
"active_sub_type_name" : "续期",
"use_vip" : true,
"have_valid_contract" : false,
"derive_type_name" : "普通会员",
"derive_type" : 1,
"in_trial_period" : true,
"is_vip" : true,
"membership" : {
"id" : "7",
"display_name" : "",
"level" : 2,
"level_name" : "高级会员"
},
"active_promotion_status_list" : [
2,
6
],
"sub_type" : 3,
"account_id" : "1666666666",
"invalid_time" : "4092599349000",
"valid_time" : "4092599349000",
"active_product_id" : "0",
"active_promotion_status" : 2,
"show_renew_flag" : false
};
}
if ($request.url.indexOf(vip) != -1){
chxm1023.data.vip_end_time = 4092599349;
chxm1023.data.is_vip = true;
}
if ($request.url.indexOf(sjs) != -1){
chxm1023.data = {
"vip_info" : {
"active_sub_type" : 2,
"account_type" : 1,
"sub_type_name" : "续期",
"active_sub_order_id" : "666666666666666666",
"trial_period_invalid_time" : "4092599349000",
"current_order_invalid_time" : "4092599349000",
"active_order_id" : "666666666666666666",
"limit_type" : 0,
"active_sub_type_name" : "续期",
"use_vip" : true,
"have_valid_contract" : false,
"derive_type_name" : "普通会员",
"derive_type" : 1,
"in_trial_period" : true,
"is_vip" : true,
"membership" : {
"id" : "7",
"display_name" : "",
"level" : 2,
"level_name" : "高级会员"
},
"active_promotion_status_list" : [
2,
6
],
"sub_type" : 3,
"account_id" : "1666666666",
"invalid_time" : "4092599349000",
"valid_time" : "4092599349000",
"active_product_id" : "0",
"active_promotion_status" : 2,
"show_renew_flag" : false
},
"account_type" : 1,
"account_id" : "1666666666",
"rights_info" : [
{
"show_tips" : "抠图剩余张数:9999999 张 >",
"commodity_unit" : "2",
"link_words" : "9999999 张 >",
"commodity_id" : "shejishi.cutout",
"commodity_count" : 9999999
}
]
};
}
if ($request.url.indexOf(sjshf) != -1){
delete chxm1023.data.banner;
}
if ($request.url.indexOf(kta) != -1){
chxm1023.data = {
"cutout" : {
"num_left" : 9999999
}
};
}
if ($request.url.indexOf(ktb) != -1){
chxm1023.data = {
"consume_result" : true
};
}
$done({body : JSON.stringify(chxm1023)});