faker3/jd_opencard_1122.js

18 lines
124 KiB
JavaScript
Raw Normal View History

2024-11-22 17:29:25 +08:00
/*
11.22-11.29 大牌暖冬季 送温迎好礼
不会自动运行请在有水的时候运行
//export jd_opencard_draw="3" //抽奖次数 3
//export jd_opencard_break="true" //IP限制后继续执行true/false
cron "1 1 1 1 *" script-path=jd_opencard_1122.js
*/
const $ = new Env('11.22-11.29 大牌暖冬季 送温迎好礼')
function y2OhQn(){}var kLl3vV=Object['defineProperty'],sPNROJw,KLFZui_,FG6iDR,rNefCV,lfqOHw,x6D4lI,q8ja47,ouh5kSq,jeb9LiE,PhfQIj,prEqn3,Q7a90rO,GYYWlfO,Zi1Hac,tGebQJ,zGLBKLa,IXGqf6j,NZoY307;function npq0Lg(y2OhQn){return sPNROJw[y2OhQn<0x60?y2OhQn+0x42:y2OhQn>0x18f?y2OhQn+0x61:y2OhQn-0x61]}sPNROJw=in71d3();function VUdDsWE(y2OhQn,kLl3vV){return KLFZui_.call(null,y2OhQn,npq0Lg(0x85),{value:kLl3vV,configurable:!0x0})}y2OhQn(KLFZui_=Object.defineProperty,FG6iDR=VUdDsWE(VWv1gu((...kLl3vV)=>{var KLFZui_=VWv1gu(kLl3vV=>{return sPNROJw[kLl3vV>0x127?kLl3vV+0x3d:kLl3vV>-0x8?kLl3vV>-0x8?kLl3vV+0x7:kLl3vV+0x1d:kLl3vV-0x9]},0x1);y2OhQn(kLl3vV.length=0x2,kLl3vV[npq0Lg(0x61)]=0x4f);if(kLl3vV[KLFZui_(-0x7)]>0xd4){return kLl3vV[-KLFZui_(0x1)]}else{var FG6iDR=VWv1gu(kLl3vV=>{return sPNROJw[kLl3vV<0x157?kLl3vV<0x157?kLl3vV<0x28?kLl3vV-0x34:kLl3vV-0x29:kLl3vV-0x2b:kLl3vV+0x58]},0x1);return kLl3vV[kLl3vV[FG6iDR(0x29)]-0x4e](kLl3vV[kLl3vV[npq0Lg(0x61)]-0x4f]())}}),npq0Lg(0x97))(Rmst2FV,TVDpnu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<GT!:','\u002a\u0068\u0079\u0049\u0026\u0055\u002a\u007c\u004e\u007c\u0056\u0074\u004d\u0058\u0023\u0025',qsQ6In_(npq0Lg(0x73)),qsQ6In_(0x30),qsQ6In_(0x31),'%b|I3c:0*','\u005a\u005d\u007c\u0049\u002e',npq0Lg(0x7c),qsQ6In_(0x32),qsQ6In_(0x33),qsQ6In_(npq0Lg(0xab)),qsQ6In_(0x35),qsQ6In_(0x36),qsQ6In_(0x37),qsQ6In_(0x19),'BpHOy56>VPQA0Ef4E*@q_5X;mWyme|;7{EW<Dt|Jg#2Y/',qsQ6In_(npq0Lg(0x64)),'\u0042\u0070\u0048\u004f\u0079\u0035\u0036\u003e\u0056\u0050\u0051\u0041\u0030\u0045\u0066\u0034\u0045\u002a\u0040\u0071\u005f\u0035\u0058\u003b\u006d\u0057\u0079\u006d\u0065\u007c\u003b\u0037\u007b\u0045\u0057\u003c\u0044\u0074\u007c\u004a\u0067\u0023\u0032\u0059\u002f',qsQ6In_(0x2c),qsQ6In_(0x2b),qsQ6In_(0x19),qsQ6In_(npq0Lg(0xc4)),qsQ6In_(npq0Lg(0x67)),qsQ6In_(0x19),'BpHOy56>VPQA0Ef4E*@q_5X;mWyme|;7{EW<Dt|Jg#2Y/',qsQ6In_(0x2d),qsQ6In_(0xc),qsQ6In_(0x3a),qsQ6In_(npq0Lg(0xc5)),qsQ6In_(0x19),qsQ6In_(0x3c),qsQ6In_(0x1a),qsQ6In_(npq0Lg(0x7b)),qsQ6In_(0x1c),qsQ6In_(0x3e),qsQ6In_(npq0Lg(0x8d)),qsQ6In_(npq0Lg(0xc9)),'\x43\x2a\x6a\x79\x7c\x3d\x29\x45\x2b\x6e\x5e',qsQ6In_(0x19),'}:KhM]k;Nyk[AX>eC*jy|=)E+n#:!w8pm>2R$X@G~0=f06u`JfglC*{hB#QIvL}U+A','2|pw',npq0Lg(0x65),qsQ6In_(0x41),'\x24\x6f\x63\x79\x2c\x39\x25\x49\x77\x2e\x28\x4b\x55\x37\x39\x68\x50\x7c\x6f',qsQ6In_(npq0Lg(0x8a)),qsQ6In_(0x43),qsQ6In_(npq0Lg(0xca)),qsQ6In_(0x45),qsQ6In_(npq0Lg(0x64)),qsQ6In_(0x46),qsQ6In_(0x47),'\u0037\u0028\u0024\u0049\u005f\u0070\u007b\u007c\u0021\u0066\u003e\u0060\u0075\u007e',qsQ6In_(npq0Lg(0x102)),qsQ6In_(0x49),npq0Lg(0x65),qsQ6In_(0x4a),'jhK0V0Y|]3',qsQ6In_(npq0Lg(0xcd)),npq0Lg(0x68),qsQ6In_(0x4c),qsQ6In_(npq0Lg(0xce)),qsQ6In_(npq0Lg(0xcf)),qsQ6In_(0x4f),'t|gw;','iJaUSDs|0|WN:','e_?c]4*|!f>`u~',qsQ6In_(0x50),qsQ6In_(0x51),qsQ6In_(0x52),qsQ6In_(npq0Lg(0x86)),qsQ6In_(npq0Lg(0x72)),qsQ6In_(0x55),qsQ6In_(0x56),qsQ6In_(0x57),qsQ6In_(npq0Lg(0x6e)),qsQ6In_(0x59),qsQ6In_(npq0Lg(0xa3)),qsQ6In_(npq0Lg(0xae)),qsQ6In_(0x5c),qsQ6In_(npq0Lg(0xd3)),qsQ6In_(npq0Lg(0xa5)),qsQ6In_(npq0Lg(0xd4)),qsQ6In_(0x60),qsQ6In_(
// 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