faker3/jd_txtotal.js

9 lines
105 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
统计转赚红包和特价抽现金提现金额
1 1 29 2 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_txtotal.js
*/
const $ = new Env('抽现金提现统计');
const fuck_0x4a9045=fuck_0x4f65;(function(_0x29cd15,_0x4319d7){const fuck_0x2452af={_0x58ea7e:0x40c,_0x27e684:'VLu*',_0x34597b:0x397,_0x3792bd:'yd$r',_0x37f92:0x27e,_0x3825e2:'*%vw',_0x18c02a:0x226,_0x3401c0:'Zgib',_0x3a07cf:0x22d,_0x2f24c3:'6@*z',_0xb78e87:0x41e,_0x5b7556:'g2vi',_0x3e6ef8:0x2b3,_0x1a4c5f:'AIYC',_0x1d57c7:0x35c,_0x565cf2:'vztT',_0x502951:0x227,_0x13c1e6:'#sCC'},_0x2bba85=fuck_0x4f65,_0x49fc45=_0x29cd15();while(!![]){try{const _0x490bc0=-parseInt(_0x2bba85(fuck_0x2452af._0x58ea7e,fuck_0x2452af._0x27e684))/(0x24fa+-0x1c*-0x22+-0x28b1)+parseInt(_0x2bba85(fuck_0x2452af._0x34597b,fuck_0x2452af._0x3792bd))/(-0x6fe*0x1+0x7d6+0x6b*-0x2)*(-parseInt(_0x2bba85(fuck_0x2452af._0x37f92,fuck_0x2452af._0x3825e2))/(0x17db+-0x2091+-0xb*-0xcb))+parseInt(_0x2bba85(fuck_0x2452af._0x18c02a,fuck_0x2452af._0x3401c0))/(0x94f*0x1+0x1733*0x1+-0x103f*0x2)+-parseInt(_0x2bba85(fuck_0x2452af._0x3a07cf,fuck_0x2452af._0x2f24c3))/(-0x5*0x45e+-0x8+0x15e3)+parseInt(_0x2bba85(fuck_0x2452af._0xb78e87,fuck_0x2452af._0x5b7556))/(0x8fb*0x1+0xff8+0x3*-0x84f)+-parseInt(_0x2bba85(fuck_0x2452af._0x3e6ef8,fuck_0x2452af._0x1a4c5f))/(-0x20e+0x4cd*0x7+-0x1f86)+parseInt(_0x2bba85(fuck_0x2452af._0x1d57c7,fuck_0x2452af._0x565cf2))/(0xcea+0x24f9+-0x31db*0x1)*(parseInt(_0x2bba85(fuck_0x2452af._0x502951,fuck_0x2452af._0x13c1e6))/(0x3b*0x6d+-0x19b6+-0x4*-0x28));if(_0x490bc0===_0x4319d7)break;else _0x49fc45['push'](_0x49fc45['shift']());}catch(_0x1f1397){_0x49fc45['push'](_0x49fc45['shift']());}}}(fuck_0x4efd,0x72a67+-0x4d51c+0x1a989));const fuck_0x4a998c=$[fuck_0x4a9045(0x3fb,'AIYC')]()?require(fuck_0x4a9045(0x42c,'xGqS')):'',fuck_0x23bca4=$[fuck_0x4a9045(0x381,'3cZ]')]()?require(fuck_0x4a9045(0x247,'QVkh')):'',fuck_0x2827c1=require(fuck_0x4a9045(0x338,'SxfA')),fuck_0x32c765=require(fuck_0x4a9045(0x29d,'vztT')),fuck_0x48b01b=require(fuck_0x4a9045(0x1eb,'h[p^'));let fuck_0x4fbd86=!![],fuck_0x3eadd=[],fuck_0x2799c2='',fuck_0x35317f='',fuck_0x1aa38a='';function fuck_0x4f65(_0x4e7334,_0x188d36){const _0x583f51=fuck_0x4efd();return fuck_0x4f65=function(_0x54195a,_0x4422a2){_0x54195a=_0x54195a-(0x20c0+-0x158a+-0x94c);let _0x3d066d=_0x583f51[_0x54195a];if(fuck_0x4f65['bCACVB']===undefined){var _0x4a8944=function(_0x1081e6){const _0x1f4ee1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3c91cb='',_0x4eb65b='',_0x952018=_0x3c91cb+_0x4a8944;for(let _0x1d07f1=0x110f+0x173*0x16+-0x30f1,_0x545e23,_0x4cd6ba,_0xb8e44=0x6*0x355+0x717+-0x1b15;_0x4cd6ba=_0x1081e6['charAt'](_0xb8e44++);~_0x4cd6ba&&(_0x545e23=_0x1d07f1%(0x8*-0x47f+0x1700+0xcfc*0x1)?_0x545e23*(-0x3*0x3a1+0x1e5b+-0x1338)+_0x4cd6ba:_0x4cd6ba,_0x1d07f1++%(0x2*0xdd+0x25a9+0x1*-0x275f))?_0x3c91cb+=_0x952018['charCodeAt'](_0xb8e44+(0x763+0x1455+-0x1bae))-(-0x8e6+-0x1da3+-0x5*-0x7b7)!==0x7*-0x2fa+0x925*0x4+0x2*-0x7df?String['fromCharCode'](-0x353*0x9+0x8*0x332+0x2*0x2ad&_0x545e23>>(-(0x2dd+-0x26da+0x61*0x5f)*_0x1d07f1&-0x4f6*-0x1+-0x1*0x268a+0x219a)):_0x1d07f1:-0x4d*-0x20+0xeef+-0x1*0x188f){_0x4cd6ba=_0x1f4ee1['indexOf'](_0x4cd6ba);}for(let _0x28ca66=0xc*0x1+-0xbbf*0x3+-0x333*-0xb,_0x333745=_0x3c91cb['length'];_0x28ca66<_0x333745;_0x28ca66++){_0x4eb65b+='%'+('00'+_0x3c91cb['charCodeAt'](_0x28ca66)['toString'](-0x6c4+-0x64b+0xd1f))['slice'](-(-0x6dd+-0x76*-0x44+0x7*-0x37f));}return decodeURIComponent(_0x4eb65b);};const _0x1dffd1=function(_0x56f27e,_0x153bb9){let _0xbf862a=[],_0x1b7738=-0x1380+0x1*-0x22a3+0x3623,_0x58cd18,_0x298ebd='';_0x56f27e=_0x4a8944(_0x56f27e);let _0x19d4c4;for(_0x19d4c4=0x4*0x35a+0x957+-0x16bf;_0x19d4c4<-0x18*0x12b+-0x18e9+0x35f1;_0x19d4c4++){_0xbf862a[_0x19d4c4]=_0x19d4c4;}for(_0x19d4c4=0xe47+-0x1*0x890+0x85*-0xb;_0x19d4c4<-0x11fb+0x634+-0xcc7*-0x1;_0x19d4c4++){_0x1b7738=(_0x1b7738+_0xbf862a[_0x19d4c4]+_0x153bb9['charCodeAt'](_0x19d4c4%_0x153bb9['length']))%(-0x1*-0x2133+0x22a3*0x1+-0x1d*0x24e),_0x58cd18=_0xbf862a[_0x19d4c4],_0xbf862a[_0x19d4c4]=_0xbf862a[_0x1b7738],_0xbf862a[_0x1b7738]=_0x58cd18;}_0x19d4c4=-0x44*-0x41+-0x101b+-0x129,_0x1b7738=-0x8+-0xff3+-0xffb*-0x1;for(let _0x40e7a1=0x43*0x49+-0x18fc+0x5*0x12d;_0x40e7a1<_0x56f27e['length'];_0x40e7a1++){_0x19d4c4=(_0x19
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