KR/jd_pdd2_draw.js

41 lines
85 KiB
JavaScript
Raw Normal View History

2023-11-03 16:48:08 +08:00
/*
PDD每日红包抽奖提现
入口京东APP京东秒杀种豆得豆-大额红包
链接https://pro.m.jd.com/mall/active/3WijvBWPdCirCBr72TzkyiPhgdxJ/index.html
注意抽奖尽量使用本地家宽否则大概率0.01和垃圾卷
轮询提现变量JD_PDD2_TXNUM //轮询提现页数
提现间隔时间JD_PDD2_TXWAIT //提现兑换间隔,默认 3 秒
提现变量JD_PDD2_TXCASH //是否提现默认不提现true/false
重试变量
JD_PDD2_TXMAX_RETRY // 已存在状态/待发放,提现中,等最大重试次数 默认 5 次
JD_PDD2_DRAW_RETRY // 抽奖 提示未中奖等最大重试次数 默认 20 次
兑换红包变量
export JD_PDD2_Exchange="true" // 上限后兑换红包,默认关闭
注意轮询页数也大越容易403请谨慎填写
代理变量
JD_PDD_PROXY_OPEN // 代理启用变量默认不开启true/false
JD_PDD_PROXY_TUNNRL // 代理池代理地址变量,默认不开启,仅支持代理池模式(auto-proxy-pool)格式为http://ip:port
JD_PDD_PROXY_URL // API代理地址变量默认不开启仅支持 数据格式:txt;提取数量:每次一个格式为http://api.xxx.xxx
JD_PDD_NO_PROXY // 禁止走代理,默认 127.0.0.1,*.baidu.com 需要自行修改
cron:1 1 1 1 *
============Quantumultx===============
[task_local]
#PDD每日红包抽奖提现
1 1 1 1 * JD_PDD2_draw.js, tag=PDD每日红包抽奖提现, enabled=true
*/
const $ = new Env('PDD每日红包抽奖提现');
var version_='jsjiami.com.v7';function Iii11l(){const i1i1i1=(function(){return[...[version_,'WUbEjsjJUiQarmCiHT.ScYoyxmtEM.YnhvWX7HrY==','uHeYs8kgW4G','WRS3W6KDBq','W5ancXvnWQNcJbm','iZJdNq','W7fXWONdJ8kUW4S','WPOlsqzr','gSo2ia','W4RdQNCK','W57dI8kWWPRdQa','W5RcG8kM','W65pW5xcH8o5xgnFyeVcNuq','qIFdHZ/dSG','iGrpWP7cSCow','WQG4W6iylCoEWRRdRSo1W4e','a8oElGS','W6WKqq5pWP3dQq','WQ/dPbRdMua','4O+677MSW4O','W5VdQsDkW4i','f0iB','r8oMF27dSq','bq3dMCkNzq','WQRdV8oRW7u','W6ddHfWvq2T6WQy','A8oYWQ7dSmkX','WRVdMJ8','W4/MJlBLJzpLK6/LUANMLPZMJ5hOP6RMN6RLPyhOTBBcQmoe','WQ8YW6a','WOruW5hcRhW','WR3dPmofW7GE','mSoHdtpcRCk3o8k4kSk+wYGihmo1qZ82fSkEhSoOWOOdpeJcHmo4WOldJCo9WQms','W5vXgJ0zp8kfrbZcGSkTWO7cSW','WO3dPr4oWOK','hmoZwHvk','z8o8WORdR8k5WOKD','emomlCoNW4S','E0y5nCoW','ESoRWPddPSk9WQanbW','gtldQZpdVW','qeSmW4BdSCkiyxtcTKe9ANNdM8o3cSoRW7fbW4VdGg/cU0pdMmoWtLVcICo6cuxcMSk0W4jUiCoJW7lcRCojACk5qrL+WRFdU3ilWQzWCG','WPe7WQ/dS8koihPmxM/cTem','o8kCx8omWQpcHx3cKuS','WP/IJz7VUBW65B+C5yQF6kYL572V5lQ76l+n6kcL5O2u54Y5nq','dKTPimo7','y3yRimosWRO','WQyLW6il','W6O8kZDRWPZcSdHaWQ4','DCobWOpcImov','umoHCfL/','s10H','W7vUW5VcKCk/','r8kpWP7cMK4','FSoLDLPNpCkbaCk6xCk6W7u','tSkWWPRcJ3/cTSkd','BmoVWOBcVSoL','4O+D77I9zUw3MUI/IEwlGUIVUEwSGoMeHEIVLUwbRE+/QEMcR+wgUoAiK+IIJSoH','p8ogbrVcHW','m8kPECkvBe9AwmkbW5yYWRNcTeTDWRySgG0','5Pw05zci5BIL5PEy5OYw','DSo9a8oUpaqrp8kuWQdcRCoo','h2ldIIZdQctcJSo3acigW68fjSoTm3/cLKRcJColW5SZ','jW7dHYxdIa','W7pNJlVPH5i','WPldMqSUWOu','W5WhrSkCWOi','F8oPCef6iSkIpSkOqSkMW795waaBBW','WOTwW4e2W4G','W5FdQmkLdSoP','WPVcGEI8MUMDTmkM','rbnJW4JcG1xdSSoGbW','W6GUusm','CWldJZFdPa','WOr9W4qIW6q','WRenWONdGCoJtefOF0BcM2pcRMC9f8o4','gaHSWP/cNq','kmkWF8kmBW','W7CbD8kR','cc7dVcVdNa','lWHx','WRhdJqm5WRD+','DCoNDNtdTW','W5NdGWD0W5S','nc/dGmk0y8osmfC','jrNdTstdMG','W5eigq','5lIn5O6Z542A','D8orWPFcISoM','WP3ORPdMSlZPHjxNVQpLJ7xMLypPLjJOR7RVVRhORONOG6JNSPBLV4ZLJihOGj7OVzJOOPdLJANPP6/VVOLZWOtcICoJqmknmSkoW5THW6JdGvxcKW','WOpdVmox','WPfqW6yKW6yT','W5GCpmkrWODy','W6pdSmkiWRFdMa','W54Yudq0WO/dSmkm','jdG6W4bG','oYVdOrtdLq','kJRdKaBdG8khfSoHE0ryD2e/vmo6qJryqdq','WPmtW4WtfIbVW4GDWOSsW7BcHmkOWPldSmolCmoaWQZdUmorgaWNdripW6VdLCkkWPZdSSkpW77cJmkwWONcGmoGuCoZWPSxWRGZDCkDW5H6pCo8WQq','uSkWWRxcN1q','W4SVf8kDW5zN','WPpIJ4tVU64E5B2O5yMa6k+8576l5lI96l296kgZ5OYl54YzWQq','baFdTstdTW','WRaPW7ubBSoyWR/dOCo6','hSo2W5a','W5SfCqmuWOO','W7y2WRddUoISUoAWRUwKLoI0Qo+8LEIVNEAGUUAFSUE+MUI2PoMhKoIUOa','W6xdHqfPW6O','W4iycSkjWRC','n8oiwCkdWQ4','ySo2WO3dRmkQWOeaeW','dqapW6nmka','W7WmFCk7WPu','WO7cTJ1L','aWfdWORcQG','wXpcMvCn','WQtdPbrVWOO','FZnfW7hcSMldICojjSol','WRTMW70vW58','W5xcJCk1wCoG','cmojqqjkjZb7W7nDW5GQ','W6KrkSksW6rmcqBdNmkvWPz3','gCoSm8osW7C0WR8','W7pcOmof','BhOIhSoaWROL','u10jsH0','nSk4BmklDfnd','DCoMDubyka','WROwW5CFvW','vbv0W4dcMvC','WPPvW5KVW5K','oGDgWO7cKSoqiq','qXhcH8oLna','pCoNsrjJ','hEAnOowmMUwqOEw6JUAwTEAoNUIMVUACU+wLSEI0P8otW5S','W6HkW6RcGCkz','dZZdHG7dMW','W57dMwikAW','4OYk77I2WQq','vYtdGc3dOZu','4P+FooAFMEIbV+AUVUEJGUwMJoEtO8oP','W7mjy8kzWPO','ldldNCk+DmoZpum','WR3dLtRdUwXz','W6tdKSkVWRxdOW','5BAK5OQZ5yQo6i2d5B2+ha','WR4vWO7dHmkIhW','WP/dOCozwmkyWQldIMq','gmo3W4jm','W4NdSwO1pqrgWPRcSelcSCorW7pcHGNcPGy','WR7dRmo2W64uWPFdOLrR','5yMt5PY85PEQ6zAn776Y','WPzJW4/cOhC','WOntW73cH2a','WRStW74GtW','W7zGWPBdOq','4PIoFEs6HUEtLUAZHEwpMoMgME+9NCo+WQJcQeZdSCkSW67dOXpdICkeWQqaWQvDomk1WP7cQSo5DtFcRXyxyCkoW7zJWOP4s8k1bgpdTCkEWRddMmokW7BdIG','WQvlW43cRKS','4O+l77McWOZLTQVOVlJLIBFORytLRitPHQlORPNLGjxVVPdPGAdLHRlMI67OOluA','W4e0DIaB','W5P6WRfzCa','iWHfWO7cPa','W4Obkq/cGG','W5ZdNSkfWPpdVW','BCo2aSoMoGufm8keWRZcTSofj13dQe59dx1X','ySkP5OQJ5AwG6ywV6kYmW4DO','mYjcWQpcUq','B8oSWQ3cVCoD','W6XvWRD7Ea','WR/dHbVdTfLzWQ7cLWShW6DBDG/cR8krhNJdKCogW4m','WQrQW5hcRNu','wCkQWPFcIq','4O6X77MfWRpMNy3KUP3LPRLHW5m','crpdU8kzDq','WQFdUGyYWQW','C8oxWQ7cUCor','W4hdG8kLWR/dNa','W4pdTmke','uHvJW6ZcNLu','WPfAW7dcR1mUzmowCmo3WOjUW4T5nmoKaNim','xGLNW4JcMvFdNCoVdCoHau4yW6BcN0BdQMDIWQe','5yEZ5OYk57UD5y2I5Asf6lEPW5G','W5fZW4dcQ8kF','WRm8W7ujBCom','WPJdOmowzmkR','W6CUuG','yCoGeCoS','W6PzW6tcVCkrCrbdFa4','WRpdMGu8W7fQbG','xupPOP8','WQewWONdHq','WO4tW5u/CW','kYOAW5ny','4O2U77MHmW','r8ouD2ZdKa','WOqxW5eTDa','WQxdP1y5','W
// prettier-ignore
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d