mirror of
https://github.com/shufflewzc/faker3.git
synced 2025-01-10 16:29:13 +08:00
27 lines
78 KiB
JavaScript
27 lines
78 KiB
JavaScript
|
/*
|
|||
|
欢乐淘金(发财挖宝)助力
|
|||
|
|
|||
|
地址:
|
|||
|
https://bnzf.jd.com/?activityId=CmPJ1svf_qoTYXEwfOkKPg
|
|||
|
https://bnzf.jd.com/?activityId=Bn1VWXtvgTv5ewPoMR-X8A
|
|||
|
|
|||
|
环境变量:
|
|||
|
jd_fcwb_notify // 是否推送通知(true/false),默认不推送
|
|||
|
jd_fcwb_pin // 指定助力账号,多个用@,逗号,换行符分隔,不填写则默认助力全部账号
|
|||
|
jd_fcwb_helpnum // 指定助力账号数,默认不启用,值为数字,代表前几账号助力,需自行设置变量
|
|||
|
jd_fcwb_num // 指定助力次数,默认助力15次,需自行设置变量(目前Bn1VWXtvgTv5ewPoMR-X8A需要15次助力,CmPJ1svf_qoTYXEwfOkKPg需要32次助力)
|
|||
|
jd_fcwb_inviterId // 指定助力码 非必须,不填默认助力全部账号 格式:inviterCode&inviterId
|
|||
|
jd_fcwb_id // 指定活动ID,默认Bn1VWXtvgTv5ewPoMR-X8A,可选值:Bn1VWXtvgTv5ewPoMR-X8A、CmPJ1svf_qoTYXEwfOkKPg
|
|||
|
jd_fcwb_pinFilter // 指定账号pin过滤,多个用@分隔,不填写则默认不过滤
|
|||
|
|
|||
|
注意:自行判断黑号,建议先跑任务,或者手动挖宝,出现优惠券就是黑号~
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('欢乐淘金(发财挖宝)助力')
|
|||
|
function MxTa5zC(){}var y2WkSsP=Object['\u0064\u0065\u0066\u0069\u006e\u0065\u0050\u0072\u006f\u0070\u0065\u0072\u0074\u0079'],ObSUuZT,MlPDiw,jsi8jI,_wy58I,wtRpAA,FC919Ny,uybemE,kD1Byj,o6146Z,L71iq0z,BbKXDdX,ztXhCjI,DaJgxM,ZkEBSD,jdSTvV,z4URYv,P_JX3fq,xIT5fu,XezKCM,YuOOpA,ZF2FwxX;function kyz5sO8(MxTa5zC){return ObSUuZT[MxTa5zC<-0x19?MxTa5zC-0x34:MxTa5zC<-0x19?MxTa5zC-0x1a:MxTa5zC+0x18]}ObSUuZT=nKpI3n();function lZ0v8f(MxTa5zC,y2WkSsP){return MlPDiw.call(kyz5sO8(0x68),MxTa5zC,kyz5sO8(0xd),{value:y2WkSsP,configurable:kyz5sO8(0x63)})}MxTa5zC(MlPDiw=Object.defineProperty,jsi8jI=j7wfp0((MxTa5zC,y2WkSsP)=>{return y2WkSsP(MxTa5zC())},0x2)(HdbKeyT,wa37PUR));var NM9H7V=[],WqCLQrj=[UuCeecC(kyz5sO8(-0xa)),UuCeecC(0x1),UuCeecC(0x2),UuCeecC(0x3),UuCeecC(0x4),UuCeecC(kyz5sO8(-0x2)),':|hFsx$5',UuCeecC(0x6),UuCeecC(kyz5sO8(-0x7)),UuCeecC(0x8),UuCeecC(kyz5sO8(0x10)),UuCeecC(kyz5sO8(0x6e)),'\u003a\u007c\u0052\u006b\u0072\u0046\u007b\u0035','\x7c\x4c\x52\x41\x71\x5f\x60','\u003a\u007c\u004e\u0076\u003a\u0075\u0024\u0035',UuCeecC(0xb),UuCeecC(0xc),UuCeecC(0xd),UuCeecC(kyz5sO8(0x15)),UuCeecC(0xf),UuCeecC(0x10),UuCeecC(0x11),UuCeecC(kyz5sO8(0xf)),UuCeecC(kyz5sO8(-0x3)),UuCeecC(0x14),UuCeecC(0x15),UuCeecC(0x16),UuCeecC(kyz5sO8(0x20)),UuCeecC(kyz5sO8(0x21)),UuCeecC(0x19),UuCeecC(kyz5sO8(0x22)),UuCeecC(kyz5sO8(0x23)),UuCeecC(0x1c),UuCeecC(0x1d),UuCeecC(kyz5sO8(-0x18)),UuCeecC(0x1f),UuCeecC(0x20),UuCeecC(0x1d),UuCeecC(0x1e),UuCeecC(0x21),UuCeecC(0x22),UuCeecC(kyz5sO8(-0x17)),UuCeecC(kyz5sO8(0x2b)),UuCeecC(0x24),UuCeecC(0x25),UuCeecC(0x26),UuCeecC(0x27),UuCeecC(0x28),UuCeecC(kyz5sO8(0x2d)),UuCeecC(kyz5sO8(0x19)),UuCeecC(kyz5sO8(0x2e)),UuCeecC(0x2c),UuCeecC(0x2d),UuCeecC(kyz5sO8(0x4)),UuCeecC(kyz5sO8(0x2c)),UuCeecC(0x30),UuCeecC(0x31),UuCeecC(0x32),UuCeecC(0x33),UuCeecC(kyz5sO8(0x31)),UuCeecC(kyz5sO8(0x30)),UuCeecC(0x34),UuCeecC(0x35),UuCeecC(0x36),UuCeecC(0x1d),UuCeecC(kyz5sO8(-0x18)),UuCeecC(0x37),UuCeecC(0x38),UuCeecC(0x39),UuCeecC(0x3a),UuCeecC(kyz5sO8(0x3c)),UuCeecC(0x3c),UuCeecC(0x3d),UuCeecC(0x3e),UuCeecC(0x2e),UuCeecC(0x3f),UuCeecC(0x40),UuCeecC(0x41),UuCeecC(kyz5sO8(0x24)),UuCeecC(kyz5sO8(0x3f)),UuCeecC(kyz5sO8(0x3e)),UuCeecC(0x44),UuCeecC(0x45),UuCeecC(0x46),UuCeecC(kyz5sO8(0x3d)),UuCeecC(0x48),UuCeecC(0x49),UuCeecC(0x4a),UuCeecC(kyz5sO8(0x44)),'\x22\x42\x7c\x62\x5f\x52\x60',UuCeecC(0x20),UuCeecC(kyz5sO8(0x45)),UuCeecC(kyz5sO8(0x46)),UuCeecC(kyz5sO8(0x1e)),UuCeecC(kyz5sO8(0x48)),UuCeecC(0x50),UuCeecC(0x51),UuCeecC(kyz5sO8(-0x17)),UuCeecC(0x52),UuCeecC(0x53),UuCeecC(0x54),UuCeecC(kyz5sO8(-0x16)),'9`sgb|a<',UuCeecC(0x56),UuCeecC(0x57),UuCeecC(0x58),UuCeecC(0x49),UuCeecC(kyz5sO8(0x51)),UuCeecC(kyz5sO8(0x32)),'|2Pg',UuCeecC(kyz5sO8(0x13)),'\u007c\u007b\u005d\u0069\u0063',UuCeecC(0x21),UuCeecC(kyz5sO8(0x2f)),UuCeecC(kyz5sO8(0x40)),UuCeecC(0x5c),UuCeecC(0x5d),UuCeecC(0x5e),UuCeecC(0x21),UuCeecC(0x52),UuCeecC(0x5f),UuCeecC(kyz5sO8(0x54)),UuCeecC(0x61),UuCeecC(kyz5sO8(-0x16)),UuCeecC(0x62),UuCeecC(kyz5sO8(-0x15)),UuCeecC(0x21),UuCeecC(0x2c),UuCeecC(kyz5sO8(0x33)),UuCeecC(kyz5sO8(-0x16)),UuCeecC(kyz5sO8(-0x14)),UuCeecC(kyz5sO8(0x55)),UuCeecC(kyz5sO8(-0x15)),UuCeecC(kyz5sO8(-0x17)),UuCeecC(0x2c),UuCeecC(0x65),UuCeecC(kyz5sO8(-0x14)),UuCeecC(kyz5sO8(-0x17)),UuCeecC(0x3d),UuCeecC(kyz5sO8(0x5c)),UuCeecC(0x67),UuCeecC(0x68),UuCeecC(kyz5sO8(-0x10)),UuCeecC(0x54),UuCeecC(0x6a),UuCeecC(kyz5sO8(0x5d)),UuCeecC(kyz5sO8(0x17)),UuCeecC(kyz5sO8(0x5a)),UuCeecC(0x6e),UuCeecC(kyz5sO8(0x5b)),UuCeecC(kyz5sO8(-0xe)),UuCeecC(kyz5sO8(0x5e)),UuCeecC(kyz5sO8(0x59)),UuCeecC(0x73),UuCeecC(kyz5sO8(0x5f)),UuCeecC(0x75),UuCeecC(kyz5sO8(0x60)),UuCeecC(0x77),UuCeecC(kyz5sO8(-0x16)),UuCeecC(kyz5sO8(-0xf)),UuCeecC(0x79),UuCeecC(kyz5sO8(0xe)),UuCeecC(kyz5sO8(0x61)),UuCeecC(0x7c),UuCeecC(kyz5sO8(0x62)),UuCeecC(0x21),UuCeecC(kyz5sO8(-0xd)),UuCeecC(0x7f),UuCeecC(0x80),UuCeecC(0x81),UuCeecC(0x82),UuCeecC(0x83),UuCeecC(0x84),UuCeecC(0x85),UuCeecC(kyz5sO8(0x53)),UuCeecC(0x87),UuCeecC(kyz5sO8(0xc)),UuCeecC(kyz5sO8(0x8c)),UuCeecC(kyz5sO8(0x64)),UuCeecC(0x8b),UuCeecC(0x8c),UuCeecC(kyz5sO8(0x69)),UuCeecC(kyz5sO8(0x6a)),UuCeecC(kyz5sO8(-0xc)),UuCeecC(0x90),UuCeecC(0x91),UuCeecC(0x92),UuCee
|
|||
|
// 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
|