jdpro/jd_tj_signcash.js

9 lines
158 KiB
JavaScript
Raw Normal View History

2024-01-02 12:59:48 +00:00
/*
特价版签到提现
15 3 * * * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_tj_signcash.js
update:2022/12/15
*/
const $ = new Env('特价版签到提现');
function _0x28821e(_0x351ae8,_0x22fa32,_0x140206,_0x13f154,_0x357fd4){const _0x585ceb={_0x455cb2:'\x30\x78\x33\x32\x62'};return _0x4f87(_0x13f154-_0x585ceb._0x455cb2,_0x22fa32);}(function(_0x5a7131,_0x29da7d){const _0x376a41={_0x16c891:'\x30\x78\x32\x36\x64',_0x345970:'\x30\x78\x32\x66\x33',_0x597999:'\x30\x78\x32\x33\x39',_0x46ebee:'\x30\x78\x31\x64\x35',_0x5a3b41:'\x5e\x5b\x25\x56',_0x489abe:'\x44\x69\x25\x5d',_0x11b693:'\x30\x78\x31\x30\x65',_0x2b0911:'\x30\x78\x31\x39\x36',_0x47d7ec:'\x30\x78\x31\x64\x32',_0x3b8a17:'\x30\x78\x32\x33\x31',_0x49057c:'\x30\x78\x33\x39\x64',_0xf35e60:'\x30\x78\x32\x65\x30',_0x804aa7:'\x30\x78\x33\x31\x34',_0x23b5b6:'\x71\x33\x6c\x53',_0x19ffa0:'\x30\x78\x32\x65\x38',_0x12a1fc:'\x30\x78\x32\x33\x33',_0x103376:'\x30\x78\x32\x61\x66',_0x26b22d:'\x30\x78\x32\x32\x64',_0x145899:'\x44\x69\x25\x5d',_0x4ba5e2:'\x30\x78\x32\x36\x62',_0x1fead5:'\x30\x78\x31\x36\x33',_0x3aa46b:'\x30\x78\x31\x64\x37',_0x3d4a7b:'\x30\x78\x31\x32\x35',_0x1290d1:'\x30\x78\x31\x31\x64',_0x468937:'\x34\x28\x63\x79',_0x5edebb:'\x30\x78\x32\x36\x62',_0x3dab78:'\x30\x78\x31\x62\x36',_0x9d55f0:'\x30\x78\x32\x30\x34',_0x5498ce:'\x63\x40\x29\x62',_0x2f9f03:'\x30\x78\x32\x30\x31',_0x1b204e:'\x30\x78\x31\x39\x62',_0x396734:'\x30\x78\x31\x39\x38',_0x1ccfa8:'\x30\x78\x31\x64\x64',_0x2b1d2f:'\x30\x78\x31\x61\x33',_0x238034:'\x52\x40\x39\x47',_0x5e75f1:'\x30\x78\x32\x66\x65',_0x137c5c:'\x30\x78\x32\x64\x32',_0x13a6c7:'\x68\x4e\x6b\x46',_0x4e4141:'\x30\x78\x33\x31\x64',_0x5d8e8e:'\x30\x78\x32\x64\x64',_0x5bc268:'\x30\x78\x31\x39\x39',_0x1b0bb7:'\x30\x78\x31\x62\x64',_0x10351f:'\x30\x78\x32\x32\x38',_0x221b1a:'\x30\x78\x31\x64\x33',_0x194ad7:'\x52\x49\x61\x45',_0x5731d9:'\x30\x78\x32\x33\x39',_0x2a80e0:'\x30\x78\x32\x30\x30',_0x4b5c33:'\x35\x40\x26\x6b',_0x2b1190:'\x30\x78\x32\x37\x35',_0x13674c:'\x30\x78\x32\x36\x32'},_0xf19ff4={_0x5c03c8:'\x30\x78\x36\x66'},_0xdceb48={_0x7ea585:'\x30\x78\x32\x38\x32'},_0x15f8e3={_0x2f0ecc:'\x30\x78\x34\x65'},_0x32d33c={_0x4dfe0f:'\x30\x78\x62\x33'},_0x19d0f4={_0x56effc:'\x30\x78\x65\x35'};function _0x425d9a(_0xbd7439,_0x5ae985,_0x570511,_0x479c00,_0x42db58){return _0x4f87(_0x570511-_0x19d0f4._0x56effc,_0x479c00);}function _0x500f49(_0x4aae07,_0x493908,_0x1e8895,_0x592bd6,_0x1759de){return _0x4f87(_0x1759de-_0x32d33c._0x4dfe0f,_0x1e8895);}function _0x1baa3f(_0x4388a0,_0x4410f5,_0x15e311,_0xb0f0b4,_0x5265aa){return _0x4f87(_0x4388a0-_0x15f8e3._0x2f0ecc,_0x5265aa);}const _0x1c2662=_0x5a7131();function _0x3bde01(_0x897bed,_0x3b97c7,_0x434b77,_0x5ce0ae,_0xa2809c){return _0x4f87(_0x434b77- -_0xdceb48._0x7ea585,_0x897bed);}function _0x561789(_0x1be9fb,_0x41b95e,_0x137df2,_0x54c6e4,_0x5938ad){return _0x4f87(_0x5938ad-_0xf19ff4._0x5c03c8,_0x1be9fb);}while(!![]){try{const _0x408d86=parseInt(_0x1baa3f(_0x376a41._0x16c891,_0x376a41._0x345970,_0x376a41._0x597999,_0x376a41._0x46ebee,_0x376a41._0x5a3b41))/(0x19*-0x37+0x1*0x130d+-0x9*0x185)+parseInt(_0x3bde01(_0x376a41._0x489abe,-_0x376a41._0x11b693,-_0x376a41._0x2b0911,-_0x376a41._0x47d7ec,-_0x376a41._0x3b8a17))/(0x1*0x16cc+0x25bb+-0x3c85)+parseInt(_0x425d9a(_0x376a41._0x49057c,_0x376a41._0xf35e60,_0x376a41._0x804aa7,_0x376a41._0x23b5b6,_0x376a41._0x19ffa0))/(0xa8a+0x645+-0x10cc)+-parseInt(_0x425d9a(_0x376a41._0x12a1fc,_0x376a41._0x103376,_0x376a41._0x26b22d,_0x376a41._0x145899,_0x376a41._0x4ba5e2))/(-0x1c8e+0xb2*-0xd+0x259c)*(parseInt(_0x1baa3f(_0x376a41._0x1fead5,_0x376a41._0x3aa46b,_0x376a41._0x3d4a7b,_0x376a41._0x1290d1,_0x376a41._0x468937))/(0xc02+-0x1*0x16a6+0xaa9))+parseInt(_0x425d9a(_0x376a41._0x5edebb,_0x376a41._0x3dab78,_0x376a41._0x9d55f0,_0x376a41._0x5498ce,_0x376a41._0x2f9f03))/(0x1*-0x621+0xea+0x53d)*(-parseInt(_0x1baa3f(_0x376a41._0x1b204e,_0x376a41._0x396734,_0x376a41._0x1ccfa8,_0x376a41._0x2b1d2f,_0x376a41._0x238034))/(-0x92e+0x8f*0x1+0x7b*0x12))+-parseInt(_0x500f49(_0x376a41._0x5e75f1,_0x376a41._0x137c5c,_0x376a41._0x13a6c7,_0x376a41._0x4e4141,_0x376a41._0x5d8e8e))/(-0x6a*0x59+-0x43*0x92+0x1908*0x3)*(-parseInt(_0x1baa3f(_0x376a41._0x5bc268,_0x376a41._0x1b0bb7,_0x376a41._0x10351f,_0x376a41._0x221b1a,_0x376a41._0x194ad7))/(-0x8*0xd8+-0xfca*0x2+0x1
// 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