mirror of https://github.com/6dylan6/jdpro.git
9 lines
80 KiB
JavaScript
9 lines
80 KiB
JavaScript
|
/*
|
|||
|
极速模式-签到提现
|
|||
|
默认提现,不提现变量JSQDTX='false'
|
|||
|
33 3 * * * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_speedtx.js
|
|||
|
updatetime:2023/10/01
|
|||
|
*/
|
|||
|
const $ = new Env('极速模式签到');
|
|||
|
var _0xod9='jsjiami.com.v7';const _0x114045=_0x1486;(function(_0x31b34a,_0x561fed,_0x35f158,_0x8cc76c,_0x173fbe,_0x1918c1,_0x51db60){return _0x31b34a=_0x31b34a>>0x4,_0x1918c1='hs',_0x51db60='hs',function(_0x2bd6c7,_0x2c4dfb,_0x2d5f64,_0x1830bf,_0x3b93e4){const _0x30eefa=_0x1486;_0x1830bf='tfi',_0x1918c1=_0x1830bf+_0x1918c1,_0x3b93e4='up',_0x51db60+=_0x3b93e4,_0x1918c1=_0x2d5f64(_0x1918c1),_0x51db60=_0x2d5f64(_0x51db60),_0x2d5f64=0x0;const _0x3e841a=_0x2bd6c7();while(!![]&&--_0x8cc76c+_0x2c4dfb){try{_0x1830bf=-parseInt(_0x30eefa(0x3c8,'yOJX'))/0x1*(parseInt(_0x30eefa(0x46d,'DYV4'))/0x2)+parseInt(_0x30eefa(0x284,'dKES'))/0x3+parseInt(_0x30eefa(0x3a3,'hsA#'))/0x4+parseInt(_0x30eefa(0x3e9,'@Idd'))/0x5*(-parseInt(_0x30eefa(0x35f,'!5)L'))/0x6)+-parseInt(_0x30eefa(0x1e1,'[Yfm'))/0x7*(parseInt(_0x30eefa(0x380,'GpR9'))/0x8)+-parseInt(_0x30eefa(0x281,'hzgt'))/0x9+parseInt(_0x30eefa(0x492,'lWZm'))/0xa*(parseInt(_0x30eefa(0x438,'bOkz'))/0xb);}catch(_0x21cdf1){_0x1830bf=_0x2d5f64;}finally{_0x3b93e4=_0x3e841a[_0x1918c1]();if(_0x31b34a<=_0x8cc76c)_0x2d5f64?_0x173fbe?_0x1830bf=_0x3b93e4:_0x173fbe=_0x3b93e4:_0x2d5f64=_0x3b93e4;else{if(_0x2d5f64==_0x173fbe['replace'](/[XWrAkIFBTOMQNhHuqY=]/g,'')){if(_0x1830bf===_0x2c4dfb){_0x3e841a['un'+_0x1918c1](_0x3b93e4);break;}_0x3e841a[_0x51db60](_0x3b93e4);}}}}}(_0x35f158,_0x561fed,function(_0x1bb94f,_0x1f8705,_0x488d45,_0x80332c,_0xb45b14,_0x334918,_0x337388){return _0x1f8705='\x73\x70\x6c\x69\x74',_0x1bb94f=arguments[0x0],_0x1bb94f=_0x1bb94f[_0x1f8705](''),_0x488d45=`\x72\x65\x76\x65\x72\x73\x65`,_0x1bb94f=_0x1bb94f[_0x488d45]('\x76'),_0x80332c=`\x6a\x6f\x69\x6e`,(0x148fd5,_0x1bb94f[_0x80332c](''));});}(0xc80,0xa045c,_0x4804,0xca),_0x4804)&&(_0xod9=0xca);const _0x1b5eeb=$[_0x114045(0x392,'C)&X')]()?require(_0x114045(0x300,'e(AV')):'',_0x2ca3d8=$[_0x114045(0x2e8,'GpR9')]()?require(_0x114045(0x49e,'!P**')):'',_0x218c98=require(_0x114045(0x340,'GpR9')),_0x50af07=require(_0x114045(0x2f0,'TL[#')),_0x370184=process[_0x114045(0x3d9,'DYV4')][_0x114045(0x277,'lWZm')]?process[_0x114045(0x306,'VWG&')][_0x114045(0x39a,'TiO3')]:!![];let _0x3666db=!![],_0x58031=[],_0x22b555='',_0xd3d8f5='';if($[_0x114045(0x38f,'e(AV')]()){Object[_0x114045(0x3e1,'hsA#')](_0x2ca3d8)[_0x114045(0x243,'TiO3')](_0x1bc013=>{const _0x4107ab=_0x114045;_0x58031[_0x4107ab(0x367,'TL[#')](_0x2ca3d8[_0x1bc013]);});if(process[_0x114045(0x33b,'%U6C')][_0x114045(0x215,'[qg@')]&&process[_0x114045(0x3b4,'jJqb')][_0x114045(0x41e,'GgtS')]===_0x114045(0x1f1,'ypO9'))console[_0x114045(0x37d,'DW&2')]=()=>{};}else _0x58031=[$[_0x114045(0x384,'1GHm')](_0x114045(0x357,'428C')),$[_0x114045(0x2c8,')E)B')](_0x114045(0x197,'w(bl')),..._0x254888($[_0x114045(0x483,'Li55')](_0x114045(0x2bc,'3zax'))||'[]')[_0x114045(0x491,'og$2')](_0xe3bb52=>_0xe3bb52[_0x114045(0x3cb,'hYEN')])][_0x114045(0x25a,'UhVG')](_0x1d7736=>!!_0x1d7736);function _0x4804(){const _0x44017e=(function(){return[...[_0xod9,'XTjNsOjWrAiNaFumiW.FchqoYTkmq.v7QOMHIAIB==','W74wW6WlWPHX','W7fpW73cRYq','yCkCW7q','W5ddIWqYW61RjmokrCkasvezW5xcHg3dOdqTW7XkvCkKWRqDWReRWONdU23dGSotb8kWtmoJW5xdPSoUW6/cLmoLWRPKxH3dQGRcMSktj8k3dhlcRNFcPSkkW6VcUHNcR8oEW5ldTSoocI/dMITzqmoCW4dcKhFdU8kiamoeW7/dQJLFqcuskCoCASk/mZrkmNhcVf5jrCkUwCoFoLFdMG4rWPOyW4SHrmkSW7aDamoFB2u','dSoSxwlcTd7cJmomemk3WOpdM8ojjuNcVmkwDSoqfsu+','eCkFAcaqsmkVsa','smkqWRdcICo0','WP5/Dty6','W6X1W53cSIy','mX/cRSoJu8ohWOu','WPW1W4m1WPdcH1NdJ2FcM2DEW7pdQtRcMG','pmkrAI4','WQ0ZmMDT','WQy1zCoFW6igamkSW7WbW7ZcHa','mJRcU8oGyq','umknWPldImoj','h17dISojfW','Bg7dRSoC6kYg5RoX5AwC6lsZ77+J6k6F5QkF5P+d572E6lwk6ysl6k2s','5lQa5yQE5A6r5OUl772a6i6C5B2h77+I','WPmOmgnh','cgFdUCo4za','bSoVW6tcNW','gMNdHSkQoa','g8oPW7/cP30','pMldPSoKnq','hv3dKCoAWOa','aCoSB8oVAW','WOldJSk8WOLn','WPGWW5akWOFcPW','W5SXWPO','iN7dNmo6xW','WPJdIM0','5lM55lIN6lsD5y6m','WRVdH3i5ja','bmkHW4LvvG','5lUh5lIn6lAP5yYB','iNxdP8o6ya','W6rQW4dcU8oq','WRVdJ8kPWPnB','WQCyW4SLWRO','W55WWRKOtq','pCkPWO7dIL0','WPeTW4u','f1b6','kZ8nWQ3dLG','WO3dJ2aDeSo/','fmkbW6lcImoCzSoNovSTW5W','bLVdT8kQeW','W50lW6K5WO0','44oT5O6s56Ay44gwWPFcR1/dKMVcKow3M+wKMUAxLG','W78AW7qBWPX3zW','W4pcU8oAWOFcTmonWQpcOXGJWRVdO0pcHNddR8ogW6W+Am
|
|||
|
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
|