faker3/jd_3c_draw.js

15 lines
138 KiB
JavaScript
Raw Normal View History

2024-12-09 00:38:39 +08:00
/*
活动名称3C抽奖提现
活动链接https://prodev.m.jd.com/mall/active/fKW365QTACmt4i6Dmq5v3jTfqv4/index.html
活动变量jd_3c_task //是否做任务获取次数,默认开启
cron:1 1 1 1 *
*/
const $ = new Env('3C抽奖提现')
2024-12-12 14:33:07 +08:00
function qzOoEp(){}var qEyEBCk=Object['defineProperty'],iEOjrVu,j4nOfQ6,oYMrEBL,wM9ZHie,P6RyWah,yamYO_,wmf4FEs,g_8uA5,WSR8Oy,lfj5lN,B74XJFz,I9dPBB,fqvjPd7,riIRc8y,cZtr7MU,B5BKdX,yN9GnC3,GJNkrzz;function ZjHYuW(qzOoEp){return iEOjrVu[qzOoEp>0x3?qzOoEp>0xc3?qzOoEp+0x1f:qzOoEp<0xc3?qzOoEp<0x3?qzOoEp-0x18:qzOoEp-0x4:qzOoEp+0x58:qzOoEp+0x32]}qzOoEp(iEOjrVu=WdcmUX(),j4nOfQ6=QkE0Owu((qzOoEp,qEyEBCk)=>{return qEyEBCk(qzOoEp())},0x2)(VuFvCv8,tsp4A6));var OMN7sMk=[],hfWzP9C=['\u0062\u0025\u007e\u007a\u004d\u0042\u0051\u002f\u0028',E4XMhK0(ZjHYuW(0x1f)),'9|BTMLJjR','\u006c\u0077\u0071\u0037\u0021\u005e\u0044\u003d',E4XMhK0(ZjHYuW(0x2a)),E4XMhK0(0x2),'dakXX^u','\u0034\u0063\u007b\u005b\u0033\u0073\u006c\u004e\u006a\u007b\u0058\u0046\u006e\u004c\u006a',E4XMhK0(0x3),'4>q&K','Tua&','\u0031\u0035\u002f\u006c\u0033\u0033\u0022\u0064\u0049\u007d\u0042\u0067\u0021\u007e\u007e',E4XMhK0(ZjHYuW(0xbc)),E4XMhK0(ZjHYuW(0x9f)),E4XMhK0(0x6),'15/l33vj98ilo.','\u0031\u0035\u002f\u006c\u0033\u0033\u004e\u0050\u0039\u0037\u006f\u006b\u004d\u005e\u0051\u0070\u0026\u007a',E4XMhK0(0x7),E4XMhK0(0x8),'\x49\x54\x38\x2e\x35','\x31\x35\x2f\x6c\x33\x33\x76\x6a\x3f\x53\x26\x77\x7a','\u0066\u0030\u002e\u0047\u005a\u005e\u005f',E4XMhK0(0x9),'\u0075\u0025\u006d\u0047\u0069\u0041\u007d\u0040\u0023','\x35\x35\x3a\x42\x56\x47\x43\x60','\u0062\u007e\u004f\u0022\u0042','\u007a\u002e\u0064\u0079','\u0075\u0025\u0048\u0079\u0074\u005e\u003a\u0060',E4XMhK0(0xa),E4XMhK0(ZjHYuW(0x12)),'\x54\x60\x3b\x72\x39\x71\x49\x2c\x5d\x42\x5b\x56\x6e\x39\x5e\x40\x72\x37\x52\x2c\x5d\x78\x64\x6e\x58\x47\x74\x62\x57\x75\x71\x4c\x7e\x74\x73\x5a\x58',E4XMhK0(0xc),'cJ=y','\x60\x2e\x71\x74\x58','C~8&pd{2Q7vo%+|{jz','\u0025\u004a\u003b\u0076\u0071\u0041\u006a\u0060',E4XMhK0(0xd),'\u005b\u007e\u004e\u0047\u0022\u0040\u0025\u0060','\u002b\u0075\u0050\u005a\u0077\u0045\u005f','\x50\x7e\x21\x47\x62\x22\x50\x55\x2b\x52\x56',E4XMhK0(0xe),'\x43\x7e\x21\x47\x62\x22\x50\x55\x2b\x52\x54\x5a\x25\x2b\x25\x7b\x26\x7a',E4XMhK0(ZjHYuW(0x24)),E4XMhK0(0x10),'\u006a\u007e\u006d\u0047\u0048\u0021\u0070\u0050\u0023','\u0037\u0049\u0031\u005a\u0047\u0040\u004e\u0060','\x48\x25\x5b\x65\x3f\x44\x58\x6c\x6c\x4f',E4XMhK0(0x11),E4XMhK0(0x12),E4XMhK0(ZjHYuW(0x35)),'\x43\x7e\x2a\x74\x62\x5e\x61\x7d\x3f\x53\x44\x36\x7a',ZjHYuW(0x9),'\u0028\u003a\u0063\u0074\u0067\u0047\u0028\u007d\u0049\u007d\u0021\u006f\u0068\u005e\u0066\u0075',ZjHYuW(0x10),'/0!Gao_','\x4c\x7a\x79\x44\x6f\x21\x2f\x50','u%}tNez$(','|J}tX','\x4b\x7e\x62\x44\x61\x66\x5d\x64\x3e\x4f','\x4d\x21\x52\x65\x64\x40\x5f',E4XMhK0(0x14),'HrI=t^%d>O','\x78\x4a\x38\x41\x2a\x4d\x28\x40\x23','\x2f\x30\x3f\x26\x73\x6d\x52\x3f\x3e\x69','\x73\x23\x7d\x74\x59\x65\x48\x60',E4XMhK0(0x15),E4XMhK0(0x16),E4XMhK0(ZjHYuW(0x36)),'\u0043\u007e\u0038\u0026\u0058\u0022\u002f\u0036\u0031\u0055\u0076\u006f\u0025\u002b\u007c\u007b\u006a\u007a','\x58\x4a\x4d\x79\x50\x5e\x2f\x64\x23',E4XMhK0(0x18),E4XMhK0(ZjHYuW(0x28)),'\x71\x2e\x6a\x79\x4b',E4XMhK0(0x1a),E4XMhK0(0x1b),E4XMhK0(0x1c),'\x3d\x2e\x6d\x47\x51\x3e\x41\x6a\x28\x55\x56','\x4b\x7c\x28\x38\x74\x63\x26\x61\x4a\x5d\x50\x58\x76\x5a\x51','\x3d\x2e\x6d\x47\x51\x3e\x6d\x60\x65\x4f','\x3d\x2e\x6d\x47\x6d\x67\x36\x50\x35\x3b\x24\x36\x5b\x25\x35\x31','\u003d\u002e\u006d\u0047\u0026\u0048\u0046\u006a\u0048\u0052\u0067\u0036\u0023\u0078',E4XMhK0(0x1d),E4XMhK0(0x1e),'\x2f\x30\x55\x79\x51\x64\x32\x7b\x32\x6b\x23\x32\x30\x56\x49\x7c\x22\x61\x30','\x3d\x2e\x6d\x47\x6d\x67\x53\x46\x5d\x4e\x35\x67\x71\x56\x6d\x63',E4XMhK0(0x1f),'s;6$gs)6,Ng6z','AT974*[E;<tyITKS.Qk',E4XMhK0(0x20),'\u0051\u0049\u0029\u0041\u0044\u0067\u006e\u0066\u0078',E4XMhK0(0x21),'\u004b\u007c\u0074\u0035\u0079\u0040\u002e\u004b\u0078\u0031\u002a',ZjHYuW(0x6),'\u004b\u007c\u0028\u0038\u0074\u0063\u0040\u004c\u007b\u0031\u0063\u002c\u0076\u0063\u004c\u0059\u007c\u0051\u006b',E4XMhK0(ZjHYuW(0x5)),E4XMhK0(0x23),E4XMhK0(0x24),'\x28\x3a\x45\x4b\x3f\x40\x22\x6a\x6f\x4f\x78\x32\x67\x2b\x3f','\u003b\u0066\u0064\u0042\u0056\u003f\u003b\u004e',E4XMhK0(ZjHYuW(0x46)),'\u003d\u002e\u006d\u0047\u0072\u0049\u0053\u0050\u0038\u007d\u003d\u0067\u0028\u0056\u0069','\x75\x25\x7d\x74\x7e\x40\x78\x40\x
2024-12-09 00:38:39 +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