faker3/jd_XinFarm_helpnum.js

17 lines
58 KiB
JavaScript
Raw Normal View History

2024-08-03 16:38:57 +08:00
/*
活动名称新东东农场助力指定次数
活动入口APP-我的-东东农场
执行功能指定助力次数顺序助力
环境变量JD_XinFarm_helpnum // 指定助力次数不指定默认30次
JD_XinFarm_zdcode // 指定助力码,多个助力码用@或换行符分隔(填写此变量后仅助力指定助力码,其他不再助力)
JD_XinFarm_notify // 是否推送通知true/false默认不推送
cron:1 1 1 1 * jd_XinFarm_helpnum.js
*/
const $ = new Env('新东东农场助力指定次数')
const _0x3fee9a=_0x388b;(function(_0xb21441,_0x254075){const _0x516ef3=_0x388b,_0x376d6d=_0xb21441();while(!![]){try{const _0x388cc1=parseInt(_0x516ef3(0x3bc,'Zfxs'))/0x1+-parseInt(_0x516ef3(0x347,'GVMs'))/0x2*(-parseInt(_0x516ef3(0x23a,'wGvm'))/0x3)+parseInt(_0x516ef3(0x3b7,'QjhM'))/0x4*(-parseInt(_0x516ef3(0x2ff,'2k)p'))/0x5)+-parseInt(_0x516ef3(0x356,'MMEq'))/0x6+parseInt(_0x516ef3(0x24c,'QYQR'))/0x7+parseInt(_0x516ef3(0x32f,'1yHx'))/0x8+parseInt(_0x516ef3(0x264,'2k)p'))/0x9*(-parseInt(_0x516ef3(0x3b1,'cocp'))/0xa);if(_0x388cc1===_0x254075)break;else _0x376d6d['push'](_0x376d6d['shift']());}catch(_0x287524){_0x376d6d['push'](_0x376d6d['shift']());}}}(_0x1f8b,0x4bc0a));function _0x1f8b(){const _0x4f0e55=['x0XDW6K','WORVVONOT5ZLH67MNQBMR67LI67LI6C','WO9KWO1H','FCoZWOZdNCkzjwRcPG','WPLxiW','WODQWP4','W43dOfTyW6xcQc4sWR3cV8ozecBcGW','WQFcR0jhWPCF','whpcOmoq','WODciCktWRvfgNDt','W6RcMmockG','WPHzna','qXr/xSol','s8kVCguCW5Lq','WPS6u8k6W43dQq','5yEm5z6d6AEl6Aoc5AwJ6lA8772a','FCoouG','WR93ua','qSoKWRRdMSkNngJcSCkLWOPFW4fIz2DeWOhdVGK','WO7dGSk2cSoi','W55czCo6v2e','dIJdSCkeWPHkbmkuaCkwW6q','aZxcV8kfW7xcTmkC','WRZcQ0vu','W5fTWRSNB157lN7dP8oiW5jzca0zW43dVCkiW4ZcMG','W5/cUZBcNa','i8oUk8k1WPbGWQddNSoraSkroaDZWPJdTre','wJddLCkTtSkJDCkJzSozW67dSmothG','bmoTW40','sSoPWPpdOSkKiW','WOtdMCkqFCok','W7TaASkgW4iQW7xdTHizW77dJhZcSfbWW6ddLKPVWQS','W4jnECkFW7G4W7ldHaSAW5W','m8owm8oum8oT','xSkYBg0EW5jaWQeQ','WQOrnSkOa8kvWRC','gu0Ic8kantXyg2Tjx8o9','W4LWaa','EoocNUE6IUAENoocPUAkNUAEREI2LowpGUEBKUwlQEwkQEAVGEAxR+wDQ+w3OEIaJowXME+8H+MbGUweRUAiTEIIQ1y','WPVcImkQW6hdRGy','zqVdGIZdVmkJW640WRxcLKdcHJFdJq','mEoaJoE4L+AFQUocVoAjUEADLoI3L+woJoEzO+wiHUwlI+ASSEAwHowESow1NoIaQ+wXI+++NUMaLEwgIUAlSEIISIK','Btm3eCoSW57dTLO','5yMl5yQ85As16lEhW6O','WQXKtIDCuSoJWPxcGq','WPBdQSkqwLi','fCk9W5tcKSoQEtRdVSoSW7m','tXr4','BmoHWO8WESkiW4y','tZddKSkBtCk4','wfGKu8owv1KR','yIG6hSoTW5pdVeDenW','wCooWOhcOd4jdtHLWPe9WOv6W4fRW71tlGFdTCoRWPxdOaBcQ08Xt8kfWOysdCkQWOmn','WOHIW7lcPsVcNZddTSks','tHTVwG','zmkwW7lcVmo4ECk8WO3cQdBdHLddOW','m8owoCos','WQddUmkbs3q4bCoj','wLDDW6tdU17dVCkWBd/dQG','WPNcNCkBW7xdQau','W54WW483uJhdLcVdK8kMW7WS','5yMD5yQT5AwI6lEFW7pKU6JMLPBLT6pNU7pORkZLPPZLJz7LIQ/LIyxOV5hKUlCc','fZNcSCkO','WOXVWPLiW4hcTa','W4DaySkxW4KT','sCkMW4xcL8kOo8oYkq','W4ZdPf15W5xcRJqpWOFcUmomoZRcNIJdT8k3wCkhE8oE','W6vDWQ0aW5rg','zteZeG','WOtdGCk+','W6FcJCocnmoVoSkiW5jYjmkuWPxdOujOW5jZ','aZxcV8kaWQxcTmkBW608Aa','44o96ls65yYD','wq96','W7TxWRKWW4Pa','W51Me8o7WPpcPqFdOSorW7mdWOi','CSkRF28vW7nz','BSkuW63cSmoIAmkPWOFcVIa','4PYCWPNMNBFOGyRMRlhNO7FLPz7NKBVcOG','W4bnF8kt','WPBdP8knxfqTpSojW7ZdOSoHaCkn','CSoaWONcPa0eh2q5W4X5','W4D5WROI','W6H1AmoHFhZcPSkQWRNdJSktkmoeWQvKnenCWOBcQG','Bmo+WPRcP3hdQW','W5xINjFdHa','WOzdpCk/WRvg','qmoQx03dPXldRsPSwSky','W4VcQdRcICoYna','sLyfsSo7x0q/DfxcQq','WQXKtIDCw8o/WOVcJCoMW590mCo6W6BcVgpdPaDWW6a','WO7dMmkqFq','WPPxpSkF','W7fFBSkaW6K4W6ZdKG','wSoIWP3dRq','W4BcGCkSeCotsxtdOIzGW57dUmkMW6JcUI/cS8o5W7JcQ8kPE8keD8kjwSk7','WQFcPuS','W5bfF8kEW4i','WOP1WPaUcsNdUd3cU8k1W4O2','W4vFEmkBW5qTW4/dGG8','u1ldICkVW4W8','wZW4gSo2W7FdSLL+','WPddPCkh','gmoTW5O','WRT3W6BdSa','W43LPPdKUBRNRzhKUlZORQBLRA/NMkZLUQJLIPBKUk/ML5qi','WQaDlCkpcCkdWQe','wCkVAMGv','W5bPWR0jx1bJnhldGSoDW6ffaW','W4BcT2ni','mNVdNSoMbCkSWRTGWO0M','zY7cMmkBo8kSWOv3WQW/','WOXQW7RcHqFcKa','5REG5yUv5ysL5y67W7fCW5VdNSkeWRrQ5OQB55IroUs6P+s4HowhPEwDGua','D8oQWPGGBSkZ','xeXp','WQ3dH8oEW6K','WRf8oLWwWOdcPMVcJwu','emoTlq','WRfQW7BcGXhcJG','m8owmSoCo8o8','WP9QWQP0fM7dVd4','W5hcONzBWPVdSZ7dI3VdSa','WPjio8kyW48OW7BcHbii','EmooWPW','hSoRn8kKW4pcTG','5yIE5yQj56cmW44','zaldMqddOq','hEIUOUAZO+wqO+w6TCoS','C8ktW6/cTCoZ','d8oTj8kK','WPqDo8oaWPDQWRhcG1jCWPJcNZ7dTaKN','eSoJj8kK','WPzoCmkoWQC','WQRcULXmWOy','W6ehWPv0WOGepSor','8yMRLMa/WQ4iW4JcQSkNWPbNW7JdSgBdJN0kd0jEmCkTiKRORPVMSitLPlROTR4c4P6WWQpML6pLKRpLUyBMLlRMJl0','W5dcS2zCWORdSX0','WOuWrW','WO7dMmkAE8otBa','F8ouwa','v3pcOW','vdVdL8khvCkPxCkLz8oQ','W5iwnSorW7BdPL8CW4Tfs8o6W5SMW7nsnwn3BhxcI8kgW6vPWR8ramkMW7mitSkGnN7dPSoSWO7cLxBdVN9YW7nFW7NcLsSyvCoQW4ZcMKpcH8oJWRRdMf3cV3/cLCk3W7C','q1zj','WPBdPmkkwLST','Bs7cN8kLm8kLWPu','WPNdPmkd','WQDGtZLIxCoP','WOzgCmkd','qmkSWO8','5yMa5yUe5Asr6lEQWO
// 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