jdpro/jd_wyw_award.js

7 lines
110 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
1 6 29 2 * jd_wyw_award.js
*/
const $ = new Env('玩一玩兑换');
2024-08-10 11:10:29 +00:00
var _0xodV='jsjiami.com.v7';const _0x883599=_0x491b;(function(_0x36b5cd,_0x513e0f,_0x2cd637,_0x119873,_0xa30d3,_0x355e61,_0xf70a44){return _0x36b5cd=_0x36b5cd>>0x2,_0x355e61='hs',_0xf70a44='hs',function(_0x27f9b1,_0x449618,_0x58aea1,_0x57c4ae,_0x395e41){const _0x295b17=_0x491b;_0x57c4ae='tfi',_0x355e61=_0x57c4ae+_0x355e61,_0x395e41='up',_0xf70a44+=_0x395e41,_0x355e61=_0x58aea1(_0x355e61),_0xf70a44=_0x58aea1(_0xf70a44),_0x58aea1=0x0;const _0x37bfc9=_0x27f9b1();while(!![]&&--_0x119873+_0x449618){try{_0x57c4ae=parseInt(_0x295b17(0x24b,'5$%%'))/0x1*(-parseInt(_0x295b17(0x5ab,'HxYO'))/0x2)+-parseInt(_0x295b17(0x1b7,'cL$U'))/0x3*(-parseInt(_0x295b17(0x4b5,'5F@&'))/0x4)+parseInt(_0x295b17(0x260,'slb)'))/0x5*(parseInt(_0x295b17(0x664,'kH7@'))/0x6)+parseInt(_0x295b17(0x346,'Z28$'))/0x7*(parseInt(_0x295b17(0x502,'xm!I'))/0x8)+parseInt(_0x295b17(0x1d9,'B8iB'))/0x9*(-parseInt(_0x295b17(0x38c,'t9EH'))/0xa)+parseInt(_0x295b17(0x23f,'psTz'))/0xb*(parseInt(_0x295b17(0x475,'C48W'))/0xc)+-parseInt(_0x295b17(0x58f,'C(YL'))/0xd;}catch(_0x2f47ab){_0x57c4ae=_0x58aea1;}finally{_0x395e41=_0x37bfc9[_0x355e61]();if(_0x36b5cd<=_0x119873)_0x58aea1?_0xa30d3?_0x57c4ae=_0x395e41:_0xa30d3=_0x395e41:_0x58aea1=_0x395e41;else{if(_0x58aea1==_0xa30d3['replace'](/[EnDTLwXOrhWfyMFINqPAxdQ=]/g,'')){if(_0x57c4ae===_0x449618){_0x37bfc9['un'+_0x355e61](_0x395e41);break;}_0x37bfc9[_0xf70a44](_0x395e41);}}}}}(_0x2cd637,_0x513e0f,function(_0x4ba528,_0x5d807e,_0x831441,_0x21a5da,_0x2cc053,_0x1f81e8,_0xb7bedf){return _0x5d807e='\x73\x70\x6c\x69\x74',_0x4ba528=arguments[0x0],_0x4ba528=_0x4ba528[_0x5d807e](''),_0x831441=`\x72\x65\x76\x65\x72\x73\x65`,_0x4ba528=_0x4ba528[_0x831441]('\x76'),_0x21a5da=`\x6a\x6f\x69\x6e`,(0x17d401,_0x4ba528[_0x21a5da](''));});}(0x308,0xa9cd0,_0x2bf5,0xc4),_0x2bf5)&&(_0xodV=`\x922`);const _0x35b75c=(function(){const _0x23e1c0=_0x491b,_0x27a18e={'GcOoF':function(_0x2495f5,_0x129e39){return _0x2495f5==_0x129e39;},'PskaD':function(_0x11f029,_0x24b459){return _0x11f029!==_0x24b459;},'vdmNB':_0x23e1c0(0x2eb,'r2DB'),'mqgMb':_0x23e1c0(0x622,'5F@&')};let _0x224a4e=!![];return function(_0x3005b0,_0x244435){const _0x12debd=_0x224a4e?function(){const _0x1cbb12=_0x491b,_0x5f1019={'drlLG':function(_0x55e5e3,_0x2b467d){const _0x3297d6=_0x491b;return _0x27a18e[_0x3297d6(0x279,'w!dP')](_0x55e5e3,_0x2b467d);}};if(_0x244435){if(_0x27a18e[_0x1cbb12(0x39d,'xm!I')](_0x27a18e[_0x1cbb12(0x3b0,'km3L')],_0x27a18e[_0x1cbb12(0x23d,'2tkX')])){const _0x29fcef=_0x244435[_0x1cbb12(0x1ca,'Ax9M')](_0x3005b0,arguments);return _0x244435=null,_0x29fcef;}else _0x32a8e0&&_0x5f1019[_0x1cbb12(0x3f5,'iCKc')](_0x4da78c[_0x1cbb12(0x1c1,'B9)j')],!![])&&(_0x3bac7a[_0x1cbb12(0x5d2,'56cA')](_0x1cbb12(0x173,'km3L')+(_0x30d37a[_0x1cbb12(0x288,'@IMq')][0x0][_0x1cbb12(0x5f0,'r2DB')][_0x1cbb12(0x5a1,'Sx(U')]||'')),_0x719ff1[_0x1cbb12(0x35c,'56cA')]=_0x37936f[_0x1cbb12(0x658,'zGKq')][0x0][_0x1cbb12(0x1a3,'km3L')]&&_0x152fd8[_0x1cbb12(0x54f,'HxYO')][0x0][_0x1cbb12(0x480,'S8o!')][0x0]&&_0x3929ff[_0x1cbb12(0x2c5,'B8iB')][0x0][_0x1cbb12(0x468,'N&Up')][0x0][_0x1cbb12(0x1d1,'Vq!a')]&&_0x151f78[_0x1cbb12(0x47c,'5$%%')][0x0][_0x1cbb12(0x4ab,'kko&')][0x0][_0x1cbb12(0x263,'56cA')][_0x1cbb12(0x2f9,'km3L')]||'');}}:function(){};return _0x224a4e=![],_0x12debd;};}()),_0x10bf54=_0x35b75c(this,function(){const _0x12cc11=_0x491b,_0x2ddaac={'vwvts':_0x12cc11(0x202,'zGKq')};return _0x10bf54[_0x12cc11(0x36b,'5F@&')]()[_0x12cc11(0x191,'j5ZG')](_0x2ddaac[_0x12cc11(0x5f1,'2tkX')])[_0x12cc11(0x19b,'zGKq')]()[_0x12cc11(0x5a2,'kko&')](_0x10bf54)[_0x12cc11(0x313,'B9)j')](_0x2ddaac[_0x12cc11(0x58d,'kko&')]);});_0x10bf54();function _0x2bf5(){const _0x2b9101=(function(){return[...[_0xodV,'yXLjTTnsEdOjMDiaAQrmiwx.hNcqFoIQmPfI.Wv7==','CLqDnCkT','ECkzWPemsSoumG','WP/cN8ohW7xcQW','l18gatCY','W7LhWQZcOtKczHqFWR7dKCo5W7jlnSk5','WPldOGL1W5mnFLtcNNWDpCkC','zSosgq','FCkVtvKvWQVcPSohW6FdIa','C8kxtCkgW4W','WPJdJJnLW5y','D8onv8kiW7K','wCornSkgDq','jSk/WQxdGMy','amkNWRSwxa','b8oUW7q','W4OuW53cRhRcHq','WOywmu0mWRuDaCoFW4SIkCk3yJu+f8kNwmolaNNdMICiW7rIkCo1iSkJkYFcS8kMdSkzdN3cJWFdNmkb','pmk3WROUvq','WOGqkLa','Eu7cPmk5W7/dLW','n0Gh','D0JcU
2024-06-28 07:47:44 +00:00
function Env(o, t) { 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((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } 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.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) 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(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; tr