mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-20 13:43:58 +08:00
Initial commit: new history
This commit is contained in:
1
Scripts/template/reject-dict.json
Normal file
1
Scripts/template/reject-dict.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
9
Scripts/template/req_replace_body.js
Normal file
9
Scripts/template/req_replace_body.js
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* author:fmz200
|
||||
* date:2023-10-09 22:55:00
|
||||
* function:部分APP收集用户信息,将上传的内容换成无效内容
|
||||
*/
|
||||
// oops, nothing here and fuck you.
|
||||
// 4cb5ca2f450cad350d0a03fbc9231e6f
|
||||
let body = {content: "oops, nothing here and fuck you. Collecting user privacy is suspected of being illegal."};
|
||||
$done({body:JSON.stringify(body)});
|
||||
14
Scripts/template/req_replace_url_headers.js
Normal file
14
Scripts/template/req_replace_url_headers.js
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @author fmz200
|
||||
* @date 2024-01-22 21:03:00
|
||||
* @function 部分APP收集用户信息,将上传的URL和body内容换成无效内容
|
||||
*/
|
||||
let req_path = $request.path;
|
||||
|
||||
if (req_path && req_path.includes("?")) {
|
||||
req_path = req_path.substring(0, req_path.index("?"));
|
||||
}
|
||||
|
||||
// 还可以修改headers
|
||||
|
||||
$done({path: req_path});
|
||||
7
Scripts/template/rsp-failure-01.json
Normal file
7
Scripts/template/rsp-failure-01.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"code": 1,
|
||||
"success": false,
|
||||
"message": "失败",
|
||||
"data": {},
|
||||
"_content": "存储一些公共的响应内容,对于不适用reject-dict的规则,可以使用这些JSON"
|
||||
}
|
||||
8
Scripts/template/rsp-success-01.json
Normal file
8
Scripts/template/rsp-success-01.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"code": 0,
|
||||
"success": true,
|
||||
"status": "SUCCESS",
|
||||
"msg": "成功",
|
||||
"data": {},
|
||||
"_content": "存储一些公共的响应内容,对于不适用reject-dict的规则,可以使用这些JSON"
|
||||
}
|
||||
Reference in New Issue
Block a user