forked from adsproo/txnews
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamjvip.js
More file actions
25 lines (22 loc) · 699 Bytes
/
amjvip.js
File metadata and controls
25 lines (22 loc) · 699 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
/* ^https?:\/\/mjapp\.whetyy\.com\/index\.php\/app\/\w+\/(user|vod)\/ url script-response-body amjvip.js
*/
var body = $response.body;
var url = $request.url;
const path1 = "/index.php/app/ios/user/index";
const path2 = "/index.php/app/ios/vod/show";
if (url.indexOf(path1) != -1){
let obj = JSON.parse(body);
obj.data.user["viptime"] = "2066-01-01 08:00:00";
obj.data.user["cion"] = "66666";
obj.data.user.name = "123456789"
obj.data.user["vip"] = "1";
body = JSON.stringify(obj);
}
if (url.indexOf(path2) != -1){
let obj = JSON.parse(body);
obj.data["looktime"] = -1;
obj.data["vip"] = "4";
obj.data.user.name = "123456789";
body = JSON.stringify(obj);
}
$done({body});