2024-07-06 12:23:46 +08:00
|
|
|
|
/*
|
|
|
|
|
不会自动运行,请在有水的时候运行
|
|
|
|
|
|
|
|
|
|
//export jd_opencard_break="true" //IP限制后继续执行(true/false)
|
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2024-07-16 00:24:38 +08:00
|
|
|
|
const $ = new Env('轻松育儿集卡礼')
|
2024-08-01 17:46:05 +08:00
|
|
|
|
const _0x4ac801=_0x25aa;(function(_0x2689a7,_0x25d45f){const _0x27dc46=_0x25aa,_0x37ce2b=_0x2689a7();while(!![]){try{const _0x42d9b7=-parseInt(_0x27dc46(0x327,'Miin'))/0x1+-parseInt(_0x27dc46(0x29e,'f)Jn'))/0x2+-parseInt(_0x27dc46(0x250,'Ue%]'))/0x3*(parseInt(_0x27dc46(0x395,'7OkO'))/0x4)+-parseInt(_0x27dc46(0x1d2,'n84p'))/0x5+parseInt(_0x27dc46(0x194,'pM[#'))/0x6+-parseInt(_0x27dc46(0x198,'wfqq'))/0x7*(parseInt(_0x27dc46(0x1f1,'^OvK'))/0x8)+-parseInt(_0x27dc46(0x31a,'opkV'))/0x9*(-parseInt(_0x27dc46(0x312,'V(7U'))/0xa);if(_0x42d9b7===_0x25d45f)break;else _0x37ce2b['push'](_0x37ce2b['shift']());}catch(_0x139fbc){_0x37ce2b['push'](_0x37ce2b['shift']());}}}(_0x3568,0xdd135));const jdCookie=require(_0x4ac801(0x37a,'eFAa')),notify=require(_0x4ac801(0x20e,'M1##')),common=require('./utils/Rebels_jdCommon.js'),getToken=require(_0x4ac801(0x1b5,'(vIT')),{lzdz1_savePrize}=require(_0x4ac801(0x3a3,'@m%a')),opencard_draw=_0x4ac801(0x2f7,'h1e1'),hotbreak=process[_0x4ac801(0x267,'SV$D')][_0x4ac801(0x242,'OK]c')]==='true',isNotify=process[_0x4ac801(0x21d,')i1M')][_0x4ac801(0x33b,'5ylK')]==='true';let domains='https://mybbphdyh-2357-dz.isvjcloud.com';function _0x25aa(_0x27114d,_0x357320){const _0x356838=_0x3568();return _0x25aa=function(_0x25aa88,_0x2ef2cb){_0x25aa88=_0x25aa88-0x169;let _0x2c015c=_0x356838[_0x25aa88];if(_0x25aa['KnaUfE']===undefined){var _0x4f2286=function(_0x339ed9){const _0x30b3f7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x312fb7='',_0x880bc2='';for(let _0x9c9360=0x0,_0x234383,_0x2697ed,_0x2d081d=0x0;_0x2697ed=_0x339ed9['charAt'](_0x2d081d++);~_0x2697ed&&(_0x234383=_0x9c9360%0x4?_0x234383*0x40+_0x2697ed:_0x2697ed,_0x9c9360++%0x4)?_0x312fb7+=String['fromCharCode'](0xff&_0x234383>>(-0x2*_0x9c9360&0x6)):0x0){_0x2697ed=_0x30b3f7['indexOf'](_0x2697ed);}for(let _0x58e24f=0x0,_0x2851b5=_0x312fb7['length'];_0x58e24f<_0x2851b5;_0x58e24f++){_0x880bc2+='%'+('00'+_0x312fb7['charCodeAt'](_0x58e24f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x880bc2);};const _0x54b844=function(_0x362372,_0x350b2f){let _0x12beea=[],_0x13fe55=0x0,_0x102b70,_0x4aaecc='';_0x362372=_0x4f2286(_0x362372);let _0x5ad43f;for(_0x5ad43f=0x0;_0x5ad43f<0x100;_0x5ad43f++){_0x12beea[_0x5ad43f]=_0x5ad43f;}for(_0x5ad43f=0x0;_0x5ad43f<0x100;_0x5ad43f++){_0x13fe55=(_0x13fe55+_0x12beea[_0x5ad43f]+_0x350b2f['charCodeAt'](_0x5ad43f%_0x350b2f['length']))%0x100,_0x102b70=_0x12beea[_0x5ad43f],_0x12beea[_0x5ad43f]=_0x12beea[_0x13fe55],_0x12beea[_0x13fe55]=_0x102b70;}_0x5ad43f=0x0,_0x13fe55=0x0;for(let _0x4ab4d4=0x0;_0x4ab4d4<_0x362372['length'];_0x4ab4d4++){_0x5ad43f=(_0x5ad43f+0x1)%0x100,_0x13fe55=(_0x13fe55+_0x12beea[_0x5ad43f])%0x100,_0x102b70=_0x12beea[_0x5ad43f],_0x12beea[_0x5ad43f]=_0x12beea[_0x13fe55],_0x12beea[_0x13fe55]=_0x102b70,_0x4aaecc+=String['fromCharCode'](_0x362372['charCodeAt'](_0x4ab4d4)^_0x12beea[(_0x12beea[_0x5ad43f]+_0x12beea[_0x13fe55])%0x100]);}return _0x4aaecc;};_0x25aa['cwgvJt']=_0x54b844,_0x27114d=arguments,_0x25aa['KnaUfE']=!![];}const _0x340a88=_0x356838[0x0],_0x460219=_0x25aa88+_0x340a88,_0x3d5614=_0x27114d[_0x460219];return!_0x3d5614?(_0x25aa['LavCWr']===undefined&&(_0x25aa['LavCWr']=!![]),_0x2c015c=_0x25aa['cwgvJt'](_0x2c015c,_0x2ef2cb),_0x27114d[_0x460219]=_0x2c015c):_0x2c015c=_0x3d5614,_0x2c015c;},_0x25aa(_0x27114d,_0x357320);}const tasklist={0x1:'[孕检]',0x2:_0x4ac801(0x362,')RlX'),0x3:_0x4ac801(0x302,'X!uh'),0x4:_0x4ac801(0x25b,'xsl3')};let cookie='',activityCookie='',originCookie='';const cookiesArr=Object[_0x4ac801(0x2c2,'V(7U')](jdCookie)[_0x4ac801(0x319,')i1M')](_0x54b844=>jdCookie[_0x54b844])['filter'](_0x339ed9=>_0x339ed9);!cookiesArr[0x0]&&($[_0x4ac801(0x179,'OK]c')]($[_0x4ac801(0x268,')i1M')],_0x4ac801(0x17b,'BD9(')),process[_0x4ac801(0x320,'ilLH')](0x1));function _0x3568(){const _0xe061c=['W6aBWRW/kmowW49EWQhdTvVcOW','W4LrzW','5OU85AsS6i+v5B2BW7JdTEEONoAZIq','lmo5WPLL','ermm','g8omW67cMa','6iY55B2v5yYV54U2aa4','tg9VWPzdW4O','lSkSxN8Cya','W4hcNCo7W5zkW4ebW5W','tSkTDmk3W6ZdPSktW7O2W4nCqNO','WRNcQSkgF8oGWOhcHHZcMhRdKuK','W5zgWRpcVmkyWQXJxmoRWRi','swvLWPnWWPhdMmouiq','W5bIprS','6i+
|
2024-07-06 12:23:46 +08:00
|
|
|
|
// 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
|