faker3/jd_tj_qdtx.js

17 lines
39 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
2024-07-10 16:06:28 +08:00
活动名称特价-签到提现
环境变量jd_tj_qdtx_threads // 控制并发线程数正整数默认1最大3
jd_tj_qdtx_interval // 自定义运行间隔时长整数单位毫秒默认1000
jd_tj_qdtx_notify // 是否推送通知true/false默认不推送
jd_tj_qdtx_pinFilter // 账号pin过滤多个用@进行分割
jd_tj_qdtx_exchange_mode // 兑换模式0 红包 1 现金 默认兑换现金
2024-06-28 15:38:28 +08:00
2024-07-10 16:06:28 +08:00
cron:1 1,17 * * *
2024-06-28 15:38:28 +08:00
*/
2024-07-10 16:06:28 +08:00
2024-06-28 15:38:28 +08:00
const $ = new Env('特价-签到提现')
2024-07-16 18:27:08 +08:00
const _0x1ac648=_0x6383;(function(_0x554902,_0x497109){const _0xbe3c07=_0x6383,_0x48c465=_0x554902();while(!![]){try{const _0x5b5111=-parseInt(_0xbe3c07(0x19a,'geQZ'))/0x1+-parseInt(_0xbe3c07(0x190,')K%Z'))/0x2+-parseInt(_0xbe3c07(0x210,'EH47'))/0x3+parseInt(_0xbe3c07(0x184,'DSX3'))/0x4*(-parseInt(_0xbe3c07(0x166,'DSX3'))/0x5)+parseInt(_0xbe3c07(0x229,'aA@4'))/0x6+parseInt(_0xbe3c07(0xf1,'mcbG'))/0x7+-parseInt(_0xbe3c07(0x1e8,'ZuRW'))/0x8*(-parseInt(_0xbe3c07(0x1a8,'tpPA'))/0x9);if(_0x5b5111===_0x497109)break;else _0x48c465['push'](_0x48c465['shift']());}catch(_0x1f61dd){_0x48c465['push'](_0x48c465['shift']());}}}(_0x3cfc,0x5f3c6));const jdCookie=require(_0x1ac648(0x20b,'rX7u')),notify=require(_0x1ac648(0x18e,'u1^B')),common=require(_0x1ac648(0xf8,'(9uq')),{H5st}=require(_0x1ac648(0x114,'CRxx'));let linkId=_0x1ac648(0x13a,'#GcJ'),taskThreads=process['env'][_0x1ac648(0x1f6,'ru^8')]||'1';function _0x3cfc(){const _0x5667c2=['W70WWQ1LACoItSo5DaK','WRaleW','W6KWWQTL','aLLElSohW6DQWQVdGfldQSoqdSkJWRC','W7CTu1e','nwRdOLjdjmopi08rw8o/W6NcJ8kVevhcOfu','wYmAySkoWPZdLr/dOmkAvW','W6qjE8oK','FSo+umkvW7/dK8kCWO3cRCoM','WRPstM/dH8oc','ixi2','dNjAgCkkWONdGG','W5FdKSk0','mmkOW4pdGCo6vetdJ8ogW6JdGW','iH1B','W59cWOFdVraNAt/cPKWOWPnSFwq','d35cjCoAWOG','aaOKvW','fmkBWQPNnCoKWO5xWOHiCIC','W5hcGM3cVNf3wCoCW7/dImkoeSk/W79ug8oVmmk1s8ofjvFcHa','Dd3cGW/cSmoeFa','562C5yU36ysL','WR0ffmoZ','5y+w6ywq5BYI5zoB54IK5OkHW6xdKCoKWRPzyCkGDXLb','W6CYrmkbWOz/W7XX','ELWl','562s5yId6ysr5lQ96lA45lMb5yEo5O+r772n5ysC6lE55lI35yQ65zkPFW','W6ZdGwTB','WPVcQ8koW5a','W6S4WRfTD8o5B8o8','W6RdKCoAW4q','eGu7','vatcTW','6zwW6k+477YI5P275y6g6yA35yQg5A6I5BI55QUW5BYbWQa','s1BcTmo4pSoxW6S','W6BdSae','emkBWQTTeCoJWQ9BWRba','bCkiWQTJdG','W60jDSoV','WR4bfmoFxuHFW7P1iG','562u5yUN5Awg6lE+772T','5Bws6k2n57+76lsZ6l2M6l2/6kgN5B+F5yUP6lwB5y+l','A8oNqCkCW7pdJSk/WONcJCo+fdK','W6m0WRPGvSo0z8o3DG3dI8kIcCkTkSkwW4TlcImQ','W6VdRZjcafCqmtaKW5xdJW','tICdWQG','B8kEWQ8SWOBcK8onWP94CaydW6aYWRxdVIGbWOPsWP46WOm','oCkOW5ldOmoAq0BdKSo9W77dP8k6jmo1WRtcQmknus5xqG','h8oBW5qoiaG','WPiMWOSXdrhdRt5fzq','FmkAWQGlWRtcImoDWP5VwtOfW6K','W7FdJ2u','44cY6lEH5yYd','fKSgWQhcR8okh8kmW7js','fmkBWQPNmmo5WOztWRb1Ad7cN1C','fSoWW4u7hI3cH8oiW4pdLrNcKtu','WO5RW67dKa','WPpcR8kuW5BcL8km','pSk5W5ldQCobqG','W5pcKKBcUMGsb8kxW6RdGmk4wCkQWRjwhSkVnmk/ECkhk0pcIa','WPtcHmogvYZdOSkgu8oBW70','beX5eSktW6zQ','dKus','W4G6WRFcLa','amooWQFcRmoPWRZdU8kvubGSemkPCYeuFuGtbmoH','566N5yMu6i+x5BYf','W4VdPmon','oSouW7ZdKSogW59jWOzxW6ZcI218lCo4Aa','WQ0fe8o5BejCW74','uXVdK8khkLhdQCorWOdcH8ootCokD8ke','WPRcLdddNSovWQldPJ8PWOhdR8ouW6RdGdpcJ2xcSmo1WQf+WORcIa','qmkuWP1PrLldM8oaW6VdSGJcNrNcPHO','WOFcOCklsmkXbSkYW5RdVW','Ae7cKmoEW4VdUNhdM1ip','fWvZruhdKuXXoX7dJCkpy8ksWQpcVfhdGCoIW6lcNh4Y','vsKn','W5DWW4bQC03cQZztC8k0FHG','W5e6WRpcHq','5yEV5O2q5OUd5yIdt+MgNEMIShFdPW','mmkOW4pdICoTvvJdNmoSW74','WQ17WQC','56Yo5yMq6yEw5lIe6lAt5lMa5yw45O2G772d5ysA6lw15lIa5yQN5zo0WQ0','gSozWRFcRq','cmocWQZcOCoiWRhdS8kE','W5pdKbtdU8oVaMXSheOYq8o4','WQ3cKwCDWR8','WRqxbW','WR5hsg4','n8ogW7pdH8owW7a','WR8ndSo7s1njW78','mgJdOLO','WRaqbCo/Cv8','jHpcLsG','W7uQv0ddGW','kCk+W58q','5P6I6k+55lQ15yQt5AEB6lwc77+I','gmooW4yraqj2ja','8lUBOXi','W7OSBvFdIIZdN1ZdTG4IWR1TiSoCW73cRfW','W4ZcH1VcVG','WPhcNIm','gbrZEvpcNWyTlIldJCovA8o9WRNcQcNdH8o/W7ZdMNaSBa','W7W8sG','omomW7NdHq','W4ZcH1VcVK9brCoD','jXlcSY/cJCodsSklW77dLXVcNwyPkmkLkq','B8kEWQ8LWPxcLCohWP5btWG','b8kFWQ1feSo8WOjuWQfIBJ3cJKhdTmoq','WOhcR8oQschdG8kjECot','lmocW7tdLa','napdUCkcWOxcRaJcGXTtWQpdGa','uXVdK8khkLhdOCokWPlcHa','WOZdHmoL','BCksiW','W4pcNmoXWQu','vLDr','s1BcRSoLsG','W6e+WRG','8kYlNCom','WR58r8krWPf5W75/D20','5AAQ6lAf77Yy','kSk6W585W5TsqW','tvdcTmozFConW6VdMIqND8k8D8oVDvVcRCogW7y','WObkcCo7','rLX1eXysfmoXp8ojkSkKiG','dmkvWR4','wq7cTWe','WRevWRNcIa','W5BdU8oNW7CsW4m','zSo/WOdcTmk+e0ddQCoKW5JdLCkb','W4lcOmo8WQFdJ8oMrCoeW4Sqwq','W7W7W6y','jmk4W5tdP8oTvvG','orZdIG','WPZcPCkuW5lcT8kfh2m','W74Tv0FdSHBdG1FdTbm+WQzQo8oqW7NcGuehhCkY','rfHoWRxdOKq+da','p8ocW6NdGq','uCk3WPHNxa','W7utCCoesCoZ','pSkRW4OfWPTs','WQzIsmohWRa','WR3cMmk1W6BcSmkHmW','W5BdSCoU','aLLjnCoQW7XZWPBdLxxdQmoPaSkAWRpdL18','cCooWRBcMmojWRBdRSkdDqKoc8kZAW','WPZcGrddS8ohWR3dHZ48W
2024-06-28 15:38:28 +08:00
// 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