faker3/jd_jr_fish_help.js

15 lines
37 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
活动名称金融捕鱼助力
环境变量
jd_jr_fish_inviteCode // 指定助力码 非必须,不填默认助力账号一
cron:1 1 1 1 *
*/
const $ = new Env('金融捕鱼助力')
var il='jsjiami.com.v7';const liil1l=iii1II;if(function(lillII,ii1ilI,lI1ll1,iIiI1,liil1I,i11ii1,IlIliI){return lillII=lillII>>0x6,i11ii1='hs',IlIliI='hs',function(l1iII1,iiill1,lIli1i,IIIII1,I1lIlI){const i1l1iI=iii1II;IIIII1='tfi',i11ii1=IIIII1+i11ii1,I1lIlI='up',IlIliI+=I1lIlI,i11ii1=lIli1i(i11ii1),IlIliI=lIli1i(IlIliI),lIli1i=0x0;const ii1ill=l1iII1();while(!![]&&--iIiI1+iiill1){try{IIIII1=-parseInt(i1l1iI(0x6f,'tXxu'))/0x1+-parseInt(i1l1iI(0x76,'j]#M'))/0x2+parseInt(i1l1iI(0x91,'aq(d'))/0x3*(-parseInt(i1l1iI(0x19a,'EIO%'))/0x4)+parseInt(i1l1iI(0x84,'w4h@'))/0x5+-parseInt(i1l1iI(0x9c,'*ZO('))/0x6*(parseInt(i1l1iI(0x1a4,'nx$C'))/0x7)+parseInt(i1l1iI(0xdf,'K)Ew'))/0x8*(-parseInt(i1l1iI(0xe9,'v&!V'))/0x9)+parseInt(i1l1iI(0x191,'j]#M'))/0xa;}catch(II1iI){IIIII1=lIli1i;}finally{I1lIlI=ii1ill[i11ii1]();if(lillII<=iIiI1)lIli1i?liil1I?IIIII1=I1lIlI:liil1I=I1lIlI:lIli1i=I1lIlI;else{if(lIli1i==liil1I['replace'](/[HtQeSDgGJNhYMArF=]/g,'')){if(IIIII1===iiill1){ii1ill['un'+i11ii1](I1lIlI);break;}ii1ill[IlIliI](I1lIlI);}}}}}(lI1ll1,ii1ilI,function(llI1II,lIli1l,lillIi,illIi1,ii1ili,liil1i,lI1lil){return lIli1l='\x73\x70\x6c\x69\x74',llI1II=arguments[0x0],llI1II=llI1II[lIli1l](''),lillIi=`\x72\x65\x76\x65\x72\x73\x65`,llI1II=llI1II[lillIi]('\x76'),illIi1=`\x6a\x6f\x69\x6e`,(0x16ef23,llI1II[illIi1](''));});}(0x2f40,0x201a6,Iii11l,0xbf),Iii11l){}function iii1II(_0x252b10,_0x39b872){const _0x1f3a7e=Iii11l();return iii1II=function(_0x1e7d97,_0x2b2e5b){_0x1e7d97=_0x1e7d97-0x6b;let _0x359e75=_0x1f3a7e[_0x1e7d97];if(iii1II['tPTUxR']===undefined){var _0x3c81eb=function(_0x140c4c){const _0x33bdec='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4d31c9='',_0x41455c='';for(let _0x32a05b=0x0,_0xc27493,_0x9f576f,_0x568013=0x0;_0x9f576f=_0x140c4c['charAt'](_0x568013++);~_0x9f576f&&(_0xc27493=_0x32a05b%0x4?_0xc27493*0x40+_0x9f576f:_0x9f576f,_0x32a05b++%0x4)?_0x4d31c9+=String['fromCharCode'](0xff&_0xc27493>>(-0x2*_0x32a05b&0x6)):0x0){_0x9f576f=_0x33bdec['indexOf'](_0x9f576f);}for(let _0x343341=0x0,_0xdd3fa5=_0x4d31c9['length'];_0x343341<_0xdd3fa5;_0x343341++){_0x41455c+='%'+('00'+_0x4d31c9['charCodeAt'](_0x343341)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x41455c);};const _0x4bb510=function(_0x56a5d8,_0x3a12a7){let _0x2348ba=[],_0x2306a5=0x0,_0x1fe515,_0x14aa4d='';_0x56a5d8=_0x3c81eb(_0x56a5d8);let _0xc1c1b5;for(_0xc1c1b5=0x0;_0xc1c1b5<0x100;_0xc1c1b5++){_0x2348ba[_0xc1c1b5]=_0xc1c1b5;}for(_0xc1c1b5=0x0;_0xc1c1b5<0x100;_0xc1c1b5++){_0x2306a5=(_0x2306a5+_0x2348ba[_0xc1c1b5]+_0x3a12a7['charCodeAt'](_0xc1c1b5%_0x3a12a7['length']))%0x100,_0x1fe515=_0x2348ba[_0xc1c1b5],_0x2348ba[_0xc1c1b5]=_0x2348ba[_0x2306a5],_0x2348ba[_0x2306a5]=_0x1fe515;}_0xc1c1b5=0x0,_0x2306a5=0x0;for(let _0x58704d=0x0;_0x58704d<_0x56a5d8['length'];_0x58704d++){_0xc1c1b5=(_0xc1c1b5+0x1)%0x100,_0x2306a5=(_0x2306a5+_0x2348ba[_0xc1c1b5])%0x100,_0x1fe515=_0x2348ba[_0xc1c1b5],_0x2348ba[_0xc1c1b5]=_0x2348ba[_0x2306a5],_0x2348ba[_0x2306a5]=_0x1fe515,_0x14aa4d+=String['fromCharCode'](_0x56a5d8['charCodeAt'](_0x58704d)^_0x2348ba[(_0x2348ba[_0xc1c1b5]+_0x2348ba[_0x2306a5])%0x100]);}return _0x14aa4d;};iii1II['LtnbJM']=_0x4bb510,_0x252b10=arguments,iii1II['tPTUxR']=!![];}const _0x2a40c9=_0x1f3a7e[0x0],_0x1c5304=_0x1e7d97+_0x2a40c9,_0x39204f=_0x252b10[_0x1c5304];return!_0x39204f?(iii1II['SHhmjc']===undefined&&(iii1II['SHhmjc']=!![]),_0x359e75=iii1II['LtnbJM'](_0x359e75,_0x2b2e5b),_0x252b10[_0x1c5304]=_0x359e75):_0x359e75=_0x39204f,_0x359e75;},iii1II(_0x252b10,_0x39b872);}function Iii11l(){const II11li=(function(){return[...[il,'gDjAsrjGYeitNahgMmDQJiQ.eMcHoAFmgh.vSr7M==','A1BcUCkHWRK','puhcICoFpW','W5XgASkpaq','z8onW63dTmo6W5RcPCoaWRWAW4FcUq0','uSomW5hcVfC','rSofWQtcJmkyfmklDI3cMW','WPNdN8oVWOGRW4yDW43dMf0HEaDDWOmhW6lcPCkZnemgWP8','owpcVmofhW','W5hcOvddTq','bMpcVW','5Awe6lsqsxy','WQX1EmooettcG8orWQVcGZLkeCoKWORdOCo4W4mJW6C','b07dVZdcULPw','iIf/W7lcKqWmt0qTWP3dTGO','W73cVSoEdtyZW7JdMCkxW59/qrC','s8kriwG','h8kIv3ZdQ8k4AW','W7jdWRzQwq','W57cOSoOW67dIJNdUG','dgxdGSovWPS','4P++W5tMTydOR5NOV5/PG4VMGAVKUAGFW6TFF+kFL8ol5P+C5yM/54Qz5Okg5Q+o5BIUgConW
// 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