From 9c060a6faa81cb69f64ac4a847e7febb7f173a38 Mon Sep 17 00:00:00 2001 From: haptear Date: Tue, 11 Jan 2022 19:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99=E6=8F=90=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zqjson/zq_rewrite.js | 28 ++++++++++++++++++++++++++++ zqjson/zqv2p.json | 6 ++++++ 2 files changed, 34 insertions(+) diff --git a/zqjson/zq_rewrite.js b/zqjson/zq_rewrite.js index 3d5ad15..c03033b 100644 --- a/zqjson/zq_rewrite.js +++ b/zqjson/zq_rewrite.js @@ -31,6 +31,34 @@ const logDebug = 0 async function getRewrite () { await rewriteKKZ(); 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 () { diff --git a/zqjson/zqv2p.json b/zqjson/zqv2p.json index 9d4638e..cf6a0c3 100644 --- a/zqjson/zqv2p.json +++ b/zqjson/zqv2p.json @@ -16,6 +16,12 @@ "stage": "req", "target": "http://47.106.101.70:7000/haptear/zqjson/zq_rewrite.js", "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 } ] } \ No newline at end of file