jdpro/jd_xdly_help.js

21 lines
144 KiB
JavaScript
Raw Normal View History

2024-10-16 16:54:16 +00:00
/*
可指定PIN车头不指定默认CK1 变量 XDLYTOPPIN='jdpin'
多少助力停止默认9999个 控制变量 XDLYNUM='100';
运行一次抽奖次数,默认抽完控制变量 XDLYLTNUM='200'
每次抽奖间隔默认1秒控制变量 XDLYDELAY='3'
代理变量DY_PROXY='https://api'仅对助力使用支持类星空的api
1 1 1 1
\
*/
const $ = new Env('心动乐园_助力');
2024-10-30 04:00:23 +00:00
function RJfKUl(){}var oWED3G1=Object['defineProperty'],mHPLzL8,IWiiJLD,DZxmaGa,xWKQ7G,QnUvns,Qj7btGB,Ttk3wF,zH7Bn7,QaJcey,_3Di1le,yXKn6y,phU1NIY,VUlX30,DXwv_H,dbr0VW,w0e_eK,S4EBnV,r7nKaJC,E_0uT63,f6JFR9i;function PsVT6Lv(RJfKUl){return mHPLzL8[RJfKUl>-0x5e?RJfKUl>0xe9?RJfKUl-0x3f:RJfKUl>-0x5e?RJfKUl<0xe9?RJfKUl+0x5d:RJfKUl-0x1f:RJfKUl-0x5:RJfKUl-0x1a]}mHPLzL8=E8VgB_a();function LTYjWk(RJfKUl,oWED3G1){IWiiJLD(RJfKUl,'length',{value:oWED3G1,configurable:!0x0});return RJfKUl}RJfKUl(IWiiJLD=Object.defineProperty,DZxmaGa=fBONp9((RJfKUl,oWED3G1)=>{return oWED3G1(RJfKUl())},0x2)(kodvOV,nEkvYn));var kwjrZF=[],HdjM1M=[MIyBwAb(0x0),MIyBwAb(0x1),'Opg|tDCpY',MIyBwAb(0x2),MIyBwAb(PsVT6Lv(-0x2a)),'vIdR|3iw',MIyBwAb(PsVT6Lv(-0x2d)),MIyBwAb(0x5),MIyBwAb(0x6),MIyBwAb(PsVT6Lv(-0x23)),MIyBwAb(PsVT6Lv(-0x13)),MIyBwAb(0x9),MIyBwAb(0xa),MIyBwAb(PsVT6Lv(-0x21)),MIyBwAb(0xc),MIyBwAb(0xd),MIyBw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sVT6Lv(0xa7)),'8"%@Knj#v#NQ]r|s;;/P5}d',MIyBwAb(0x5f),MIyBwAb(PsVT6Lv(0x23)),MIyBwAb(0x61),MIyBwAb(PsVT6Lv(0x25)),MIyBwAb(PsVT6Lv(0x4b)),MIyBwAb(0x64),'.v6.U2(#=ZnBZ|ysr;/','bOC9&%kDiobduZZxa2vRvevn>y>O5jgrFN|~~Ga2vRvevn>y>O5jgrFN|~~Ga2vR<W4D_lVHFm,~!4sUU2(#=Z.7Y*YCY,+9&%kDiobduZZxa2vRvevn>y>O5jgrFN|~~Ga2vRvevn>y>O5jgrFN/4','v=Pi@p?v|','3=Pi@p?v|',MIyBwAb(0x65),MIyBwAb(PsVT6Lv(-0x51)),MIyBwAb(0x66),MIyBwAb(0x67),MIyBwAb(0x68),MIyBwAb(PsVT6Lv(-0x47)),MIyBwAb(0x6a),MIyBwAb(0x6b),'ej|EP>hw|',MIyBwAb(PsVT6Lv(0x2c)),MIyBwAb(PsVT6Lv(0x2d)),MIyBwAb(0x6e),MIyBwAb(0x6f),'$%S|P',MIyBwAb(0x70),MIyBwAb(0x71),MIyBwAb(PsVT6Lv(-0x5b)),MIyBwAb(0x5d),MIyBwAb(PsVT6Lv(0x30)),MIyBwAb(0x4f),PsVT6Lv(-0x5a),MIyBwAb(0x73),MIyBwAb(0x51),MIyBwAb(0x52),MIyBwAb(0x74),MIyBwAb(0x75),MIyBwAb(0x76),MIyBwAb(0x77),MIyBwAb(0x78),PsVT6Lv(-0x59),PsVT6Lv(-0x59),'ekAsRAKtKqer@cWSde|P5}u*"ea"8K|mW3LJ$!{@}',MIyBwAb(PsVT6Lv(0x35)),'}uY|OVH',MIyBwAb(PsVT6Lv(-0x5d)),MIyBwAb(PsVT6Lv(-0x5c)),MIyBwAb(0x7a),MIyBwAb(0x7b),MIyBwAb(0x7c),MIyBwAb(0x7d),'"qi|lILw',MIyBw
2024-10-16 16:54:16 +00:00
指定助力CODE都去助力TA XDLYCODE='code1' 多个&连接
多少助力停止默认9999个 XDLYNUM='100'
抽奖次数默认抽完 XDLYLTNUM='200'
抽奖间隔默认1秒 XDLYDELAY='3'
助力间隔默认1秒 HLDELAY='3'
垃圾券数量默认10次CXJLJQ_COUNT='20'
2024-10-30 04:00:23 +00:00
关闭抽奖默认助力完车头自动抽奖CXJHELP_NODRAW='true'\n`),await JKLOcXS());if(TZ2FNo(DP5mJuK=yV8zkgV[oWED3G1[PsVT6Lv(0x0)][DZxmaGa(0x73)]]?yV8zkgV[IWiiJLD(PsVT6Lv(0x1a))]():yV8zkgV[oWED3G1[PsVT6Lv(0x1b)]],UHxfE2)&&r7nKaJC.WFvNgz>-0x9){var Qj7btGB=fBONp9(oWED3G1=>{return mHPLzL8[oWED3G1>0x136?oWED3G1+0x1f:oWED3G1+0x10]},0x1);RJfKUl(oWED3G1[PsVT6Lv(-0x21)]=[IWiiJLD(0x4b)],oWED3G1.y36g6A=TZ2FNo(console[xWKQ7G(0x43)](V19zSi2(oWED3G1[DZxmaGa(0x7b)][0x0]+'N',UHxfE2,jtorps(-0x2a))),U6ekpj[IWiiJLD(PsVT6Lv(0x1c))](LTYjWk((...oWED3G1)=>{RJfKUl(oWED3G1[DZxmaGa(0x7d)]=0x1,oWED3G1[0xcb]=oWED3G1[0x0]);return oWED3G1[Qj7btGB(0xb2)][IWiiJLD(DZxmaGa(0xac))](UHxfE2)},Qj7btGB(0x30)))));if(oWED3G1.y36g6A==V19zSi2(Qj7btGB(0x30),jtorps(-0x16))){return TZ2FNo(console[xWKQ7G(0x43)](IWiiJLD(0x4e)),void 0x0)};Ub2aY7Y=U6ekpj[oWED3G1.y36g6A]}else{RJfKUl(console[xWKQ7G(DZxmaGa(0xa2))](IWiiJLD(DZxmaGa(0xb9))+xWKQ7G[MIyBwAb(0x1e3)](void 0x0,[0x50])+'车头'),Ub2aY7Y=U6ekpj[0x0])}if(TZ2FNo(n0ff8Dk=Ub2aY7Y,$[xWKQ7G(0x51)+DZxmaGa(0xbb)]=decodeURIComponent(n0ff8Dk[xWKQ7G(DZxmaGa(0xcd))](/pt_pin=([^; ]+)(?=;?)/)&&n0ff8Dk[xWKQ7G(0x52)](/pt_pin=([^; ]+)(?=;?)/)[DZxmaGa(0x7f)]),$[IWiiJLD(0x53)]=!0x0,$[IWiiJLD(DZxmaGa(0xba))]='',$[IWiiJLD[MIyBwAb(0x1e3)](undefined,[0x55])]=DZxmaGa(0x96),$[PsVT6Lv(0x36)]=DP5mJuK,$[IWiiJLD(0x56)+xWKQ7G(0x57)]=DZxmaGa(0x94),$[xWKQ7G(PsVT6Lv(0x12))]=PsVT6Lv(-0x8),console[xWKQ7G(DZxmaGa(0xa2))](`\n车头初始化`),console[xWKQ7G(PsVT6Lv(0x6))](`账号${$[IWiiJLD(0x59)+'me']||$[xWKQ7G[MIyBwAb(0x1e4)](DZxmaGa(0x8b),DZxmaGa(0x75))+PsVT6Lv(0x1f)]}`),await R7geR1Y(),V19zSi2($[IWiiJLD(0x53)],jtorps(-0x20)))&&r7nKaJC.WFvNgz>-PsVT6Lv(0x20)){RJfKUl(oWED3G1.fTmRanW=xWKQ7G(0x5e),oWED3G1[DZxmaGa(0x8f)]=xWKQ7G(0x5d));if(TZ2FNo($[xWKQ7G(0x5a)]($[xWKQ7G(PsVT6Lv(-0x19))],`提示cookie已失效`,`账号${$[IWiiJLD(PsVT6Lv(0x21))+'me']||$[xWKQ7G[MIyBwAb(DZxmaGa(0x93))](void 0x0,[PsVT6Lv(0x22)])]}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`,{[oWED3G1[0xf]]:oWED3G1.fTmRanW}),$[xWKQ7G(PsVT6Lv(0x5))]())){RJfKUl(oWED3G1[0x10]=[xWKQ7G[MIyBwAb(DZxmaGa(0x93))](void 0x0,[0x5c])],await NQ0DKt[xWKQ7G[MIyBwAb(PsVT6Lv(-0x9))](DZxmaGa(0x8b),[0x5f])+xWKQ7G(DZxmaGa(0xbf))](`${$[xWKQ7G(PsVT6Lv(-0x19))]}cookie已失效 - ${$[xWKQ7G(0x5c)]}`,`账号 ${$[oWED3G1[0x10][PsVT6Lv(-0x29)]]}\n请重新登录获取cookie`))}return}let Ttk3wF=await xZ8Cni(0x1);if($[IWiiJLD(PsVT6Lv(0x24))]){await O6akhIN($[IWiiJLD(0x61)])}if(TZ2FNo(await $[IWiiJLD(PsVT6Lv(0x25))](DZxmaGa(0xdd)),Ttk3wF[xWKQ7G(0x63)])!='0'){return}if(TZ2FNo($[xWKQ7G(0x43)](`本轮已抽奖次数:${Ttk3wF[xWKQ7G(0x64)][xWKQ7G[MIyBwAb(DZxmaGa(0x9b))](void 0x0,DZxmaGa(0xc2))+IWiiJLD(PsVT6Lv(0x3a))]}`),$[xWKQ7G[MIyBwAb(0x1e4)](PsVT6Lv(-0x11),0x43)](`本轮剩余抽奖次数:${$[IWiiJLD[MIyBwAb(DZxmaGa(0x9b))](PsVT6Lv(-0x11),PsVT6Lv(0x43))]}`),Ttk3wF[xWKQ7G(0x64)][IWiiJLD(0x55)])&&r7nKaJC.IZMsHR[xWKQ7G(0x2b)](0x6)==0x43){oWED3G1[0x12]=IWiiJLD(0x55);if(Ttk3wF[xWKQ7G(PsVT6Lv(0x28))]?.[oWED3G1[PsVT6Lv(0x27)]]?.[IWiiJLD(0x68)]===0x1&&r7nKaJC.IZMsHR[xWKQ7G(0x2b)](PsVT6Lv(0x5))==DZxmaGa(0xa2)){var zH7Bn7=(oWED3G1,IWiiJLD,DZxmaGa,QnUvns,Qj7btGB)=>{if(typeof QnUvns===MIyBwAb(0x1c9)){QnUvns=QaJcey}if(typeof Qj7btGB===MIyBwAb(0x1c9)){Qj7btGB=kwjrZF}if(DZxmaGa==QnUvns){return IWiiJLD?oWED3G1[Qj7btGB[IWiiJLD]]:kwjrZF[oWED3G1]||(DZxmaGa=Qj7btGB[oWED3G1]||QnUvns,kwjrZF[oWED3G1]=DZxmaGa(HdjM1M[oWED3G1]))}if(QnUvns===zH7Bn7){QaJcey=IWiiJLD;return QaJcey(DZxmaGa)}if(oWED3G1!==IWiiJLD){return Qj7btGB[oWED3G1]||(Qj7btGB[oWED3G1]=QnUvns(HdjM1M[oWED3G1]))}if(DZxmaGa&&QnUvns!==QaJcey){zH7Bn7=QaJcey;return zH7Bn7(oWED3G1,-0x1,DZxmaGa,QnUvns,Qj7btGB)}if(DZxmaGa==oWED3G1){return IWiiJLD[kwjrZF[DZxmaGa]]=zH7Bn7(oWED3G1,IWiiJLD)}if(IWiiJLD){[Qj7btGB,IWiiJLD]=[QnUvns(Qj7btGB),oWED3G1||DZxmaGa];return zH7Bn7(oWED3G1,Qj7btGB,DZxmaGa)}};$[xWKQ7G(0x43)](`本轮助力奖励进度:${Ttk3wF[xWKQ7G[MIyBwAb(0x1e4)](void 0x0,PsVT6Lv(0x28))][IWiiJLD(0x55)]
2024-10-16 16:54:16 +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