faker3/jd_cbdLottery.js

13 lines
28 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
活动名称CDB京豆福利站
cron:1 1 1 1 * jd_cbdLottery.js
*/
const $ = new Env('CDB京豆福利站')
var il='jsjiami.com.v7';const IllI11=iii1II;(function(i11I1i,IillIl,llliil,liIl1,II1lll,II1lli,ii1I1I){return i11I1i=i11I1i>>0x8,II1lli='hs',ii1I1I='hs',function(IiIl,IiIi,iI1ll1,IlI1Il,l1il1l){const llliii=iii1II;IlI1Il='tfi',II1lli=IlI1Il+II1lli,l1il1l='up',ii1I1I+=l1il1l,II1lli=iI1ll1(II1lli),ii1I1I=iI1ll1(ii1I1I),iI1ll1=0x0;const liIil=IiIl();while(!![]&&--liIl1+IiIi){try{IlI1Il=-parseInt(llliii(0x170,'!#TN'))/0x1+-parseInt(llliii(0x152,'mm]M'))/0x2+parseInt(llliii(0x1b5,')o8k'))/0x3+parseInt(llliii(0x146,'nwf['))/0x4*(-parseInt(llliii(0x16c,'YK*C'))/0x5)+parseInt(llliii(0x167,'nwf['))/0x6+parseInt(llliii(0x127,'m0em'))/0x7+parseInt(llliii(0x14a,'4]^H'))/0x8*(parseInt(llliii(0x17c,'TfiU'))/0x9);}catch(IllI1I){IlI1Il=iI1ll1;}finally{l1il1l=liIil[II1lli]();if(i11I1i<=liIl1)iI1ll1?II1lll?IlI1Il=l1il1l:II1lll=l1il1l:iI1ll1=l1il1l;else{if(iI1ll1==II1lll['replace'](/[CNFwbxOyVRSTKLXMeEGU=]/g,'')){if(IlI1Il===IiIi){liIil['un'+II1lli](l1il1l);break;}liIil[ii1I1I](l1il1l);}}}}}(llliil,IillIl,function(liIii,II1ll1,IlI1Ii,i11I1I,l1il1i,ll1,iI1llI){return II1ll1='\x73\x70\x6c\x69\x74',liIii=arguments[0x0],liIii=liIii[II1ll1](''),IlI1Ii=`\x72\x65\x76\x65\x72\x73\x65`,liIii=liIii[IlI1Ii]('\x76'),i11I1I=`\x6a\x6f\x69\x6e`,(0x165360,liIii[i11I1I](''));});}(0xbe00,0x8e081,Iii11l,0xc0),Iii11l)&&(il=`\x798`);const jdCookie=require(IllI11(0x157,'w4Cv')),common=require(IllI11(0x1ce,'NGFa')),notify=require('./utils/Rebels_sendJDNotify'),isNotify=![];let cookie='';function Iii11l(){const ii1I1i=(function(){return[...[il,'VXVjLFsUVjiTwGamMyxi.wcweoKEmCy.SvRbC7ON==','nSouWRCwWQm','numL','WRWtW53dLcWa','n2e6hXqmrgzuWRJdQIa','r8knW4hcRSofW54','qSkvWPX0Dq','WQTDsapcICkqzW','W6lcQIRcJ8kb','WONdMYNdQa0','gCohWP7cOa','AIK1kc/dVW','lSo6WPejbW','Emo9WRO','5OIg5As95Asu6lsX77Y9','WOddNSo+','6lst5yYp5Pwp5PAJ','aLVdISo8Cq','WQrIWOlcPSkIW6PnwG','wmkDW5ZcMmokW53dPW','W5/cGSkHfSkrnHJdNSkkW4xdQ07dGW','uXz8Eum','fConWPhcOsBdHNi','W4OEqgzvgCkNl0tdVSkw','ggmzf8kJWQm5','WOOqhgrWW5ldGJTFWPW','W496W4hdQSoSW6hdGXVcMb5TwSowWPLg','W7VcQSkU','qYldJmkZWO3cSq','ofKYqmk1','WRmtW4FdHIavWOLOWRxdLxhcQmkuWQNdGa','WQegeXqwESkL','W68ppG','qsxcSXFdV8oaWRJdPmo0W57cUq','vSkxW53cMa','hg4cmCkGWQ02WQq9W6FcHSo+l8krW7y','DZ8immkTW7GJANZcUW','tmoNWOvEW54','W45BqtBcOaqu','yCk0x2y','WR0DW5hdLYKGWPvBWOZdM0lcQCkqWPFdNa','aXTWW4pcTmo0bCk5WQWUgmkNWRTiFG','WQecpZmz','44oE5O6J56wD44gd6k6n5ywt6i215y6kW4XqdMZdTSo8','kLWLb8kR','4PYLWRJMN47OGB/MRyVNOBxLP4dNKRRcKG','WQfSWPtcQSkW','oCoYWP7dQ03dR1FdMHxdMSo0W4GnW6FdVa','WOFOR63MS4lLKOdLUBlcVG','Ds1Tt0Lorq','lmo3WPaf','igJdRSosmajCcK9G','bL7dGq','W77cJdJdJLu','WQH6dmoHtW','WRbqBt50WRbvWQtdIra','cghdPWNcHCkPqq','6lwp5y2V5Pse5PEk','i8oeWQSDaW','W4nYW4ddPmooW4FdIWO','p0ldG8o6uhRdG8o1','dhWs','W4FcNWJcNCkE','mmk0WRldI8oSW7tcQfvqWOxdV8kDW6O','j8oTyCoGqcXhWPeZWPxdHq','4P29W6ZMN7/OG5NMRAlNO4pLPRpNKODo','C8o0W63cUSk3WQm','lHTPW4tcKW','iCo6wgFcJCoyFxa+WOa','WODBWOxcVCkf','ghWenmoMW6qZWQ88W5tcKmoIl8oyWRO8W6C','cbz+W5lcU8oVfW','5OUx5AwN5AAx6lAT77Ye','W4XSW4ldVCoKW6JdKWi','WOnYWQX0cwhcLCkXWQC2W77cI8ob','zSoKW7FcS8k2WQddTwnGWRNdK8kDW7ZcTq'],...(function(){return[...['uhuqWO3cPq','sYxcQuBdLW','yIVcVmkuhdC','W4rBrGBcRGWAgMvbWOVdN2uh','gSoTWOBdGuD/WQe','vHvkAuO','WPNdIbv2W58','W7pOJklLJRJLJAVMLjZLPz7OTjRVVBdLJ4xLM7JVV5O','iMJdRCotuhqsgwXMmNrc','WRLJWOJcQmkaW69YwN/cN0fS','ud7cO2BdGCoN','pSolWOtcVXO','bqfTW5NcRa','WRZdS2RdMCk6W5DEW7/dGmo8','WPBdMCk0B8oayf/cTSkeW4pcHNhcP8k+W73cGmkeWP7dNmoiauFcUCk5smoWW4ldKZ3cUZTonmkYbCoEuCoDW5NcQCkrFCk4WRNdIa','gLddLmo7EW','W5NdQrlcIq','WPyJWRr+W57cRXFdGghdNJBcOq','dHxdHhC','AZ19x01AuW','WR5IWPxcOCkj','W7uad0xcU8kVEmoeWPJcVa','caxdGNBdQ8o8WPlcR8kxWQHLW5Kub8kR','W7BcPSkZWQm3rCkVW6dcNeG','W5xdQSoGxG','kSobWOOuWRG','wmkcWPrZqW','W7xdHNldHmkD','cYrRW4ZcKW','WOdcVSkLdGxdQmooW7iyhCoB','w8kty0JcIW','W6GbW5aPBW','W58MW60','WQCXWONcPCkQWOZcJow9R+wKN+obOEs6TEs4SUI2LEwmNa','o3ZdPmoWzG','W6hcGXj8CZRdICoammo+iCkeASowWRBcSWRcS8kEg8oxmbVdTbFdLZC1W7RdPKRcNmkZW7pdLCkBuHdcJ3beDSogW5hcThhcKdaTzmk9WQtdKSoQisJdMSoDDmoBW5aEhYD8CCoKyG/cUmoOW7TatSowwmkaW6hdNHlcQLhdSSkpmtqca3ZcSt5AW4RdJYhcQmk6W5DKWOv9W5DnnaVdNmkGk1pcISoR','W7znvZFcJWiCfG','WRJdPmo3D8o
// 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