jdpro/jd_xdly_help.js

21 lines
158 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-17 17:14:20 +00:00
function GHbeyK(){}var OUGuNau=Object['defineProperty'],y4wjV1D,rgUw5H,w0XGd6k,maroPLV,xCnhdg,QYxiBjL,raj7WW,Fa8GLMY,zPdRBvG,xd56qOz,Jm53qb,NytiTt,lw4IiOP,c5T_Sk,w7p3aI,JvmpS5f,Bny5YWn,UAPPgB4,Mfyypcg,bzJO7O,dj0N_9,uPETFt,HRL_meG,iUS_oa,Ck03AP;function fVRsv9(GHbeyK){return y4wjV1D[GHbeyK<0xe?GHbeyK+0x60:GHbeyK<0xe?GHbeyK+0x4d:GHbeyK<0xe?GHbeyK+0x35:GHbeyK-0xf]}y4wjV1D=Xq7CWqk();function TzkBbO(GHbeyK,OUGuNau){var w0XGd6k=_ygeRn(GHbeyK=>{return y4wjV1D[GHbeyK<-0x7?GHbeyK-0x34:GHbeyK<0x1be?GHbeyK<-0x7?GHbeyK-0x60:GHbeyK<-0x7?GHbeyK+0x5f:GHbeyK+0x6:GHbeyK-0x5f]},0x1);return rgUw5H(GHbeyK,w0XGd6k(0x44),{value:OUGuNau,configurable:!0x0})}GHbeyK(rgUw5H=Object.defineProperty,w0XGd6k=TzkBbO(_ygeRn((...OUGuNau)=>{var rgUw5H=_ygeRn(OUGuNau=>{return y4wjV1D[OUGuNau>0x29?OUGuNau>0x1ee?OUGuNau-0x2f:OUGuNau-0x2a:OUGuNau+0x4]},0x1);GHbeyK(OUGuNau.length=fVRsv9(0xf),OUGuNau.zb5NtV=OUGuNau[rgUw5H(0x2b)]);return OUGuNau.zb5NtV(OUGuNau[0x0]())}),fVRsv9(0xf))(kSyAKMg,DREq140));var K2rxWP=[],gF07xDR=[vPzYG9e(0x0),vPzYG9e(fVRsv9(0x10)),vPzYG9e(0x2),vPzYG9e(fVRsv9(0x4f)),vPzYG9e(fVRsv9(0x51)),vPzYG9e(fVRsv9(0x66)),vPzYG9e(0x6),vPzYG9e(0x7),'775M,il|','<*CGM}5|','J1.#Znl|',vPzYG9e(0x8),vPzYG9e(0x9),vPzYG9e(fVRsv9(0x61)),vPzYG9e(fVRsv9(0x62)),vPzYG9e(fVRsv9(0x74)),vPzYG9e(0xd),vPzYG9e(fVRsv9(0xac)),vPzYG9e(0xf),vPzYG9e(0x10),vPzYG9e(fVRsv9(0xbb)),vPzYG9e(fVRsv9(0x89)),vPzYG9e(fVRsv9(0x96)),vPzYG9e(fVRsv9(0x10a)),vPzYG9e(fVRsv9(0x97)),vPzYG9e(fVRsv9(0x99)),vPzYG9e(0x17),vPzYG9e(0x18),vPzYG9e(0x19),vPzYG9e(0x1a),vPzYG9e(0x1b),vPzYG9e(0x1c),vPzYG9e(fVRsv9(0x64)),vPzYG9e(fVRsv9(0x9b)),vPzYG9e(0x1f),vPzYG9e(0x20),vPzYG9e(0x21),':NDi8Zl|',vPzYG9e(0x22),vPzYG9e(0x23),vPzYG9e(0x24),vPzYG9e(fVRsv9(0x11)),vPzYG9e(fVRsv9(0x9d)),vPzYG9e(0x21),vPzYG9e(fVRsv9(0x4d)),vPzYG9e(fVRsv9(0x11)),vPzYG9e(0x26),vPzYG9e(0x25),vPzYG9e(0x26),vPzYG9e(0x21),vPzYG9e(0x23),vPzYG9e(0x27),vPzYG9e(fVRsv9(0x9c)),vPzYG9e(fVRsv9(0x43)),vPzYG9e(0x2a),vPzYG9e(0x2b),vPzYG9e(0x2c),vPzYG9e(0x2d),fVRsv9(0x29),vPzYG9e(fVRsv9(0x6a)),vPzYG9e(0x2f),vPzYG9e(fVRsv9(0x7f)),vPzY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9e(0x62),vPzYG9e(fVRsv9(0x14)),vPzYG9e(0x64),'m.&paif|',vPzYG9e(0x65),vPzYG9e(0x66),vPzYG9e(fVRsv9(0xc8)),vPzYG9e(fVRsv9(0xdc)),vPzYG9e(0x69),vPzYG9e(fVRsv9(0x7b)),vPzYG9e(0x6b),vPzYG9e(0x6c),vPzYG9e(fVRsv9(0x83)),vPzYG9e(0x6e),';wEGM94|',vPzYG9e(0x6f),vPzYG9e(0x70),fVRsv9(0x12),vPzYG9e(0x71),vPzYG9e(fVRsv9(0x13)),vPzYG9e(fVRsv9(0x19)),vPzYG9e(0x74),vPzYG9e(fVRsv9(0x5f)),fVRsv9(0x12),'V56G=9p|',vPzYG9e(fVRsv9(0x13)),vPzYG9e(fVRsv9(0x16e)),vPzYG9e(fVRsv9(0x58)),'h>o.P)GpXp|/%+;@55I?S]y',vPzYG9e(fVRsv9(0xd1)),vPzYG9e(fVRsv9(0x57)),vPzYG9e(fVRsv9(0x45)),vPzYG9e(0x7b),'|c))1jP6Yhgx4+58x0',vPzYG9e(0x7c),vPzYG9e(0x7d),vPzYG9e(fVRsv9(0x68)),vPzYG9e(fVRsv9(0xfe)),vPzYG9e(0x80),'H|;mmgzVXuX2X)_$_FSGl+H|;mmgzVXu.','H|*=~BSXb#|Z9~De;mU^)dY"L}+U%(1f/y',vPzYG9e(0x81),vPzYG9e(fVRsv9(0x85)),vPzYG9e(fVRsv9(0xdf)),vPzYG9e(fVRsv9(0xe2)),vPzYG9e(0x6c),vPzYG9e(0x85),'.dtMQ@U|',vPzYG9e(0x86),vPzYG9e(fVRsv9(0xde)),vPzYG9e(0x88),vPzYG9e(fVRsv9(0x1c4
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-17 17:14:20 +00:00
关闭抽奖默认助力完车头自动抽奖CXJHELP_NODRAW='true'\n`),await new H2myyqM(OUGuNau.y7W1svE[vPzYG9e(fVRsv9(0x192))],maroPLV(0x56),maroPLV(0x57)).Nicvv8I);if(ILEoJb(K655o7=xOI2rWQ[maroPLV(fVRsv9(0x91))]?xOI2rWQ[maroPLV(0x58)]():xOI2rWQ[maroPLV(0x59)+maroPLV(fVRsv9(0xc2))],xRJ7V6y)){OUGuNau[fVRsv9(0xc5)]=ILEoJb(console[maroPLV(fVRsv9(0xbe))](vEHG3N(maroPLV(0x5b)+'N',xRJ7V6y,uPETFt=-fVRsv9(0x64))),mwXMfh[maroPLV(0x5c)+maroPLV(fVRsv9(0xa1))](TzkBbO((...OUGuNau)=>{GHbeyK(OUGuNau.length=fVRsv9(0x10),OUGuNau[0x1e]=fVRsv9(0xc3));return OUGuNau[fVRsv9(0x9b)]>fVRsv9(0xfa)?OUGuNau[-fVRsv9(0x45)]:OUGuNau[fVRsv9(0x55)][maroPLV(fVRsv9(0xc4))+fVRsv9(0x154)](xRJ7V6y)},fVRsv9(0x10))));if(OUGuNau[fVRsv9(0xc5)]==vEHG3N(fVRsv9(0x10),uPETFt=fVRsv9(0x10))){return ILEoJb(console[maroPLV[vPzYG9e(0x1fc)](void 0x0,fVRsv9(0xbe))](maroPLV(fVRsv9(0xc6))+maroPLV(0x60)+maroPLV(OUGuNau[fVRsv9(0xb4)]+fVRsv9(0xc7))+'执行'),fVRsv9(0x63))};XSl7gat=mwXMfh[OUGuNau.YNpZVL]}else{GHbeyK(console[maroPLV(0x4f)](maroPLV(0x62)+maroPLV(fVRsv9(0x14))+'车头'),XSl7gat=mwXMfh[0x0])}if(ILEoJb(EFqCvP=XSl7gat,$[maroPLV(0x64)+'me']=decodeURIComponent(EFqCvP[maroPLV(fVRsv9(0xef))](/pt_pin=([^; ]+)(?=;?)/)&&EFqCvP[maroPLV(0x65)](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[maroPLV[vPzYG9e(0x1fe)](undefined,[0x66])]=fVRsv9(0x94),$[rgUw5H(fVRsv9(0xc8))+fVRsv9(0xca)]='',$[rgUw5H[vPzYG9e(0x1fc)](undefined,0x68)]=!0x0,$[fVRsv9(0xe9)]=K655o7,$[rgUw5H[vPzYG9e(0x1fe)](undefined,[0x69])+maroPLV(OUGuNau[fVRsv9(0xb4)]+fVRsv9(0x70))]=!0x1,$[rgUw5H[vPzYG9e(fVRsv9(0x95))](undefined,[fVRsv9(0xc9)])]=fVRsv9(0x9a),console[maroPLV(0x4f)](`\n车头初始化`),console[maroPLV(fVRsv9(0xbe))](`账号${$[rgUw5H(0x67)+fVRsv9(0xca)]||$[maroPLV(fVRsv9(0xcf))+fVRsv9(0xca)]}`),await H2myyqM(rgUw5H(fVRsv9(0x124)),maroPLV(0x56)),vEHG3N($[maroPLV(fVRsv9(0xf0))],uPETFt=0x29))){var QYxiBjL=TzkBbO((...OUGuNau)=>{GHbeyK(OUGuNau.length=0x5,OUGuNau[fVRsv9(0xcb)]=-fVRsv9(0xcc));if(typeof OUGuNau[OUGuNau[0xc1]+fVRsv9(0xb5)]===vPzYG9e(fVRsv9(0x52))){OUGuNau[0x3]=raj7WW}if(typeof OUGuNau[OUGuNau[0xc1]+0x42]===vPzYG9e(fVRsv9(0x52))){OUGuNau[OUGuNau[OUGuNau[fVRsv9(0xcb)]+0xff]+0x42]=K2rxWP}OUGuNau[fVRsv9(0xcd)]=0x11;if(OUGuNau[0x2]==OUGuNau[0x0]){return OUGuNau[0x1][K2rxWP[OUGuNau[fVRsv9(0xf)]]]=QYxiBjL(OUGuNau[OUGuNau[fVRsv9(0xcd)]-0x11],OUGuNau[fVRsv9(0x10)])}if(OUGuNau[OUGuNau[fVRsv9(0xcb)]+fVRsv9(0x5d)]){[OUGuNau[fVRsv9(0x51)],OUGuNau[fVRsv9(0x10)]]=[OUGuNau[OUGuNau[0xc1]+fVRsv9(0xb5)](OUGuNau[OUGuNau[fVRsv9(0xcd)]-0xd]),OUGuNau[fVRsv9(0x55)]||OUGuNau[0x2]];return QYxiBjL(OUGuNau[fVRsv9(0x55)],OUGuNau[fVRsv9(0x51)],OUGuNau[0x2])}if(OUGuNau[0x2]&&OUGuNau[fVRsv9(0x4f)]!==raj7WW){QYxiBjL=raj7WW;return QYxiBjL(OUGuNau[fVRsv9(0x55)],-0x1,OUGuNau[fVRsv9(0xf)],OUGuNau[fVRsv9(0x4f)],OUGuNau[OUGuNau[fVRsv9(0xcd)]-fVRsv9(0x72)])}if(OUGuNau[0x0]!==OUGuNau[0x1]){return OUGuNau[fVRsv9(0x51)][OUGuNau[0x0]]||(OUGuNau[0x4][OUGuNau[OUGuNau[0xc1]+0x3e]]=OUGuNau[fVRsv9(0x4f)](gF07xDR[OUGuNau[0x0]]))}if(OUGuNau[fVRsv9(0x4f)]===QYxiBjL){raj7WW=OUGuNau[OUGuNau[fVRsv9(0xcb)]+fVRsv9(0x5d)];return raj7WW(OUGuNau[OUGuNau[fVRsv9(0xcd)]-0xf])}},fVRsv9(0x66));if(ILEoJb($[rgUw5H(fVRsv9(0x83))]($[rgUw5H(fVRsv9(0xce))],`提示cookie已失效`,`账号${$[rgUw5H[vPzYG9e(fVRsv9(0x95))](fVRsv9(0x63),[0x67])+fVRsv9(0xca)]||$[maroPLV(0x64)+'me']}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`,{[rgUw5H(0x6f)+'rl']:rgUw5H(0x70)+maroPLV[vPzYG9e(fVRsv9(0x98))](void 0x0,fVRsv9(0xd8))+rgUw5H(OUGuNau[0xcc]+0x107)+maroPLV[vPzYG9e(fVRsv9(0x95))](fVRsv9(0x63),[fVRsv9(0x19)])+rgUw5H[vPzYG9e(fVRsv9(0x98))](void 0x0,0x74)+rgUw5H(fVRsv9(0x5f))+'n'}),$[maroPLV[vPzYG9e(fVRsv9(0x95))](fVRsv9(0x63),[OUGuNau[0xcc]+fVRsv9(0x21)])]())){await WW8A_mM[maroPLV(OUGuNau[fVRsv9(0xb4)]+0x10b)+QYxiBjL(0x77)](`${$[rgUw5H(fVRsv9(0xce))]}cookie已失效 - ${$[maroPLV(fVRsv9(0xcf))+'me']}`,`账号 ${$[maroPLV(0x64)+'me']}\n请重新登录获取cookie`)}return;function raj7WW(...OUGuNau){var rgUw5H;GHb
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