mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
17 lines
37 KiB
JavaScript
17 lines
37 KiB
JavaScript
|
/*
|
|||
|
8.5-8.12 畅快嗨一夏 大牌嘉年华
|
|||
|
|
|||
|
不会自动运行,请在有水的时候运行
|
|||
|
|
|||
|
//export jd_opencard_draw="3" //抽奖次数 3
|
|||
|
//export jd_opencard_break="true" //IP限制后继续执行(true/false)
|
|||
|
|
|||
|
cron "1 1 1 1 *" script-path=jd_opencard_0805.js
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('8.5-8.12 畅快嗨一夏 大牌嘉年华')
|
|||
|
const _0x4a0d39=_0x1a00;(function(_0x129c4a,_0x2ff5da){const _0x318d1d=_0x1a00,_0x33b20e=_0x129c4a();while(!![]){try{const _0xfc0b4f=-parseInt(_0x318d1d(0x10f))/0x1*(parseInt(_0x318d1d(0x14a))/0x2)+-parseInt(_0x318d1d(0x1af))/0x3*(parseInt(_0x318d1d(0x171))/0x4)+parseInt(_0x318d1d(0x15a))/0x5*(-parseInt(_0x318d1d(0xd3))/0x6)+parseInt(_0x318d1d(0xe0))/0x7+-parseInt(_0x318d1d(0x125))/0x8+parseInt(_0x318d1d(0x141))/0x9*(-parseInt(_0x318d1d(0x19c))/0xa)+-parseInt(_0x318d1d(0x195))/0xb*(-parseInt(_0x318d1d(0xfe))/0xc);if(_0xfc0b4f===_0x2ff5da)break;else _0x33b20e['push'](_0x33b20e['shift']());}catch(_0x3a277e){_0x33b20e['push'](_0x33b20e['shift']());}}}(_0x1684,0x32e5c));const jdCookie=require('./jdCookie'),notify=require(_0x4a0d39(0x190)),opencard_draw=process[_0x4a0d39(0xd5)][_0x4a0d39(0x12e)]||0x3,hotbreak=process[_0x4a0d39(0xd5)][_0x4a0d39(0x192)]===_0x4a0d39(0x1a3),isNotify=process[_0x4a0d39(0xd5)]['jd_opencard_notify']==='true',common=require(_0x4a0d39(0x1ab)),getToken=require(_0x4a0d39(0x16e)),{lzdz1_savePrize}=require(_0x4a0d39(0x103));common['getProxyStatus']()==='关闭'?$[_0x4a0d39(0x1b6)]=0x3e8:$[_0x4a0d39(0x1b6)]=0x0;function _0x1a00(_0x3924f7,_0x4ba4f1){const _0x16845a=_0x1684();return _0x1a00=function(_0x1a006b,_0x52af03){_0x1a006b=_0x1a006b-0xc5;let _0x5b6784=_0x16845a[_0x1a006b];return _0x5b6784;},_0x1a00(_0x3924f7,_0x4ba4f1);}let domains=_0x4a0d39(0x19f),cookie='',activityCookie='',originCookie='';function _0x1684(){const _0x4ab07a=['authorCode','\x0a******开始【京东账号','openName','startTime','isEnd','缺少必要参数,请重新运行','9PhPiXN','done','application/json','taskInfo','\x20🐶',']店铺开卡失败,跳过执行~','index','wdsrvo','drawError','8NpZhnS','==========','非法操作','/customer/getMyCidPing','beans','finally','drawStop','中奖通知','LZ_TOKEN_KEY=','activityVo','未全部开卡','开始时间:','hasEnd','\x20请求失败\x20➜\x20无响应数据','unsetCookie','https://lzdz1-isv.isvjcloud.com/dingzhi/joinCommon/activity/activity?activityId=','21575rWiUuw','status','获取不到[actorUuid]退出执行,请重新执行','getCk\x20➜\x20','次,共有','venderId=','/common/accessLogWithAD','actorInfo','wait','代理开关:\x20[','joinVenderId','error','assistState','result','activityName','logErr','activityUrl','activityId=','allOpenCard','nickName','./utils/Rebels_Token.js','💨\x20空气','min','8tckfxo','&dzActivityType=0&adSource=&pin=','/dingzhi/joinCommon/saveAddress','activityContent','助力码:','Content-Type','getCk\x20➜\x20无响应数据','\x20结束,下次早点来吧~','任务完成','hasGetBasicInfo','cross-site','✅\x20助力成功',']运行间隔时长','object','prize','\x0a当前已邀请','appendContent','msg','addressId','log','settingInfo','test','priceInfo','Pin','******\x0a','Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_2_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.3\x20Mobile/15E148\x20Safari/604.1\x20Edg/87.0.4280.88','/dingzhi/joinCommon/assist','活动将在\x20','value','活动ID:','some','./utils/Rebels_sendJDNotify','变量开启状态==========','jd_opencard_break','IP被限制(493)\x0a','->\x20','22POwBDC','UserName','【提示】请先获取Cookie','🎉\x20','加入[','keep-alive','sendNotify','1307690cYkutt','hotFlag','openVenderId','https://lzdz1-isv.isvjcloud.com','已设置抽奖','变量状态结束==========','🗑️\x20专享价','true','includes','venderId','IP限制后继续执行:\x20[','活动已于\x20','\x0a结束时间:','toUrl','已助力其他人~','./utils/Rebels_jdCommon.js','shareUuid','outFlag','secretPin','88377WjdCKy',',已成功自动登记收货地址\x0a\x0a','catch','startDraw','skipRun','drawType','LZ_TOKEN_VALUE=','waitTime','/dingzhi/joinCommon/taskRecord','🗑️\x20优惠券','data','&pin=','/dingzhi/joinCommon/taskInfo','drawContent','\x20🎟️','now','getCookieValue','&taskValue=','&shareUuid=','抽奖次数:\x20[','activity','success','246sqmrBi','setCookie','env','activityType','map','LZ_TOKEN_VALUE','不是新会<EFBFBD>
|
|||
|
// 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
|