mirror of https://github.com/6dylan6/jdpro.git
17 lines
109 KiB
JavaScript
17 lines
109 KiB
JavaScript
|
|
|||
|
/*
|
|||
|
京喜特价抽现金
|
|||
|
执行流程,车头输出助力码--助力--抽奖--检查提现
|
|||
|
可指定PIN车头(只能1个),不指定默认CK1, 变量JXCTOPPIN='jdpin'
|
|||
|
多少助力换下一个车头,默认9999次 ,可调整变量 JXCXJNUM='100'
|
|||
|
运行一次抽奖次数,默认抽完,控制变量 JXCXJLTNUM='200'
|
|||
|
每次抽奖间隔,默认1秒,控制变量 JXCXJDELAY='3'
|
|||
|
开启提现到上限转红包 JXCXJTORED='true'
|
|||
|
代理变量DY_PROXY='https://api',仅对助力使用,支持类星空的api
|
|||
|
默认提现,不提现的变量 NOTX='true'
|
|||
|
updatetime:2023/11/17
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('Jx特价抽现金');
|
|||
|
var _0xod1='jsjiami.com.v7';const _0x4c03e1=_0x39a3;(function(_0x19d315,_0x463f67,_0x3fa00b,_0x98c5f3,_0x2f8e9b,_0x27be5c,_0x25e172){return _0x19d315=_0x19d315>>0x6,_0x27be5c='hs',_0x25e172='hs',function(_0x49dfe3,_0x5378c5,_0x25b605,_0x3d9b47,_0x3fbb13){const _0x494aae=_0x39a3;_0x3d9b47='tfi',_0x27be5c=_0x3d9b47+_0x27be5c,_0x3fbb13='up',_0x25e172+=_0x3fbb13,_0x27be5c=_0x25b605(_0x27be5c),_0x25e172=_0x25b605(_0x25e172),_0x25b605=0x0;const _0x7f3ed0=_0x49dfe3();while(!![]&&--_0x98c5f3+_0x5378c5){try{_0x3d9b47=-parseInt(_0x494aae(0x4e4,'hJeq'))/0x1*(-parseInt(_0x494aae(0x1ac,'z7]J'))/0x2)+-parseInt(_0x494aae(0xc4,'f^T2'))/0x3+-parseInt(_0x494aae(0x271,'#dd!'))/0x4*(-parseInt(_0x494aae(0x536,'bZYu'))/0x5)+parseInt(_0x494aae(0x250,']G4b'))/0x6*(parseInt(_0x494aae(0x5cb,'0b[!'))/0x7)+-parseInt(_0x494aae(0x39f,'2%Ir'))/0x8+-parseInt(_0x494aae(0x1fe,'2pDU'))/0x9*(-parseInt(_0x494aae(0x1b2,'$&0v'))/0xa)+-parseInt(_0x494aae(0xe5,'nI@('))/0xb;}catch(_0x511a8e){_0x3d9b47=_0x25b605;}finally{_0x3fbb13=_0x7f3ed0[_0x27be5c]();if(_0x19d315<=_0x98c5f3)_0x25b605?_0x2f8e9b?_0x3d9b47=_0x3fbb13:_0x2f8e9b=_0x3fbb13:_0x25b605=_0x3fbb13;else{if(_0x25b605==_0x2f8e9b['replace'](/[NIFRQWUlyAGtKufgn=]/g,'')){if(_0x3d9b47===_0x5378c5){_0x7f3ed0['un'+_0x27be5c](_0x3fbb13);break;}_0x7f3ed0[_0x25e172](_0x3fbb13);}}}}}(_0x3fa00b,_0x463f67,function(_0x21e0a1,_0x9cab8f,_0x2e09c9,_0x64e01c,_0x2e4673,_0x3685a,_0x49e903){return _0x9cab8f='\x73\x70\x6c\x69\x74',_0x21e0a1=arguments[0x0],_0x21e0a1=_0x21e0a1[_0x9cab8f](''),_0x2e09c9=`\x72\x65\x76\x65\x72\x73\x65`,_0x21e0a1=_0x21e0a1[_0x2e09c9]('\x76'),_0x64e01c=`\x6a\x6f\x69\x6e`,(0x14e641,_0x21e0a1[_0x64e01c](''));});}(0x3180,0x96cfc,_0x20e9,0xc8),_0x20e9)&&(_0xod1=_0x4c03e1(0x23f,'0V0S'));const _0xb81dff=$[_0x4c03e1(0x215,'n^L5')]()?require(_0x4c03e1(0x4b2,'9n*B')):'',_0x54cd75=$[_0x4c03e1(0x1a2,'gFe(')]()?require(_0x4c03e1(0x5b7,'RaF$')):'',_0x1cda7e=require(_0x4c03e1(0x31c,'&!zh')),_0x5f543d=require(_0x4c03e1(0x1a9,'%X4W'));let _0x2b1dfe=!![],_0x59a5b4=[],_0x2e7654=[],_0x5c9f85=[],_0xee3b00=[],_0x4ff2fa,_0x3bc89a=[],_0x40f7b4='',_0x495bb0='',_0x351587='',_0x400c8b='',_0x221081,_0x12315d=process[_0x4c03e1(0x425,'yMyt')][_0x4c03e1(0x58f,'&!zh')]||_0x4c03e1(0x211,'@XOG'),_0x1605a7=process[_0x4c03e1(0x499,'0V0S')][_0x4c03e1(0x34f,'wk9^')]||'5',_0x184ee4=process[_0x4c03e1(0x5a9,'Hj%D')][_0x4c03e1(0x353,'C3tG')]||'-1',_0x23d508=process[_0x4c03e1(0x425,'yMyt')][_0x4c03e1(0x119,'2%cQ')]||'1',_0xd6f40e=process[_0x4c03e1(0x5f0,'px7r')][_0x4c03e1(0x3b5,'jbDs')]||'5',_0x32c897=process[_0x4c03e1(0x121,'2%cQ')][_0x4c03e1(0x3d3,'WZAh')]||'1',_0x38256b=process[_0x4c03e1(0x33c,'z7]J')][_0x4c03e1(0x4c0,'hXeT')]||![],_0xd39f9=process[_0x4c03e1(0x5f0,'px7r')][_0x4c03e1(0x1e5,']UDw')]||'',_0x9d3d2e=process[_0x4c03e1(0x121,'2%cQ')][_0x4c03e1(0x324,'2%cQ')]||![],_0x332023=process[_0x4c03e1(0xc5,'C3tG')][_0x4c03e1(0x16d,']G4b')]?process[_0x4c03e1(0x2e4,'*#pZ')][_0x4c03e1(0x15a,'bZYu')]:![];if(process[_0x4c03e1(0x2ce,'ZMHD')][_0x4c03e1(0x23c,'9UV!')])try{require(_0x4c03e1(0x106,'$&0v')),_0x4ff2fa=require(_0x4c03e1(0x4e9,'jbDs')),$[_0x4c03e1(0x1b1,'tg0l')]=_0x4ff2fa[_0x4c03e1(0x49a,'RaF$')]($[_0x4c03e1(0x45f,'%X4W')][_0x4c03e1(0x3a1,'[XXJ')]($)),$[_0x4c03e1(0x405,'9UV!')]=_0x4ff2fa[_0x4c03e1(0x5cf,'gFe(')]($[_0x4c03e1(0x2af,'9n*B')][_0x4c03e1(0x158,'8Pp@')]($));}catch{$[_0x4c03e1(0x2c2,'fiTH')](_0x4c03e1(0x395,'#dd!')),$[_0x4c03e1(0x13a,'ZMHD')]=$[_0x4c03e1(0x241,'WZAh')],$[_0x4c03e1(0x115,']G4b')]=$[_0x4c03e1(0x4cc,'gFe(')];}else $[_0x4c03e1(0x103,'[XXJ')]=$[_0x4c03e1(0x2cc,'SYTA')],$[_0x4c03e1(0x5d7,'ufsX')]=$[_0x4c03e1(0x2ae,'5&&(')];function _0x39a3(_0x56adfd,_0x208e72){const _0x4affda=_0x20e9();return _0x39a3=function(_0x224dac,_0x229490){_0x224dac=_0x224dac-0xb6;let _0x20e9b0=_0x4affda[_0x224dac];if(_0x39a3['rDESrV']===undefined){var _0x39a313=function(_0x5749ca){const _0x317c47='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c6a77='',_0x1253b5='',_0x45a9cf=_0x4c6a77+_0x39a313;for(let _0x5f2036=0x0,_0x451dde,_0x44442f,_0x260b9e=0x0;_0x44442f=_0x5749ca['charAt'](_0x260b9e++);~_0x44442f&&(_0x451dde=_0
|
|||
|
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
|