|
|
@@ -10,6 +10,7 @@
|
|
|
[rewrite_local]
|
|
|
|
|
|
^http[s]?:\/\/mars.inout.top\/user\/get_user_info url script-response-body https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/others/dssy.js
|
|
|
+^http[s]?:\/\/mars.inout.top\/media\/editor\/inpaint url script-response-body https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/others/dssy.js
|
|
|
|
|
|
[mitm]
|
|
|
|
|
|
@@ -19,14 +20,23 @@ hostname = mars.inout.top
|
|
|
try {
|
|
|
const url = $request.url;
|
|
|
const path = $request.path;
|
|
|
- console.log(`请求path=${path}#${$request.method}`);
|
|
|
+ // console.log(`请求path=${path}#${$request.method}`);
|
|
|
let data = JSON.parse(typeof $response != "undefined" && $response.body || null);
|
|
|
- if(data && data.data){
|
|
|
- data.data['nickname'] = 'VIP已解锁';
|
|
|
- data.data['vip_expire_time'] = 4076744128000;
|
|
|
- data.data['auto_subscribe_or_permanent_vip'] = true;
|
|
|
- data.data['is_lifetime_membership'] = true;
|
|
|
- $done({ body: JSON.stringify(data) });
|
|
|
+ switch (path) {
|
|
|
+ case '/user/get_user_info':
|
|
|
+ if(data && data.data){
|
|
|
+ data.data['nickname'] = 'VIP已解锁';
|
|
|
+ data.data['vip_expire_time'] = 4076744128000;
|
|
|
+ data.data['auto_subscribe_or_permanent_vip'] = true;
|
|
|
+ data.data['is_lifetime_membership'] = true;
|
|
|
+ $done({ body: JSON.stringify(data) });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case '/media/editor/inpaint':
|
|
|
+ data['code'] = 200;
|
|
|
+ data['succ'] = true;
|
|
|
+ $done({ body: JSON.stringify(data) });
|
|
|
+ break;
|
|
|
}
|
|
|
} catch (err) {
|
|
|
$done();
|