mirror of https://github.com/6dylan6/jdpro.git
15 lines
79 KiB
JavaScript
15 lines
79 KiB
JavaScript
|
|
|||
|
/*
|
|||
|
京喜特价抽现金(抽奖+提现) 入口:京喜特价-首页-幸运抽奖
|
|||
|
执行流程,抽奖--检查提现
|
|||
|
运行一次抽奖次数,默认抽完,控制变量 JXCXJLTNUM='200'
|
|||
|
每次抽奖间隔,默认1秒,控制变量 JXCXJDELAY='3'
|
|||
|
开启提现到上限转红包 JXCXJTORED='true'
|
|||
|
代理变量DY_PROXY='https://api',仅对助力使用,支持类星空的api
|
|||
|
不提现变量 NOTX='true'
|
|||
|
8 8 29 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jx_cxj_draw.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('Jx特价抽现金_抽奖提现');
|
|||
|
const bdy_0x53c817=bdy_0x24a9;(function(_0x88ce67,_0x39313c){const bdy_0x3c78b1={_0xc713a0:'0x1fb',_0x23066b:'iFXg',_0x2d84e2:'0x136',_0x26f765:'%y^q',_0x1ced8d:'0x31b',_0x87724a:'vFz(',_0x3d41c8:'0x254',_0x1f0486:'8eds',_0x5ae9dd:'0x1b1',_0x43aacb:'8K3i',_0x5b1467:'0x183',_0x189f13:'@@Zw',_0x2761de:'0x2a1',_0x4b0f96:'Zebk',_0x358abb:'0x2b0',_0x3c0045:'VEj!',_0x469f5c:'0x25c',_0x19ddbe:'p3hr',_0x1f5916:'0x214',_0x55a1bc:'@@Zw',_0x4ad568:'0x273',_0x4b2e04:')0T#',_0x294aa6:'0x15a'},_0x4d4732=bdy_0x24a9,_0x2cd5cb=_0x88ce67();while(!![]){try{const _0x2e36fb=-parseInt(_0x4d4732(bdy_0x3c78b1._0xc713a0,bdy_0x3c78b1._0x23066b))/(0x1ea1*-0x1+0x21cf+0x1*-0x32d)*(parseInt(_0x4d4732(bdy_0x3c78b1._0x2d84e2,bdy_0x3c78b1._0x26f765))/(0x1630+0x77*-0xf+-0xf35))+-parseInt(_0x4d4732(bdy_0x3c78b1._0x1ced8d,bdy_0x3c78b1._0x87724a))/(-0x2b*0xca+-0x2*-0x3ea+0x1a1d)*(-parseInt(_0x4d4732(bdy_0x3c78b1._0x3d41c8,bdy_0x3c78b1._0x1f0486))/(-0x74b*-0x5+0x384*0x2+-0x2b7b))+-parseInt(_0x4d4732(bdy_0x3c78b1._0x5ae9dd,bdy_0x3c78b1._0x43aacb))/(-0x1512+0xd41+-0x1*-0x7d6)*(-parseInt(_0x4d4732(bdy_0x3c78b1._0x5b1467,bdy_0x3c78b1._0x189f13))/(-0x152*0x4+0x1f*0xbc+-0x3*0x5d2))+-parseInt(_0x4d4732(bdy_0x3c78b1._0x2761de,bdy_0x3c78b1._0x4b0f96))/(0x129a+0xe3b*0x1+-0xf7*0x22)+parseInt(_0x4d4732(bdy_0x3c78b1._0x358abb,bdy_0x3c78b1._0x3c0045))/(0x1*-0x18c7+-0xa4d+0x231c)*(parseInt(_0x4d4732(bdy_0x3c78b1._0x469f5c,bdy_0x3c78b1._0x19ddbe))/(-0x185+0x1acf*0x1+-0x50d*0x5))+-parseInt(_0x4d4732(bdy_0x3c78b1._0x1f5916,bdy_0x3c78b1._0x55a1bc))/(-0x724+-0xc75+0x13a3)+-parseInt(_0x4d4732(bdy_0x3c78b1._0x4ad568,bdy_0x3c78b1._0x4b2e04))/(0x1183*0x1+0x3e3*0x5+0x43*-0x8d)*(-parseInt(_0x4d4732(bdy_0x3c78b1._0x294aa6,bdy_0x3c78b1._0x55a1bc))/(-0xb*0x75+0x152b*0x1+-0x406*0x4));if(_0x2e36fb===_0x39313c)break;else _0x2cd5cb['push'](_0x2cd5cb['shift']());}catch(_0xb0a565){_0x2cd5cb['push'](_0x2cd5cb['shift']());}}}(bdy_0xd4e6,-0x347ab*-0x1+0xc717+-0xb5ac));const bdy_0x449181=$[bdy_0x53c817('0x1f5','AJxb')]()?require(bdy_0x53c817('0x211','Sq&%')):'',bdy_0x1c3911=$[bdy_0x53c817('0x247','ui&e')]()?require(bdy_0x53c817('0x2db','ZF!j')):'',bdy_0x5ba77a=require(bdy_0x53c817('0x220','#N!Y')),bdy_0x518ce4=require(bdy_0x53c817('0x312',')J6)'));let bdy_0x2e9a35=!![],bdy_0x327045=[],bdy_0xd5480f=[],bdy_0x2ad567=[],bdy_0x31d512=[],bdy_0x342f6c,bdy_0x5b2806=[],bdy_0x5f3861='',bdy_0x43a7d8='',bdy_0x173e95='',bdy_0x13a2ba,bdy_0x3bd81a=process[bdy_0x53c817('0x20b','[T05')][bdy_0x53c817('0x13c','5CZx')]||bdy_0x53c817('0x27f','8eds'),bdy_0x565f2e=process[bdy_0x53c817('0x20b','[T05')][bdy_0x53c817('0x298','VEj!')]||'5',bdy_0x5e111d=process[bdy_0x53c817('0x184','MdjA')][bdy_0x53c817('0x2d1','Sq&%')]||'-1',bdy_0x512003=process[bdy_0x53c817('0x13b','fyuk')][bdy_0x53c817('0x152','!UDx')]||'1',bdy_0x1aaa91=process[bdy_0x53c817('0x1cd','THvR')][bdy_0x53c817('0x16b','9WYj')]||'5',bdy_0x39c764=process[bdy_0x53c817('0x1de',')0T#')][bdy_0x53c817('0x176','c^px')]||'1',bdy_0x5c4b22=process[bdy_0x53c817('0x31e','bwgw')][bdy_0x53c817('0x1a9','%y^q')]||![],bdy_0xc7e142=process[bdy_0x53c817('0x301','a(lB')][bdy_0x53c817('0x2a3','xS#]')]||'',bdy_0x47f6f2=process[bdy_0x53c817('0x147','Sq&%')][bdy_0x53c817('0x1bb','iFXg')]||![],bdy_0x1586ea=process[bdy_0x53c817('0x154','!UDx')][bdy_0x53c817('0x266','ZF!j')]?process[bdy_0x53c817('0x147','Sq&%')][bdy_0x53c817('0x23d','xS#]')]:![];if(process[bdy_0x53c817('0x184','MdjA')][bdy_0x53c817('0x1ef',']obJ')])try{require(bdy_0x53c817('0x160','KhfP')),bdy_0x342f6c=require(bdy_0x53c817('0x159',')J6)')),$[bdy_0x53c817('0x26a','Sq&%')]=bdy_0x342f6c[bdy_0x53c817('0x178',']obJ')]($[bdy_0x53c817('0x2e9','jscP')][bdy_0x53c817('0x26d','8eds')]($)),$[bdy_0x53c817('0x19c','KhfP')]=bdy_0x342f6c[bdy_0x53c817('0x23b','Vx4h')]($[bdy_0x53c817('0x2bb','%y^q')][bdy_0x53c817('0x303',']obJ')]($));}catch{$[bdy_0x53c817('0x171',')J6)')](bdy_0x53c817('0x187','jscP')),$[bdy_0x53c817('0x181','3rjI')]=$[bdy_0x53c817('0x2fc','#N!Y')],$[bdy_0x53c817('0x221','5CZx')]=$[bdy_0x53c817('0x20c','8K3i')];}else $[bdy_0x53c817('0x311','PTxY')]=$[bdy_0x53c817('0x180','Zebk')],$[bdy_0x53c817('0x21e','jscP')]=$[bdy_0x53c
|
|||
|
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
|