jdpro/jd_signbeanact_.js

10 lines
58 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
APP首页-领京豆
38 0,7 * * * jd_signbeanact_.js
*/
const $ = new Env('领京豆签到');
const bdy_0x223f82=bdy_0x40c3;(function(_0x579c77,_0x5cb342){const bdy_0x215462={_0x20b856:'h0YN',_0x429e99:'0x20a',_0x549ef7:'WVj5'},_0x562d9f=bdy_0x40c3,_0x4352f0=_0x579c77();while(!![]){try{const _0x585e91=-parseInt(_0x562d9f('0xb6','mMzt'))/(0x14f*0xf+0x990+-0x1d30)*(-parseInt(_0x562d9f('0xf1','J$We'))/(-0x20e9+-0xab0+0x2b9b))+parseInt(_0x562d9f('0x125','9Jcs'))/(0x166+-0x1d27+0x1bc4)+parseInt(_0x562d9f('0xd1',bdy_0x215462._0x20b856))/(-0xbfc+0x268f+-0x1a8f)+parseInt(_0x562d9f(bdy_0x215462._0x429e99,bdy_0x215462._0x549ef7))/(0x2*0x5b9+-0x22a8+0x13*0x139)*(-parseInt(_0x562d9f('0x148','()cZ'))/(-0x2*-0x283+0x1*0x17e1+0x1*-0x1ce1))+-parseInt(_0x562d9f('0x147','AL(O'))/(0xb24+-0x4*-0x92f+-0x2fd9)+-parseInt(_0x562d9f('0x218','8t!K'))/(-0x1f4+0xb*-0x65+0x653)+parseInt(_0x562d9f('0x22e','3bHE'))/(0x19d*-0x3+-0xf3d*0x1+0x141d);if(_0x585e91===_0x5cb342)break;else _0x4352f0['push'](_0x4352f0['shift']());}catch(_0x38e507){_0x4352f0['push'](_0x4352f0['shift']());}}}(bdy_0xebf8,0xedbbc+-0x6029a+-0x15c92));const bdy_0x2afe2a=$[bdy_0x223f82('0x242','k%mh')]()?require(bdy_0x223f82('0x96','HGc5')):'';let bdy_0x349aab=[];if($[bdy_0x223f82('0x80',']VIK')]()){Object[bdy_0x223f82('0x210','vJmb')](bdy_0x2afe2a)[bdy_0x223f82('0x11e','HGc5')](_0x930396=>{const _0x3d820d=bdy_0x40c3;bdy_0x349aab[_0x3d820d('0x6f','AL(O')](bdy_0x2afe2a[_0x930396]);});if(process[bdy_0x223f82('0x246','8t!K')][bdy_0x223f82('0xf9','4EVm')]&&process[bdy_0x223f82('0x85','Gp*K')][bdy_0x223f82('0x17d','4OzJ')]===bdy_0x223f82('0x11f','qL9o'))console[bdy_0x223f82('0x17b','4OzJ')]=()=>{};}else bdy_0x349aab=[$[bdy_0x223f82('0xc4','9Jcs')](bdy_0x223f82('0x247','*lPB')),$[bdy_0x223f82('0xe9','h0YN')](bdy_0x223f82('0x1fe',']lLR')),...bdy_0x470086($[bdy_0x223f82('0x163',']lLR')](bdy_0x223f82('0x15e','qL9o'))||'[]')[bdy_0x223f82('0x1fa','rzKB')](_0x506100=>_0x506100[bdy_0x223f82('0x1eb','vJmb')])][bdy_0x223f82('0x12d','FtA$')](_0x3da28b=>!!_0x3da28b);const bdy_0x5590ab=require(bdy_0x223f82('0x182','bolS')),bdy_0x2ea5ab=require(bdy_0x223f82('0x153','mMzt')),bdy_0x3eaafe=bdy_0x223f82('0x15d','amH7');let bdy_0xa5e724={};if(process[bdy_0x223f82('0x1b7','3bHE')][bdy_0x223f82('0xa7','HRN6')])try{bdy_0xa5e724=require(bdy_0x223f82('0x21c','NWj1')),$[bdy_0x223f82('0x23d','FUOb')]=bdy_0xa5e724[bdy_0x223f82('0x1b8','HGc5')]($[bdy_0x223f82('0x150','7jMC')][bdy_0x223f82('0xd5','FtA$')]($)),$[bdy_0x223f82('0x1f2','*lPB')]=bdy_0xa5e724[bdy_0x223f82('0x9f',']VIK')]($[bdy_0x223f82('0xa5','mqlJ')][bdy_0x223f82('0x78','k%mh')]($));}catch{$[bdy_0x223f82('0x1c2','qL9o')]=$[bdy_0x223f82('0x8c','Gp*K')],$[bdy_0x223f82('0x9c','J$We')]=$[bdy_0x223f82('0x120','()cZ')];}else $[bdy_0x223f82('0x8e','MtGl')]=$[bdy_0x223f82('0x134','HGc5')],$[bdy_0x223f82('0x99','8t!K')]=$[bdy_0x223f82('0x161','kJZK')];!(async()=>{const bdy_0xb4f220={_0x1f0a10:'K7U9',_0x5f1a99:'9Jcs',_0x53c80c:']lLR',_0x331e33:'0x19d',_0x52e7e6:'0x114',_0x35c030:'K7U9',_0xaa624d:'0x139',_0xe638e:'0xe6',_0x1471c1:'FtA$',_0x49083a:'k%mh',_0x5d1d37:'0x226',_0x5e0a4a:'0x152',_0x5502af:'0x92',_0x7ce99d:'VUPo',_0x170709:'0x1b2',_0x2900f8:'jyY!',_0x47e9a0:'0x9a',_0x4d85c5:'mMzt',_0x46b0c3:'0xea',_0x542612:'h0YN',_0x13fcfc:'0x135',_0x525bf1:'()cZ',_0x4262c5:'0x199',_0x325a9d:'jyY!',_0x227e82:'0xf7',_0x144cc8:'0x14a',_0x3ab529:'0x233',_0x25e87b:'0x11a',_0x174caa:'0x110',_0x6d617a:'amH7',_0x4bacd2:'0x191',_0x23a195:'0xb3',_0x1cdbd4:'0x71',_0xf4e36c:'#5l#',_0x4b41d9:'0x1a8',_0x57484b:'rzKB',_0x105227:'0x118',_0x31b0e0:'8y(]',_0x150e91:'0x109',_0x23c929:'kJZK',_0x49ba21:'SlfO',_0x568b61:']lLR',_0x205381:'*lPB'},_0x17a5e6=bdy_0x40c3,_0x59e866={'ElkHr':_0x17a5e6('0x7f',bdy_0xb4f220._0x1f0a10),'dLKQP':_0x17a5e6('0xde',bdy_0xb4f220._0x5f1a99),'LqVDl':function(_0x21bd5a,_0x159ef5){return _0x21bd5a===_0x159ef5;},'dPYxo':_0x17a5e6('0x208','SlfO'),'qsoiO':_0x17a5e6('0x145','NWj1'),'XUlaA':function(_0xd7946,_0xef9da8){return _0xd7946<_0xef9da8;},'AICRE':function(_0xf37aa9,_0x125655){return _0xf37aa9(_0x125655);},'EwSZR':function(_0x24cfb3){return _0x24cfb3();},'YVfam':function(_0x86c266,_0x4cd69a){return _0x86c266+_0x4cd69a;},'NAepg':function(_0x4e963d,_0x33a2c
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("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) } 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 } isShadowrocket() { return "undefined" != typeof $rocket } 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("@"), a = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(a, (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.isNo