Browse Source

重写提现

main
haptear 3 years ago
parent
commit
9c060a6faa
  1. 28
      zqjson/zq_rewrite.js
  2. 6
      zqjson/zqv2p.json

28
zqjson/zq_rewrite.js

@ -31,6 +31,34 @@ const logDebug = 0
async function getRewrite () { async function getRewrite () {
await rewriteKKZ(); await rewriteKKZ();
await rewriteWZ(); await rewriteWZ();
await rewriteDraw();
}
async function rewriteDraw () {
//文章body
if ($request.url.indexOf('v5/wechat/withdraw2.json') = -1) {
return;
}
let zqwithdraws = ""
let zqwithdraw = ($.isNode() ? process.env.zqwzbody : $.getdata('zqwithdraw')) || '';
let bodyVal = $request.body
console.log(bodyVal)
if (zqwithdraw) {
if (zqwithdraw.indexOf(bodyVal) > -1) {
$.log("此提现请求已存在,本次跳过")
} else if (zqwithdraw.indexOf(bodyVal) == -1) {
zqwithdraws = zqwithdraw + "\n" + bodyVal;
$.setdata(zqwithdraws, 'zqwithdraw');
$.log(`${$.name}获取提现: 成功, zqwithdraws: ${bodyVal}`);
bodys = zqwithdraws.split("\n")
$.msg($.name, "获取第" + bodys.length + "个提现请求: 成功🎉", ``)
}
} else {
$.setdata($request.body, 'zqwithdraw');
$.log(`${$.name}获取提现: 成功, zqwithdraws: ${bodyVal}`);
$.msg($.name, `获取第一个提现请求: 成功🎉`, ``)
}
} }
async function rewriteWZ () { async function rewriteWZ () {

6
zqjson/zqv2p.json

@ -16,6 +16,12 @@
"stage": "req", "stage": "req",
"target": "http://47.106.101.70:7000/haptear/zqjson/zq_rewrite.js", "target": "http://47.106.101.70:7000/haptear/zqjson/zq_rewrite.js",
"enable": true "enable": true
},
{
"match": "https://kandian.wkandian.com/v5/wechat/withdraw2.json",
"stage": "req",
"target": "http://47.106.101.70:7000/haptear/zqjson/zq_rewrite.js",
"enable": true
} }
] ]
} }
Loading…
Cancel
Save