faker3/jd_mybbphdyh_give.js

12 lines
75 KiB
JavaScript
Raw Normal View History

2024-07-06 12:23:46 +08:00
/*
5.25-6.30 轻松育儿集卡礼赠送卡片
cron:1 1 1 1 *
*/
2024-07-09 23:02:32 +08:00
const $ = new Env('7.1-7.15 轻松育儿集卡礼赠送卡片')
2024-07-06 12:23:46 +08:00
var il='jsjiami.com.v7';const l1iiII=iii1II;(function(Illi1,l1iiIl,lIIi1i,liI11I,III1,l1IIl1,l1iiIi){return Illi1=Illi1>>0x6,l1IIl1='hs',l1iiIi='hs',function(lIIi1l,I1lI1i,illili,iiiII1,liI111){const l1IIil=iii1II;iiiII1='tfi',l1IIl1=iiiII1+l1IIl1,liI111='up',l1iiIi+=liI111,l1IIl1=illili(l1IIl1),l1iiIi=illili(l1iiIi),illili=0x0;const IiIlI=lIIi1l();while(!![]&&--liI11I+I1lI1i){try{iiiII1=-parseInt(l1IIil(0x191,'fNER'))/0x1*(-parseInt(l1IIil(0x44d,'!7yv'))/0x2)+parseInt(l1IIil(0x218,'mhIO'))/0x3*(parseInt(l1IIil(0x149,'sM1U'))/0x4)+parseInt(l1IIil(0x472,'^Ln8'))/0x5*(-parseInt(l1IIil(0x3fc,'scsQ'))/0x6)+-parseInt(l1IIil(0x19e,'ItMG'))/0x7*(-parseInt(l1IIil(0x34c,'mrz$'))/0x8)+parseInt(l1IIil(0x1b5,'*r6b'))/0x9+parseInt(l1IIil(0x202,'^TyT'))/0xa*(parseInt(l1IIil(0x174,'6TIZ'))/0xb)+-parseInt(l1IIil(0x3bf,'UUOv'))/0xc;}catch(iIlI1i){iiiII1=illili;}finally{liI111=IiIlI[l1IIl1]();if(Illi1<=liI11I)illili?III1?iiiII1=liI111:III1=liI111:illili=liI111;else{if(illili==III1['replace'](/[FWYXDtJlnqpufeRgENh=]/g,'')){if(iiiII1===I1lI1i){IiIlI['un'+l1IIl1](liI111);break;}IiIlI[l1iiIi](liI111);}}}}}(lIIi1i,l1iiIl,function(iII1Il,IIIliI,iII1Ii,iIlI1l,llIill,l1IIii,lIIi1I){return IIIliI='\x73\x70\x6c\x69\x74',iII1Il=arguments[0x0],iII1Il=iII1Il[IIIliI](''),iII1Ii=`\x72\x65\x76\x65\x72\x73\x65`,iII1Il=iII1Il[iII1Ii]('\x76'),iIlI1l=`\x6a\x6f\x69\x6e`,(0x17293b,iII1Il[iIlI1l](''));});}(0x2f80,0x4870d,Iii11l,0xc0),Iii11l)&&(il=l1iiII(0x19b,'fNER'));const jdCookie=require('./jdCookie'),notify=require(l1iiII(0x449,'zE#0')),common=require(l1iiII(0x264,'m9t)')),getToken=require('./utils/Rebels_Token.js'),{lzdz1_savePrize}=require('./utils/Rebels_savePrize.js'),opencard_draw=process[l1iiII(0x197,'^Ln8')][l1iiII(0x47b,'9zq4')]===l1iiII(0x1a8,'IvFA'),hotbreak=process[l1iiII(0x1a4,'Whju')][l1iiII(0x3a1,']aK3')]==='true',isNotify=process[l1iiII(0x27c,'!7yv')]['jd_opencard_notify']===l1iiII(0x3d6,'mhIO');let domains=l1iiII(0x261,'mdc)'),myCard=[];$[l1iiII(0x39a,']aK3')]='';const tasklist={0x1:l1iiII(0x189,'mhIO'),0x2:'[0-3岁]',0x3:'[3-6岁]',0x4:'[6-12岁]'};let cookie='',activityCookie='';const cookiesArr=Object[l1iiII(0x4b1,'GBlf')](jdCookie)['map'](l11iIl=>jdCookie[l11iIl])[l1iiII(0x428,'WD%4')](i11iIi=>i11iIi);!cookiesArr[0x0]&&($[l1iiII(0x4a4,'scsQ')]($['name'],l1iiII(0x390,'UrTl')),process['exit'](0x1));!(async()=>{const I1lI1I=l1iiII,IIIIll={'JYfKN':function(liiiii,II1I){return liiiii(II1I);},'gHBZc':I1lI1I(0x1ba,'*r6b'),'QEcTw':function(lI1111,Ilil1,IliII1){return lI1111(Ilil1,IliII1);},'JAVVN':I1lI1I(0x37d,'WD%4'),'hPrYk':function(l1iIi1,i1I1I){return l1iIi1!==i1I1I;},'ddqNr':I1lI1I(0x155,'81SL'),'gQLQd':function(llIil,llIii){return llIil+llIii;},'EhZNU':function(IIiiI1){return IIiiI1();},'TXhyh':function(IIIIi1,ii1IIl){return IIIIi1+ii1IIl;},'Igzgk':function(ii1IIi,I1ll1l){return ii1IIi>I1ll1l;},'kpxJp':'jcvii','nkDRa':function(I1ll1i,i11iII){return I1ll1i>=i11iII;},'Vrzus':I1lI1I(0x477,'xDnO'),'FJNvy':function(lI1Ii1,i1I11){return lI1Ii1+i1I11;},'ClNXK':function(I1I1i1,i1I1l){return I1I1i1*i1I1l;},'xfSfL':function(i1I1i,IIiiII){return i1I1i===IIiiII;},'nykIs':I1lI1I(0x443,'plcJ'),'WZvRf':function(llIiI,Ilill,Ilili){return llIiI(Ilill,Ilili);},'TysGL':function(I1ll1I,Iii1I1){return I1ll1I+Iii1I1;}};console[I1lI1I(0x357,']aK3')]('开卡类活动不会自动运行,请自行测试是否有水'),authorCodeList=await IIIIll[I1lI1I(0x3ba,'43!E')](getAuthorCodeList,'http://code.257999.xyz/jd_lzdz1_mybbphdyh.json');if(authorCodeList)console[I1lI1I(0x180,'ItMG')](I1lI1I(0x2fa,']KGr')),$['authorCode']=authorCodeList[random(0x0,authorCodeList[I1lI1I(0x2ae,'(LBk')])];else{if(IIIIll[I1lI1I(0x409,'gqR8')]===IIIIll[I1lI1I(0x31f,'5LeY')]){let i11iI1=[''];$['authorCode']=i11iI1[IIIIll[I1lI1I(0x37b,'plcJ')](random,0x0,i11iI1[I1lI1I(0x2ad,'sM1U')])],console[I1lI1I(0x3e0,'3wf&')]('\x0a服务状态异常请检查网络是否正常\x0a');}else iIII11[I1lI1I(0x39f,'^Ln8')]('❓'+IiI1i+'\x20'+llll1[I1lI1I(0x313,'^TyT')](lil11l));}$[I1lI1I(0x206,'UUOv')]=IIIIll[I1lI1I(0x1be,'fNER')],$['shareUuid']=$[I1lI1I(0x3b7,'!cHb')],$[I1lI1I(0x2e5,'l^GI')]=I1lI1I(0
// 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