mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
16 lines
30 KiB
JavaScript
16 lines
30 KiB
JavaScript
|
/*
|
|||
|
粉丝福利
|
|||
|
|
|||
|
入口:微信公众号粉丝福利
|
|||
|
|
|||
|
只兑换京豆奖励,不兑换其他奖品
|
|||
|
|
|||
|
cron:40 0,18 * * *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('公众号粉丝福利')
|
|||
|
var iil='jsjiami.com.v7';const IIli11=iii1II;if(function(II1lil,IIli1l,II1lii,lIIii1,ll1i1,IIli1i,I1iIi1){return II1lil=II1lil>>0x2,IIli1i='hs',I1iIi1='hs',function(lliil1,IIllI,lliilI,lili1,ll1l1){const ll1ii=iii1II;lili1='tfi',IIli1i=lili1+IIli1i,ll1l1='up',I1iIi1+=ll1l1,IIli1i=lliilI(IIli1i),I1iIi1=lliilI(I1iIi1),lliilI=0x0;const IllIIi=lliil1();while(!![]&&--lIIii1+IIllI){try{lili1=-parseInt(ll1ii(0x1b1,'rSHC'))/0x1*(parseInt(ll1ii(0x1cc,'zT15'))/0x2)+parseInt(ll1ii(0x22c,'&CXu'))/0x3*(parseInt(ll1ii(0x173,'PiwY'))/0x4)+-parseInt(ll1ii(0x1a0,'aLvS'))/0x5+parseInt(ll1ii(0x17d,'wAoh'))/0x6*(-parseInt(ll1ii(0x164,'5jS%'))/0x7)+-parseInt(ll1ii(0x232,'bRuJ'))/0x8*(parseInt(ll1ii(0x1d0,'Rrz^'))/0x9)+parseInt(ll1ii(0x1ec,'wAoh'))/0xa+parseInt(ll1ii(0x1f5,'pHnu'))/0xb;}catch(IllIIl){lili1=lliilI;}finally{ll1l1=IllIIi[IIli1i]();if(II1lil<=lIIii1)lliilI?ll1i1?lili1=ll1l1:ll1i1=ll1l1:lliilI=ll1l1;else{if(lliilI==ll1i1['replace'](/[pkgQTJGeYlLXPutRKqV=]/g,'')){if(lili1===IIllI){IllIIi['un'+IIli1i](ll1l1);break;}IllIIi[I1iIi1](ll1l1);}}}}}(II1lii,IIli1l,function(IiiIi1,l1ii1,ii1ll,IliI1l,lliiil,lliiii,IliI1i){return l1ii1='\x73\x70\x6c\x69\x74',IiiIi1=arguments[0x0],IiiIi1=IiiIi1[l1ii1](''),ii1ll=`\x72\x65\x76\x65\x72\x73\x65`,IiiIi1=IiiIi1[ii1ll]('\x76'),IliI1l=`\x6a\x6f\x69\x6e`,(0x16a77b,IiiIi1[IliI1l](''));});}(0x328,0xa64ea,Iii11l,0xcc),Iii11l){}const notify=require(IIli11(0x1b2,'#7K8')),jdCookie=require(IIli11(0x1d9,'PKfH')),common=require('./utils/Rebels_jdCommon'),{H5st}=require('./utils/Rebels_H'),isNotify=![];let waitTimes=0x7d0,cookie='';const cookiesArr=Object[IIli11(0x223,'#7K8')](jdCookie)[IIli11(0x1c4,'zT15')](i1ilil=>jdCookie[i1ilil])[IIli11(0x14c,'Ml$2')](lilIii=>lilIii);!cookiesArr[0x0]&&($[IIli11(0x1dd,'nJ(e')]($[IIli11(0x195,'jlAx')],IIli11(0x15c,'%xG@')),process[IIli11(0x183,'OCC5')](0x1));!(async()=>{const IllIII=IIli11,i1ill1={'TOdEP':function(iIIl1l,llIli1){return iIIl1l<llIli1;},'TeCef':function(iliIII,iIIl1i){return iliIII+iIIl1i;},'jKXGn':function(I1lllI,ill111){return I1lllI(ill111);},'ymuts':IllIII(0x19f,'w&0Y'),'bPWYp':function(Iliil1){return Iliil1();},'FgrGe':function(i1III,Ii1iIi,iliIIl){return i1III(Ii1iIi,iliIIl);},'qRBrx':function(Ii1iIl,iliIIi){return Ii1iIl*iliIIi;}};console['log'](IllIII(0x228,'&[Lp')),notify[IllIII(0x230,'h%x1')]({'title':$['name']});for(let ill11I=0x0;i1ill1[IllIII(0x1af,'ms*d')](ill11I,cookiesArr[IllIII(0x227,'nJ(e')]);ill11I++){$['index']=i1ill1[IllIII(0x1d3,'gdwb')](ill11I,0x1),cookie=cookiesArr[ill11I],common[IllIII(0x168,'&Fax')](cookie),$[IllIII(0x212,'gdwb')]=i1ill1[IllIII(0x1e9,'0L4@')](decodeURIComponent,common[IllIII(0x14a,'PKfH')](cookie,i1ill1['ymuts'])),$['UA']=common[IllIII(0x1fa,'rSHC')]($[IllIII(0x1e1,'@H%P')]),$[IllIII(0x1ce,'VzBu')]=notify[IllIII(0x1fb,'z%H$')]($['index'],$[IllIII(0x1da,'D!sW')]),$['nickName']='',console[IllIII(0x21e,'Qj@b')](IllIII(0x19a,'PiwY')+$['index']+'】'+($[IllIII(0x1ef,'Rrz^')]||$[IllIII(0x18e,'m*cx')])+IllIII(0x177,'[HAf')),await i1ill1['bPWYp'](Main),common['unsetCookie']();if($[IllIII(0x1c0,'h%x1')])break;await $[IllIII(0x1e2,'CZFJ')](i1ill1[IllIII(0x1b9,'ThXg')](parseInt,i1ill1[IllIII(0x1ea,'ThXg')](waitTimes,0x1)+0x64,0xa));}isNotify&¬ify[IllIII(0x18b,'ms*d')]()&&(notify['appendContent']('\x0a'),await notify[IllIII(0x214,'D!sW')]());})()[IIli11(0x1a1,'TFac')](Iliiil=>$['logErr'](Iliiil))[IIli11(0x22e,'hY^n')](()=>$['done']());function iii1II(_0x11a87e,_0x531d45){const _0x35b637=Iii11l();return iii1II=function(_0x14ce72,_0x4564b6){_0x14ce72=_0x14ce72-0x146;let _0x1fef53=_0x35b637[_0x14ce72];if(iii1II['ATviHi']===undefined){var _0x416967=function(_0x352c1e){const _0x35fc5a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xca6d0e='',_0x1a62f0='';for(let _0x50b286=0x0,_0x5af3e4,_0x6490d3,_0x97e984=0x0;_0x6490d3=_0x352c1e['charAt'](_0x97e984++);~_0x6490d3&&(_0x5af3e4=_0x50b286%0x4?_0x5af3e4*0x40+_0x6490d3:_0x6490d3,_0x50b286++%0x4)?_0xca6d0e+=String['fromCharCode'](0xff&_0x5af3e4>>(-0x2*_0x50b286&0x6)):0x0){_0x6490d3=_0x35fc5a['indexOf'](_0x6490d3);}for(let _0x15ddf2=0x0,_0x3e8a0a=_0xca6d0e['length
|
|||
|
// 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
|