代码拉取完成,页面将自动刷新
同步操作将从 hkxiaoyao/nxwgzs-faker3 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
let common = require("./function/common");
let $ = new common.env('京东验证码获取');
let validator = require("./function/jdValidate");
let fs = require("fs");
let min = 2,
help = $.config[$.filename(__filename)] || Math.min(min, $.config.JdMain) || min;
$.setOptions({
headers: {
'content-type': 'application/json',
'user-agent': 'jdapp;iPhone;9.4.6;14.2;965af808880443e4c1306a54afdd5d5ae771de46;network/wifi;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone8,4;addressid/;supportBestPay/0;appBuild/167618;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1',
'referer': 'https://happy.m.jd.com/babelDiy/Zeus/3ugedFa7yA6NhxLN5gw2L3PF9sQC/index.html?asid=287215626&un_area=12_904_905_57901&lng=117.612969135975&lat=23.94014745198865',
}
});
$.readme = `
58 7,15,23 * * * task ${$.runfile}
export ${$.runfile}_limit=5 #限制跑验证码账户个数
export JDJR_SERVER=ip #如获取不到验证码,本地先获取iv.jd.com的ip,再自行添加环境变量
`
eval(common.eval.mainEval($));
async function prepare() {
$.thread = 1;
$.sleep *= 8;
await fs.writeFile('./jdvalidate.txt', '', (error) => {
if (error) return console.log("初始化失败" + error.message);
console.log("初始化成功");
})
}
async function main(id) {
let code = new validator.JDJRValidator;
for (let i = 0; i < 2; i++) {
validate = ''
try {
let veri = await code.run();
if (veri.validate) {
validate = veri.validate;
}
} catch (e) {}
// $.code.push(validate)
if (validate) {
fs.appendFile('./jdvalidate.txt', validate + "\n", (error) => {
if (error) return console.log("追加文件失败" + error.message);
console.log("追加成功");
})
}
console.log("验证码", validate)
}
try {} catch (e) {}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。