jdpro/jd_tjqd_new.js

7 lines
162 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
特价版签到提现
45 5 * * * jd_tjqd_new.js
*/
const $ = new Env('特价版签到提现新');
const bdy_0x422062=bdy_0x5edd;(function(_0x1dee49,_0x4848bb){const bdy_0x3384d3={_0x2fb6f:'0x13e',_0x95ce8b:'Z0iJ',_0x1a0a2d:'0x163',_0x27c40a:'nQur',_0x4f5a1d:'0x2a4',_0x413bc8:'X#hJ',_0x1f1702:'0x27d',_0x40e4a9:'^VaD',_0x37dc26:'0x180',_0x533dc0:'*fo3',_0x32e3a7:'0x272',_0x57477e:'*!w%',_0x2edcf4:'0x32b',_0x54da07:'&a^S',_0x4d30b1:'0x26f',_0x461928:'O$la',_0x1a562b:'0x3e9',_0x1eb30e:'jPjN'},_0x4983ec=bdy_0x5edd,_0xd29dc1=_0x1dee49();while(!![]){try{const _0x198a55=parseInt(_0x4983ec(bdy_0x3384d3._0x2fb6f,bdy_0x3384d3._0x95ce8b))/(0x4*-0x602+0x9ef*0x3+-0x9*0xa4)*(parseInt(_0x4983ec(bdy_0x3384d3._0x1a0a2d,bdy_0x3384d3._0x27c40a))/(-0xf1b+-0x1880+0x1*0x279d))+parseInt(_0x4983ec(bdy_0x3384d3._0x4f5a1d,bdy_0x3384d3._0x413bc8))/(-0xcaa+-0xedf+0x1b8c)+parseInt(_0x4983ec(bdy_0x3384d3._0x1f1702,bdy_0x3384d3._0x40e4a9))/(0x1*-0xe30+0x8c5+0x56f)+-parseInt(_0x4983ec(bdy_0x3384d3._0x37dc26,bdy_0x3384d3._0x533dc0))/(-0x1dcf*0x1+0x2174*-0x1+0x28*0x195)*(parseInt(_0x4983ec(bdy_0x3384d3._0x32e3a7,bdy_0x3384d3._0x57477e))/(-0x1c58+0x188f*-0x1+0x34ed))+parseInt(_0x4983ec(bdy_0x3384d3._0x2edcf4,bdy_0x3384d3._0x54da07))/(-0x3a*0x9b+0x1b52+0x7d3)+-parseInt(_0x4983ec(bdy_0x3384d3._0x4d30b1,bdy_0x3384d3._0x461928))/(-0x13*-0x50+-0x23e4+0xefe*0x2)+-parseInt(_0x4983ec(bdy_0x3384d3._0x1a562b,bdy_0x3384d3._0x1eb30e))/(-0x411*-0x5+0x1119*0x1+-0x2565);if(_0x198a55===_0x4848bb)break;else _0xd29dc1['push'](_0xd29dc1['shift']());}catch(_0x2e0aff){_0xd29dc1['push'](_0xd29dc1['shift']());}}}(bdy_0x2de6,0x25ce1*-0x3+-0x1d2794+0x1a422*0x1f));const bdy_0x27029=(function(){const bdy_0x2d622b={_0x12a2d4:'0x47e',_0x4ca2af:'fe8E',_0x10f469:'0x1f3',_0x327dcf:'HYjc',_0x17f7d5:'0x429',_0x134f32:'^ZAW',_0x33d71e:'0x224',_0x533bd7:'*!w%'},bdy_0x2a33e6={_0x428ad1:'0x226',_0x3e50a8:'z2nz',_0x1baf2b:'0x262',_0x20ede6:'WqY^'},bdy_0x126622={_0x530247:'0x42f',_0x2ff7c9:'g635',_0x2e97c5:'0x3a5',_0xc72b28:'CRxP',_0x591dc4:'0x1b5',_0x21e669:'0kfD',_0x4a92ae:'0x46f',_0x72dd45:'o)@h',_0x587860:'0x27e',_0x593e5a:'7GKF',_0xe93467:'0x1f7',_0x54c6ea:'HYjc',_0x4212be:'0x1e4',_0x294fc5:'0xc1',_0x420f4d:'0Jcg',_0x177c4e:'0x395',_0x1d0fc0:'E@cE',_0x320f7a:'0x2f5',_0x474757:'jPjN',_0x51b0a5:'0x111',_0x2b78f4:'i(qI'},_0x540acd=bdy_0x5edd,_0x15f7cc={};_0x15f7cc[_0x540acd(bdy_0x2d622b._0x12a2d4,bdy_0x2d622b._0x4ca2af)]=_0x540acd(bdy_0x2d622b._0x10f469,bdy_0x2d622b._0x327dcf),_0x15f7cc[_0x540acd(bdy_0x2d622b._0x17f7d5,bdy_0x2d622b._0x134f32)]=_0x540acd(bdy_0x2d622b._0x33d71e,bdy_0x2d622b._0x533bd7);const _0x14427f=_0x15f7cc;let _0xaea090=!![];return function(_0x420993,_0x253429){const _0x5b5036=bdy_0x5edd,_0x23dc84={};_0x23dc84[_0x5b5036(bdy_0x2a33e6._0x428ad1,bdy_0x2a33e6._0x3e50a8)]=_0x14427f[_0x5b5036(bdy_0x2a33e6._0x1baf2b,bdy_0x2a33e6._0x20ede6)];const _0x14af37=_0x23dc84,_0x33acaf=_0xaea090?function(){const _0xcb9ff4=bdy_0x5edd;if(_0xcb9ff4(bdy_0x126622._0x530247,bdy_0x126622._0x2ff7c9)!==_0xcb9ff4(bdy_0x126622._0x2e97c5,bdy_0x126622._0xc72b28)){if(_0x253429){if(_0x14427f[_0xcb9ff4(bdy_0x126622._0x591dc4,bdy_0x126622._0x21e669)]===_0x14427f[_0xcb9ff4(bdy_0x126622._0x4a92ae,bdy_0x126622._0x72dd45)]){const _0x2d7330=_0x253429[_0xcb9ff4(bdy_0x126622._0x587860,bdy_0x126622._0x593e5a)](_0x420993,arguments);return _0x253429=null,_0x2d7330;}else(function(){return![];}[_0xcb9ff4(bdy_0x126622._0xe93467,bdy_0x126622._0x54c6ea)](_0xcb9ff4(bdy_0x126622._0x4212be,bdy_0x126622._0xc72b28)+_0x14af37[_0xcb9ff4(bdy_0x126622._0x294fc5,bdy_0x126622._0x420f4d)])[_0xcb9ff4(bdy_0x126622._0x177c4e,bdy_0x126622._0x1d0fc0)](_0xcb9ff4(bdy_0x126622._0x320f7a,bdy_0x126622._0x474757)));}}else{const _0x48acce=_0x539a1d[_0xcb9ff4(bdy_0x126622._0x51b0a5,bdy_0x126622._0x2b78f4)](_0x368411,arguments);return _0x238e6a=null,_0x48acce;}}:function(){};return _0xaea090=![],_0x33acaf;};}()),bdy_0x3c4844=bdy_0x27029(this,function(){const bdy_0x267c70={_0x33fc9d:'0x10f',_0x4c64cb:'CFuh',_0x5759ca:'0x2a8',_0x24ae60:'Z0iJ',_0x211658:'0x72',_0x2c5007:'HYjc',_0x3b6a10:'0x2e2',_0x4da63f:'I!S!',_0x472527:'0x2e8',_0x2aaf7c:'ecb]',_0x5e2d5c:'0x44e',_0x46cfda:'*!w%',_0x48a0ac:'0x311',_0x2f00fb:'jnn3',_0x3577ee:'0x29e',_0x45e2ba:'1vR
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