|
@ -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 () { |
|
|