faker3/jd_wyw_draw.js

15 lines
38 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
活动名称新版玩一玩之摇一摇抽奖 5.17-8.31结束
活动入口APP-我的-更多工具-玩一玩
活动建议定时自行修改奖票有效期2个月
提现变量jd_wyw_autotx //是否自动提现
cron:1 1 1 1 *
*/
const $ = new Env('新版玩一玩之摇一摇抽奖')
2024-07-16 18:27:08 +08:00
const _0xac210f=_0x200c;(function(_0x378b72,_0x50c738){const _0x3d4f3d=_0x200c,_0x2ffc77=_0x378b72();while(!![]){try{const _0x13f451=parseInt(_0x3d4f3d(0x229,'@R$r'))/0x1*(-parseInt(_0x3d4f3d(0x174,'eXIV'))/0x2)+-parseInt(_0x3d4f3d(0x2a0,'y)IS'))/0x3+-parseInt(_0x3d4f3d(0x1fa,'ssdq'))/0x4+-parseInt(_0x3d4f3d(0x1a0,'AYlz'))/0x5*(-parseInt(_0x3d4f3d(0x1c2,'QHhl'))/0x6)+-parseInt(_0x3d4f3d(0x290,'VkOH'))/0x7*(parseInt(_0x3d4f3d(0x1fb,'GEyh'))/0x8)+-parseInt(_0x3d4f3d(0x1dd,'uWc#'))/0x9+-parseInt(_0x3d4f3d(0x255,'Kr^%'))/0xa*(-parseInt(_0x3d4f3d(0x1f1,'[mry'))/0xb);if(_0x13f451===_0x50c738)break;else _0x2ffc77['push'](_0x2ffc77['shift']());}catch(_0x4c756d){_0x2ffc77['push'](_0x2ffc77['shift']());}}}(_0x5ccd,0xa0287));const jdCookie=require(_0xac210f(0x184,'[v63')),notify=require(_0xac210f(0x1b4,'GEyh')),common=require('./utils/Rebels_jdCommon'),{H5st}=require(_0xac210f(0x1ae,'W@pX')),isNotify=![];let superlinkId='aE-1vg6_no2csxgXFuv3Kg';const autotx=process['env'][_0xac210f(0x18a,'eXIV')]==='true',exchange=process[_0xac210f(0x1cf,'uWc#')][_0xac210f(0x22a,'80Y2')]===_0xac210f(0x28c,'uk(n'),Swish=_0xac210f(0x167,'mwe8');function _0x5ccd(){const _0x5d561d=['WQ/dJmoCW7lcOCk2WPi4WRXJWPBdHKy','W5zXwbpcUs/dH8oUtKNdHmorW63dVNO','BItdOc3dJmkD','t8kwW6jnmxNcQW','W6mDoSoPWPOKl3O','Agq1rCkHWOa3mc4','W5rXW7TtkfmMW7dcRtqfz8kJe8kdWOTMjKC','nmohtd/dRHq','W7RcN8kzWQe','cSoUaCkXWQW','8jIWSCo0WQK','v8kbW6Ptmu/cQSkgFCoxWOK','rYZdRq','W68CWPpcO8kGwNtcNJhdTmoJ','vmkgW7nmjLNcVCkdsmoGWOeLm31I','WO/cGcJcGWNdLCofumk/WQf2WPbAWRhcQCkyW6tdMINdRSoCbhlcVCkiW53dUIxcVKyu','WQ3dRJBcNq','W7Whlq','rmkCW6Dm','W6VcS27cK8oUWORdRCk5W4/cNCkUjCkKrSoohxCzW7JdJW','nuSaBmkMuNRcLW','wshcIq','57MI5A6o5OUe5PYL5y6+','wSk5W7lcTtRcNG','WOFdLxyGW6bXWRxLV4NLP6BJGO7KUy/KU7BOTQZLJBu','W6hdSYK','8lUOPCoH','t8kKW6/cLaVcMmkpa8k7qa','4P6hW4hMJytNJ6FLP7FOT63VVkBLV5RMNipMJz3NJ6ZPO6/LUjlLTQNMUyq','W6pcVNNcLSoTWOFdVmkZ','jfBcNq','qHtdIczccaFcUG','dSoSb1PsWOPW','n3bufx3cTSkF','emo8beXbWR9WWRKuz8o8l8k0WOL+','WOpcLCoCxCo2e8k7WPLrW6iebCo1WRtcKCkwkWFcLG','8kYcPJNcVa','egZcM8oLlHWWW5jHevddMq3cUq','nLee','WPpcKmoT','WQ/dOdW','W5jKW79ZieqIW7FcSbOBomknw8kgWO94ze9kWO/dPH5dumoVWPazWP4uoSozWR0','xt7dQsVdP8koCvS','lCklW7P+yCkWphDTWPXOWPhdImku','mYWwW4y0iCoPvG','BmkIW4VdTSkxWQJcRSkFWPdcVmoY','F8oSWRVcH2iU','W67cJmkeWRRdVCodW4agWRjVWOy','A2m/xmkHWRCH','WRhdH3nRmmog','cY3cNSogWQrwFW','W5ZdHCkCkCkMvSoUWOHVW6SriSo5','WRVcGmoZmSkiWR1r','bZJcRSouWRzztvPWbYNcSCobyG','jx5jghxcPmk1gqRcHq','jMPlhgRcHCkuhdZcHCo5W4mnWQvn','W68pWP7cISkXF3tcIW','WQOPE8kMWR5Sj8kAW7ZcRCk9W6hcISkG','W5FdLX8lWPrMW78','yM4zW5iAdq','b8oHeCk1','WOqHdc5mWOJcKq8','5zcs5yY/5y2G5lQc5Pk15lUS5PkB542x5RcY','F8oagCoZ','nSovlmkq','vd7cRvnuW6ldTWTtW6FcUSkgtCoF','6lwx5y+R5Ps45PEm','WO1ZW4GBxSkdW77dPSoRkKFcKfRdHti','mCk6WQ3dUWxdM8orW4aM','DN0vW4C','WOddOxf7W7CI','W7ldKrTiWPxcSw5Mr8kzWRS','C2KsW7yada','5OIW5lQX772u56Ul5Ro4','wmo8W5NcV8oXdSo7srzQEM3cICkgW4rYi8o2W5f4W5WbySk0','as3cMCo9W7bcBG','ExSZsSkQWRa','WRtdSoA7I+wEREMOLoISOSk16kY35Bkn6kY45OQj5yUS6AMC6k+H5lQH5Q2o5OIm6igd5PM/5O+iWRmc','W77dQs3dKSkjkmkJ','W50Uuq','W6WBWORcVmk3tgpcMWtdG8oRW7VcMSkKWQ8','W4RdJCk9','56EN5zga57I95P2T77YR5AEC5zgH5yIl5l2+','sSo4W7VcQSo3fq','WQqHdbbRWOtcLr4','sCo+W7pcPmoNiCoEtXDYD3S','W7pcM8kEWRpdUCoMW4q','cIFcIG','W6ZcKJn/WQqV','c27LP5/OTjFVVl0','sKFPO5G','WPRcQIRdOG','4P2awEApHUEoREwNPUI3TU+9UEAETEE7IUwVKUw9Ros8Q+AiPEAjV+ADNowmNG','44cP5O2C56AG44op6k215ysU6iYB5y+2iw1rDmkbWPq','WRhcG8ony8ozbSkZWO8','FGNdJJH5dq/cRa','n00e','WPzOWO/dUCoFW4SGW7O+jGq','WPBdQxPQW5WLiW','f8o7auW','e8oObKHEWP5rWRWIzW','WOJcUthdM8oGzq','jSkVWQVdSW','lCk3W6pdIJLTWRhdLCoGoKNdVW','5OUm5lIX77+c','W77dQc/dHCkzka','5yE75A28lgpcPoEBN+ISVEwoNa','WP3cLq7cPqxdLCodsCk/','W5pdQNG+W7a','WOVcGGJcQXNdNq','WRddK21QlCo5WPSCW73cQSoAWOu4WPVcKG','5yAi5A6fW4GxqUEzLEISUEwpLW','5P+P57ME5A+b5B2w5l+4','WOhcPcq','Bbebzmkj','CZBLPkJOT4lVVzu','lIzP','W53dHK3dNL/cJCo4Bmk8WOr8WQa','F8ksaCoZFqbMACk8shK8hNO','W5q5W5RcR8kdWQ1SW4Slms/dRmo8','W6pdKZftWOpcNuTUrmkNWPbQWOOo','WPHQW5CrxG','Cmk/W4u','pxD9WRq7jKK2','kxDTWOy','W5KHqSoEb8o8W4C/','4P+bW5/MNBBNN6/ORl3MSjNcVW','W68CWPpcO8kGxgFcJcpdQ8oO','WOzKWO7dSG','EmoocCo3','WQeGaczNWR3cH
2024-06-28 15:38:28 +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