mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
13 lines
41 KiB
JavaScript
13 lines
41 KiB
JavaScript
|
/*
|
|||
|
摇京豆
|
|||
|
|
|||
|
定时随机
|
|||
|
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('摇京豆')
|
|||
|
var iil='jsjiami.com.v7';const iii1l1=iii1II;(function(iii1lI,i1ilI1,Iiilii,Iil1li,Iiilil,Iil1ll,iillI){return iii1lI=iii1lI>>0x9,Iil1ll='hs',iillI='hs',function(lI1III,IIliIi,IllIiI,i1il1,I1l111){const iill1=iii1II;i1il1='tfi',Iil1ll=i1il1+Iil1ll,I1l111='up',iillI+=I1l111,Iil1ll=IllIiI(Iil1ll),iillI=IllIiI(iillI),IllIiI=0x0;const IIii1l=lI1III();while(!![]&&--Iil1li+IIliIi){try{i1il1=-parseInt(iill1(0x2e4,'xDc7'))/0x1+-parseInt(iill1(0x2bf,'@4EK'))/0x2*(parseInt(iill1(0x2da,'9233'))/0x3)+-parseInt(iill1(0x234,')SzQ'))/0x4+-parseInt(iill1(0x23d,'@4EK'))/0x5+-parseInt(iill1(0x264,'jtRs'))/0x6*(-parseInt(iill1(0x2cf,'nqIp'))/0x7)+-parseInt(iill1(0x16e,'5z3E'))/0x8*(-parseInt(iill1(0x27d,'XyyX'))/0x9)+parseInt(iill1(0x249,'K%ad'))/0xa;}catch(I1iIII){i1il1=IllIiI;}finally{I1l111=IIii1l[Iil1ll]();if(iii1lI<=Iil1li)IllIiI?Iiilil?i1il1=I1l111:Iiilil=I1l111:IllIiI=I1l111;else{if(IllIiI==Iiilil['replace'](/[FfbIJdNRrYUCAEDqOk=]/g,'')){if(i1il1===IIliIi){IIii1l['un'+Iil1ll](I1l111);break;}IIii1l[iillI](I1l111);}}}}}(Iiilii,i1ilI1,function(liiI11,ililI1,IIii1i,i1ili,Iiill1,I1iII1,lilII1){return ililI1='\x73\x70\x6c\x69\x74',liiI11=arguments[0x0],liiI11=liiI11[ililI1](''),IIii1i=`\x72\x65\x76\x65\x72\x73\x65`,liiI11=liiI11[IIii1i]('\x76'),i1ili=`\x6a\x6f\x69\x6e`,(0x159f8b,liiI11[i1ili](''));});}(0x18400,0x6b8a2,Iii11l,0xc4),Iii11l)&&(iil=Iii11l);const jdCookie=require(iii1l1(0x1da,'D(2k')),notify=require('./utils/Rebels_sendJDNotify'),common=require('./utils/Rebels_jdCommon'),{H5st}=require('./utils/Rebels_H'),RunTask=process['env']['jd_daily_yjd_task']===iii1l1(0x19d,'7koY'),isNotify=![],Origin=iii1l1(0x208,'XdGF'),Referer=iii1l1(0x197,'NKYa'),sign_token=iii1l1(0x28b,')SzQ');let cookie='';function Iii11l(){const lilIII=(function(){return[...[iil,'EJEjUfskrjiamCrib.kRdcqNoUmDE.FAvIFO7YED==','A8k1AG','w8orjXeOW73dRKGOgW7dQ8k4efzxWOPTv00','fCk9rN81','W53dQSoslCkj','z3hdTmoqpb1r','sMC9qSkR','zSkQFu/cQSoPW5zalSkcWPinWQG8f8oYbSkqaSorb8kko3Lca8oOtZ82ECosvG','uxVcGshdVbLp','ymkRWOBdSmoF','W6OLhSk2w8kFW4NdOCovW6LFmg7dLY4rW6RcOCop','44c75O2M56wc44gJ6k635yEu6iY35y+WdHG+W7dcSbi','W5BdP3RcVSkMyvykW7enpKtdQurzW7u','WPLIk8otW6D5WOlcRmkqW7j5WPWZl8oeWPBcVSkNFGG','pSonsaNcTMu','56205yMi6i++5B20W4xdIq','k0JcO8o8','DmkVBKdcPSo5W4q','sv1+W4uXW7K/BvtcNa','WPRdLdC','vSkJWRWtW6qJra','ECoGWP4lAG','WQ3dUHBcOt/dSCoKWRrDWPm','iealmmoi','W6mIW47cN8ka','WRhOROVMSRRLK5xLUkZcSW','hSossrRcHW','W6HvoGqAW5zG','W5qwWOpdSdK','WP3dPYz/jq','Afm3umkc','W45cDCkjpq','c8o0f8k5xa','W7yUWQZdNdq','WOtdSx/cUeLrCW','aCowqdZcM1lcKWy0smoJkmkSla','WO7dRYvoiG','WOhdQsb4jwORr2xcGmklgIS','i8ketSoMW5ZdNSkUk8oow8o4W4bvW4ldJ1rHW6iApSoUW7O6WPrcW7tdN8kg','qhqnWPLK','W67dQXhcPZFdGmo4','zf8R','a8oHka','EmodWPSOx8k7WQ7dN2bwW7tdQtNcHSkkrW','WRxdIYzgyGBdKCkEWOFcGKPMz8kuc1abW5nQkG','W7zNW5bqWRTmvr0','EmkMWRtdVSofAG','zhxdQSog','rL1S','dmouEGrG','W4JdKSolk8k3qgSXoCkZWPPw','6AoY5O6555EA5OML','zaibmW','CNxcLWxdNW','vCk5WQ8','rbC6WOVcJmkbsKRdJvRdVq','qCogWPCUsW','W5rEeZOz','wmovgr40','W4XLatBdUG','W5FdQSoqgmkb','BNxdS8oc','gmoPba','nSogiCktqW','W6LFlG','W4jKW4voWPXowqZcUf/dUSopW4tcUCkinxDMWQeHfHxdJSkAW4VdR8k6sCk0uunIWPK','vdnZWRhdR8k4WQhdLW','mCouqJD5W5i','WOz/W4K','auOQe8om','ySk/WRRdI8ouDbXQDH7dR8ojl8ktW6C','5PYN55In5BYX','W4T8W5HyWQ8','W4KfWPG','n8olsW','tt9HWQNdRmoRWQBdIwjCcaFdO8kkW6xdL3KGWPySWOHYgGrsWRddR8kcgmkiW5OntaZdTGyEWRbwW4hdV0pcVmobWPvcWOe+DcSsWQNdLmk6WOqpW680tmkPW7JcJCk2taddJ0hcRdhcN8o7W4DupL0VW5z7evylDSk2Fxfix152W4hdTCo3WQVdMwGJWQ/cUK4Xg8oUW4CTW7FcQ8oLbfa2CSk2jSkUW6BdGtCupfhdOdtdV8oRlComWPXvqrrAW4jzW5hcHgRdRxaEpmkHW6aqavJcUM3cMWzueCkWDd8SWR8YW7pdImkzWOJcJsJcL0ulW6WKWPddKGSOrZ5nWRedW73cJLTpW4pcM1z1W4S5eCoRjsFcV8k2i8oDr8ogw8o3W5HbWOrTWO3dU8kBaCojW7ZcQCoZxSoSFSoxrvLXhKSedmoMdCk/WOVcOhBdRSkafmoTqmobjgZdKCo2zmoljSotW5tcV8oeWQzdbSk0C8kdWP3cP8kOvY3dM8kmWOlcSXufW7OuzrHNWPJdRI05W4ZdPfxdIs8bW5n1WPCGl8o8WOumW5vwCtycvr7dTSkVivpcNXJdSmozmfddHCkpWQ/dJxqLW7pcQmkCW5y7WRHrbCoOWP4VW65KisLKW4LBAeG5i8kVWQ/dVc/dRXqowCk4kSk2W7lcOmoBW6lcU8kPW7iwhmoBsepcO8kMy8oUE8kRW7GTWQ5NWO7dGmk+hCoKW5BdTSkTl317WRxdK8otW4SkW7XOmqKUWRzBW5BdJ8k+iI58W7tdJcRdQaH1W4dcPNKfW5WtW4JcGmoEkeRcNx8YwtzTCmkXqNPug8oqnLddHbBdImoNqS
|
|||
|
// 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
|