faker3/jd_mybbphdyh_give.js

12 lines
55 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-16 00:24:38 +08:00
const $ = new Env('轻松育儿集卡礼赠送卡片')
const _0x16908c=_0x26a4;(function(_0x2b6880,_0x53ec20){const _0x53b4ee=_0x26a4,_0x1d152c=_0x2b6880();while(!![]){try{const _0x152bb3=parseInt(_0x53b4ee(0x3d6,'%S7i'))/0x1*(-parseInt(_0x53b4ee(0x41e,'FzNP'))/0x2)+parseInt(_0x53b4ee(0x434,'GQfe'))/0x3*(-parseInt(_0x53b4ee(0x3c0,'BfI$'))/0x4)+-parseInt(_0x53b4ee(0x236,'b&Gb'))/0x5+-parseInt(_0x53b4ee(0x43f,'hWQK'))/0x6+parseInt(_0x53b4ee(0x3cb,'Z*J)'))/0x7*(parseInt(_0x53b4ee(0x3e9,'[cB2'))/0x8)+parseInt(_0x53b4ee(0x2f5,'MDOE'))/0x9*(parseInt(_0x53b4ee(0x389,'b&Gb'))/0xa)+-parseInt(_0x53b4ee(0x421,'ZyWv'))/0xb*(-parseInt(_0x53b4ee(0x3e0,'Or9l'))/0xc);if(_0x152bb3===_0x53ec20)break;else _0x1d152c['push'](_0x1d152c['shift']());}catch(_0x425de5){_0x1d152c['push'](_0x1d152c['shift']());}}}(_0x26b8,0x4dac1));const jdCookie=require(_0x16908c(0x433,'1&A9')),notify=require('./utils/Rebels_sendJDNotify'),common=require(_0x16908c(0x288,'x24G')),getToken=require('./utils/Rebels_Token.js'),{lzdz1_savePrize}=require(_0x16908c(0x435,'6nou')),opencard_draw=process[_0x16908c(0x354,'OqMT')]['jd_opencard_jdDraw']===_0x16908c(0x44f,'MDOE'),hotbreak=process[_0x16908c(0x301,'Jg*g')][_0x16908c(0x2e3,'Jg*g')]===_0x16908c(0x353,'hWQK'),isNotify=process[_0x16908c(0x40f,'6nou')][_0x16908c(0x23d,'ldx@')]===_0x16908c(0x21c,'x6WQ');let domains=_0x16908c(0x29b,'nEaj'),myCard=[];$[_0x16908c(0x2d4,'x6WQ')]='';const tasklist={0x1:_0x16908c(0x3ae,'ldx@'),0x2:'[0-3岁]',0x3:'[3-6岁]',0x4:_0x16908c(0x207,'74g[')};let cookie='',activityCookie='';function _0x26b8(){const _0x30bb63=['ltuLfxvTWO7dOCkd','mI4W','W7nnxG','WR1HEd3cUYxcIEw9PEwMHUocGos7UUs7NEI2RowmVG','eG5aW5e','W4dcR8oCCCktWQVdTqpcGHtcKmou','W5pcPfL7ffa2EW','rSkVzmkgz8oS','osqJp3rLWOZdRSkFw8k5xSo4fW','8yUnO8kZ','W5NcUJDzW5SF','WR0BW6/cPmkgW7yb','zSkZWR1z','FCkRW4G','WOxcMCo2qGmTWRnw','vGHbxaddHCkfWOvMWQhcGb8','W7rHWPFcNG','WQKMWPZcHvvgW6q','WQ8oWRhdHmoiWPeCcmkyW7hcQ2i0vSkajSk3qSooWPZcJ1TndgNdOW','AGZcH0z+pCkPlSoI','BbBcGLfSemk1kSoX','jSkieW','yg1KW5NdTuXoW5FdImkUbK3cU8oaW6bFW5/cUxXGcSo0ccpcJ8kvt8k7','z8oBu8oSFW','W7BcI8oWrci+WOTgs8knW6y','776t5BEq5OIP5yMg6iwY5yIe55M76k+t5Ps76lEZ5zYy5z61W6NdSq','WPnvW4b4W4q+WOirW5tcRq','WRm9daC8kSo3qZqIW7JcUW','WPVdTsO','WRhcICoNwtSLWQPkDSkqWQT/','WPdcVIThW71dW4FdHgucW7lcHq','WPndW4b5W50LWRuhW7NcRmky','cH3dRSoSnbv2ACkHtCkPW7S','W61dv8k9W7FdGq','Cmk6FqaYhwi','t8kMzW','WPxdICk/htRcMXGW','j315W4FdOqWjWPhcISkJbvZcOmojW6DsWPJdTYe+uSkSs2JcNmovt8k8W7nSWQFdTmoDFmkCnuiEza','WRKEW43cUSkR','WQxcRCogmCoqotL2','W5pcPHu','W61oWQm','FCo0WQVdVmo3nmoxbxVdPmkBWPr6W6KgWObRW7fFhCkehgacl8kCzSkBWPRcMmkbjhhdN8orW5WYW4NdJu17eq/cKXja','WPBcSCorbSo/oZW','W7LUWOFcMJpdUNO','W5RcPXBcSYDsiW','W7mbW4m','WPaUWPrwu31/WQhcHIa','W5/cTu5XgvaPEG','W5pcSSogqmkkWOq0W4JcIG','lSkvfCkOm0yK','lca5ghrN','pgXJW5pdKvDuW5RcTCk/bfhcOSofW49cWOpcRG','WQ8WWPNcUravW7rSWQRdTgJcOSkeW73dM8k+WPu','W6fYhu84W6jYW5jeW5apWR/dVq','WQX/EMH2WRldUq','WPNcSmoal8oRpdfG','WOFdRZ4Y','W73LTAJMNytLJlVNIQdcPa','tMiGW6m','lEACGEwlQoEiOEAaGow9OEw4M++9PoISUUAGLoACOoE+OEE7OEAzKEwtTUAVLEw5LKC','W7XqWOhcTSkvW7ddQv1LyHjc','WPzsW5vNW6GJWQ8kW5xcPSor','omkcb8kQeuC','W7LUWOFcMJm','arFdVq','CSoBsmo5AhToWPGgxYpcJW','amogWOuHWORdTxWfwColyW','sq1xwG','s8kPFSkizCoTWPibd8k8wq','W4ZcRCoy','WRhcICoNxZ8zWQTArG','5OIb5AAc6i6l5B6cBre','WOmOWPnkswa','sSkNW5lcGc4OnxlcRCoiW6DZWPmc','Bmkgf8kReKeCWQZcPmkGW6q','grNdQCokgZDZEmku','hs8Wdq','WPyOWPr3rgDiWRNcVsa','WRbgumk3W7/dLMGkiSk5uCkxWOhcI8oBWPRdTSooWPznDSomt8kWw8oPxuraBGDoWPRdM8ktW5W6','AKBcMercDSk2W4RcJSkN','WRObW6/cPmkgW7yb','WRKBW7W','W7FcGCkbpW','WQrWbKG1','W7vnExLzs8ky5BYn5AAG44g55lIr5lU+6lA05yYw44ko','nsqYddzRWOVdRSkmAa','WOtcHCo4vsm','8y6IUvlNQzhMSyK','W4PrxmkRW5BdJw0g','WQerW6pcLSofW78sW4unndzvWRxdGCo/CddcRWRcKdG6fmo7W43dPSo2W4NdJCknmgLWzJddJImup20yWQ3dQY3cTu/dIYP8WRVdPSk/tSkOWPRcOffaw0BdNCoiWRZcPZRdP8kVia/cHSkTWOPPc37dRwhdK1alWQtdL8kKaSk+yxi5WRJdKH7cJraVgh9OW4HtW7qnWQXHW7JdTZ7dJbhdRYXLyKyyta/dNSkAW6VcLSocW77dPmklWP/cQCozzG8QW7FdJvXTDa','W7DdsSkAW7NdNMqVzmkNxa','W7PnWP3cV8koW5O','kCkgbSk7m1iKWRW','wCkVzSkeCmoWWOmCcCkZt8kpW41fW5BcGW','xrLquW','WQSRWOlcRxjuW71S','jJ04gSoBj1pcOq','W7TdtCk4','BbBcKuP2m8kUlCo/','BmkbbSkWegCWWQNcQmo5WPHtW5pdNhFdHSoluSkupLyPxSoz
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