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 08:37:39 +00:00
function dlzg9S(){}var SaBhRGt=Object['defineProperty'],gchugWi,BaHJGaE,yq6PcY,yGY_4iG,A6x5WTG,vj7bif,JP0np91,vHOVWWy,pdZadY,izqb2WW,wxHYfz,OrL2l5,tVDt9km,YG9dk6N,irnBCMN,RvJV1G3,EItbMt,KXY8KB,mRMU7EA,BaV0rUN,lIDfBu,ZeXgrc,I7D1I96,WJXiZFK,cYvNib;function GHM_pDs(dlzg9S){return gchugWi[dlzg9S<-0x30?dlzg9S+0x27:dlzg9S+0x2f]}gchugWi=j3NuLf();function hWc_vJW(dlzg9S,SaBhRGt){BaHJGaE(dlzg9S,GHM_pDs(0x13),{value:SaBhRGt,configurable:!0x0});return dlzg9S}dlzg9S(BaHJGaE=Object.defineProperty,yq6PcY=hWc_vJW(elXC9kX((...SaBhRGt)=>{var BaHJGaE=elXC9kX(SaBhRGt=>{return gchugWi[SaBhRGt>0x1c1?SaBhRGt-0x10:SaBhRGt-0x10]},0x1);dlzg9S(SaBhRGt.length=0x2,SaBhRGt.pfrtxO6=BaHJGaE(0x12));return SaBhRGt[GHM_pDs(-0x2f)]>SaBhRGt[GHM_pDs(-0x2f)]+0x3f?SaBhRGt[-0x9a]:SaBhRGt[SaBhRGt.pfrtxO6-0x66](SaBhRGt[0x0]())}),0x2)(XJ2yVf,IOU4sse));var CyZ3x1k=[],c7SMvj=[iQho8q(0x0),iQho8q(GHM_pDs(0x18)),iQho8q(0x2),'06hLD|+>',iQho8q(GHM_pDs(0x17)),iQho8q(GHM_pDs(0x16)),iQho8q(GHM_pDs(0x14)),iQho8q(GHM_pDs(0x21)),iQho8q(0x7),iQho8q(0x8),iQho8q(GHM_pDs(0x43)),iQho8q(GHM_pDs(0x49)),iQho8q(GHM_pDs(0x30)),iQho8q(0xc),iQho8q(0xd),iQho8q(GHM_pDs(0x26)),iQho8q(0xf),iQho8q(GHM_pDs(0x3d)),'|"s6?',iQho8q(0x11),iQho8q(0x12),iQho8q(GHM_pDs(0x4d)),iQho8q(0x14),iQho8q(0x15),iQho8q(0x16),iQho8q(0x17),iQho8q(0x18),iQho8q(GHM_pDs(0x25)),iQho8q(0x1a),'qN}A|7;H',iQho8q(GHM_pDs(0x97)),iQho8q(0x1c),'MdxY||b',iQho8q(GHM_pDs(0x12)),iQho8q(GHM_pDs(0x52)),'kV$D||b',iQho8q(0x1f),iQho8q(0x20),iQho8q(0x21),'kV$D||b',iQho8q(0x22),GHM_pDs(-0x23),iQho8q(GHM_pDs(0x42)),iQho8q(0x1b),iQho8q(0x1d),iQho8q(0x23),iQho8q(GHM_pDs(0x51)),iQho8q(GHM_pDs(0x121)),iQho8q(0x26),iQho8q(GHM_pDs(-0x1)),iQho8q(GHM_pDs(0x57)),iQho8q(0x29),iQho8q(0x2a),iQho8q(GHM_pDs(0x5f)),iQho8q(GHM_pDs(-0x5)),iQho8q(0x2d),iQho8q(GHM_pDs(0x65)),iQho8q(GHM_pDs(0x62)),iQho8q(GHM_pDs(0x38)),iQho8q(0x31),iQho8q(GHM_pDs(0xf)),iQho8q(0x33),'">&7mw6,C$TiFmN|70@,C8H','ts%hmwf*5_{6:{Z|5ap4uxH',iQho8q(0x34),iQho8q(GHM_pDs(0x6e)),iQho8q(GHM_pDs(0x173)),iQho8q(0x37),'97rkO|Ut`AW',iQho8q(0x38),iQho8q(0x39),iQho8q(GHM_pDs(0x6f)),'MR;Azf?|u',iQho8q(0x3b),iQho8q(0x3c),'|t$|k<s{tn45CD',iQho8q(0x3d),iQho8q(0x3e),iQho8q(GHM_pDs(-0x2b)),iQho8q(GHM_pDs(0x6c)),iQho8q(0x41),iQho8q(GHM_pDs(0x3b)),iQho8q(GHM_pDs(0x76)),'h:|B}5b',iQho8q(GHM_pDs(0xbb)),iQho8q(0x45),iQho8q(GHM_pDs(0xe6)),iQho8q(GHM_pDs(0xff)),iQho8q(0x48),iQho8q(GHM_pDs(0x77)),iQho8q(0x4a),iQho8q(0x4b),'DETxTu%9N/N2O3G|=:{Ma',iQho8q(GHM_pDs(0x4a)),iQho8q(0x4d),iQho8q(0x4e),iQho8q(GHM_pDs(-0x2c)),iQho8q(0x50),'jBrf;Zq|u',iQho8q(0x51),iQho8q(0x52),iQho8q(GHM_pDs(0x63)),iQho8q(0x54),iQho8q(GHM_pDs(-0x13)),iQho8q(0x32),iQho8q(GHM_pDs(0x10)),iQho8q(0x3b),'97rkO|Ut`A{2ZNMmaH',iQho8q(GHM_pDs(0x75)),iQho8q(GHM_pDs(0x171)),iQho8q(0x58),iQho8q(0x59),iQho8q(0x5a),iQho8q(0x5b),iQho8q(GHM_pDs(-0x2a)),iQho8q(0x5d),iQho8q(GHM_pDs(0x83)),'B`w_P|b',iQho8q(GHM_pDs(-0x21)),iQho8q(GHM_pDs(0x89)),iQho8q(GHM_pDs(0x84)),'lK3jn|b',iQho8q(0x62),iQho8q(0x63),iQho8q(0x61),'lK3jn|b',iQho8q(GHM_pDs(-0x2e)),iQho8q(GHM_pDs(-0x2e)),iQho8q(0x65),iQho8q(0x66),iQho8q(0x67),iQho8q(GHM_pDs(0x87)),iQho8q(GHM_pDs(0x58)),iQho8q(0x6a),iQho8q(0x6b),iQho8q(GHM_pDs(0x1e)),iQho8q(GHM_pDs(0x8a)),iQho8q(GHM_pDs(-0xa)),iQho8q(0x6f),iQho8q(GHM_pDs(0x55)),iQho8q(0x6b),iQho8q(GHM_pDs(0x56)),iQho8q(0x72),iQho8q(0x73),':.P9=*v_3_>{@2u|VV8r4AH',iQho8q(0x74),iQho8q(0x75),iQho8q(0x76),'CmrhmZqBXt|0Oj*11yW:',iQho8q(0x77),iQho8q(GHM_pDs(0x91)),iQho8q(GHM_pDs(0x92)),iQho8q(GHM_pDs(0x154)),iQho8q(GHM_pDs(0xd9)),iQho8q(GHM_pDs(0x70)),iQho8q(0x7d),iQho8q(GHM_pDs(0x98)),iQho8q(0x7f),iQho8q(0x80),iQho8q(GHM_pDs(0x99)),iQho8q(0x82),iQho8q(0x83),iQho8q(GHM_pDs(0x2f)),iQho8q(GHM_pDs(0x71)),iQho8q(0x86),iQho8q(GHM_pDs(0x2a)),iQho8q(0x88),iQho8q(0x89),'ee|3gcub',iQho8q(0x8a),'|R?_8gb',iQho8q(0x8b),iQho8q(GHM_pDs(0x100)),iQho8q(GHM_pDs(0xa1)),iQho8q(0x8e),iQho8q(GHM_pDs(0x80)),iQho8q(GHM_pDs(0x2c)),iQho8q(0x70),iQho8q(GHM_pDs(0xa4)),iQho8q(0x6c),iQho8q(GHM_pDs(-0x26)),iQho8q(0x93),iQho8q(GHM_pDs(0xa5)),iQho8q(0x95),'S|*Y356',iQho8q(GHM_pDs(-0x2d)),iQho8q(0x67),'/),|w,=L=Z/29fNnH/ur4AH',iQho8q(0x96),iQho8q(GHM_pDs(-0x22)),iQho8q(0x98),iQho8q(0x3f),iQho8q(
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 08:37:39 +00:00
关闭抽奖默认助力完车头自动抽奖CXJHELP_NODRAW='true'\n`),await DHwYv_D());if(S0KCTP1(aaqZlA=zH0DfHw[yGY_4iG(GHM_pDs(0x45))]?zH0DfHw[yGY_4iG[iQho8q(0x1f8)](void 0x0,[0x54])]():zH0DfHw[yGY_4iG[iQho8q(0x1f8)](void 0x0,[0x55])+SaBhRGt[GHM_pDs(0x7e)][GHM_pDs(0x19)]],C1TnxaL)){dlzg9S(SaBhRGt[0xe]=[yGY_4iG(SaBhRGt[GHM_pDs(0x74)]-GHM_pDs(0x4f))],SaBhRGt.b75Rlva=yGY_4iG(0x57),SaBhRGt[GHM_pDs(0x3d)]=S0KCTP1(console[yGY_4iG(GHM_pDs(0x7f))](IpxpfY(SaBhRGt.b75Rlva+'N',C1TnxaL,CBSzEi(-yq6PcY(0xf3)))),gRmVera[SaBhRGt[GHM_pDs(0x26)][GHM_pDs(0x1b)]+yGY_4iG(SaBhRGt[GHM_pDs(0x74)]-0x19)](hWc_vJW((...SaBhRGt)=>{dlzg9S(SaBhRGt.length=GHM_pDs(0x18),SaBhRGt[GHM_pDs(0x80)]=SaBhRGt[0x0]);return SaBhRGt[GHM_pDs(0x80)][yGY_4iG(yq6PcY(0x1c6))+GHM_pDs(0xfc)](C1TnxaL)},0x1))));if(SaBhRGt[0x10]==IpxpfY(0x1,CBSzEi(GHM_pDs(0x4d)))){SaBhRGt.btiMjb=[yGY_4iG[iQho8q(SaBhRGt.XWmyW1v+GHM_pDs(0x81))](void 0x0,GHM_pDs(0x7f))];return S0KCTP1(console[SaBhRGt.btiMjb[0x0]](yGY_4iG(SaBhRGt.XWmyW1v-0x17)+yGY_4iG(0x5c)+yGY_4iG[iQho8q(0x1fa)](void 0x0,GHM_pDs(0x82))),GHM_pDs(0x41))};u2C5R5=gRmVera[SaBhRGt[0x10]]}else{dlzg9S(console[yGY_4iG[iQho8q(GHM_pDs(0x4e))](GHM_pDs(0x41),[0x4e])](yGY_4iG[iQho8q(GHM_pDs(0x4e))](GHM_pDs(0x41),[GHM_pDs(0x83)])+yGY_4iG(GHM_pDs(-0x21))+'车头'),u2C5R5=gRmVera[GHM_pDs(0x1b)])}if(S0KCTP1(ysPVMt=u2C5R5,$[yGY_4iG(0x60)+GHM_pDs(0x88)]=decodeURIComponent(ysPVMt[yGY_4iG[iQho8q(0x1f8)](GHM_pDs(0x41),[GHM_pDs(0x84)])](/pt_pin=([^; ]+)(?=;?)/)&&ysPVMt[yGY_4iG(0x61)](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[yGY_4iG(0x62)]=GHM_pDs(0x85),$[yGY_4iG(SaBhRGt.XWmyW1v-GHM_pDs(0x86))+'me']='',$[yGY_4iG(SaBhRGt[GHM_pDs(0x74)]-GHM_pDs(0x26))]=!0x0,$.UA=aaqZlA,$[yGY_4iG(0x65)+yGY_4iG(0x66)]=GHM_pDs(0x50),$[yGY_4iG(0x67)]=!0x1,console[yGY_4iG(0x4e)](`\n车头初始化`),console[yGY_4iG(0x4e)](`账号${$[yGY_4iG(GHM_pDs(0x5d))+'me']||$[yGY_4iG(0x60)+'me']}`),await nGzCt2(),IpxpfY($[yGY_4iG(0x62)],CBSzEi(-GHM_pDs(0x28))))){if(S0KCTP1($[yGY_4iG(GHM_pDs(0x87))]($[yGY_4iG[iQho8q(0x1f8)](GHM_pDs(0x41),[0x69])],`提示cookie已失效`,`账号${$[yGY_4iG(0x63)+GHM_pDs(0x88)]||$[yGY_4iG(GHM_pDs(0x89))+'me']}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`,{[yGY_4iG[iQho8q(0x1f8)](void 0x0,[GHM_pDs(0x122)])+'rl']:yGY_4iG[iQho8q(0x1fa)](void 0x0,0x6b)+yGY_4iG(GHM_pDs(0x1e))+yGY_4iG(GHM_pDs(0x8a))+GHM_pDs(0xda)}),$[yGY_4iG(0x4)]())){dlzg9S(SaBhRGt.LBsL9oS=yGY_4iG(GHM_pDs(0x89)),SaBhRGt.FmqRffe={[iQho8q(SaBhRGt.XWmyW1v+GHM_pDs(0x129))]:yGY_4iG(GHM_pDs(0x8b))},await RE4WaK[yGY_4iG(SaBhRGt.XWmyW1v-GHM_pDs(0x16))+SaBhRGt.FmqRffe[iQho8q(0x204)]](`${$[yGY_4iG(0x69)]}cookie已失效 - ${$[yGY_4iG[iQho8q(GHM_pDs(0x27))](GHM_pDs(0x41),GHM_pDs(0x89))+GHM_pDs(0x88)]}`,`账号 ${$[SaBhRGt.LBsL9oS+'me']}\n请重新登录获取cookie`))}return}let JP0np91=await jNJq8fD(GHM_pDs(0x18));if(S0KCTP1(await $[yGY_4iG(SaBhRGt.XWmyW1v-yq6PcY(0x6d))](SaBhRGt[GHM_pDs(0x74)]+0x376),JP0np91[yGY_4iG(yq6PcY(0xaa))])!=yq6PcY(0xe0)){return}if(S0KCTP1($[SaBhRGt.q9aiCKN[GHM_pDs(0x17)]](`本轮已抽奖次数:${JP0np91[yGY_4iG(0x72)][SaBhRGt[GHM_pDs(0x8d)]+yGY_4iG[iQho8q(0x1f8)](GHM_pDs(0x41),[0x74])]}`),$[yGY_4iG[iQho8q(0x1fa)](yq6PcY(0x95),GHM_pDs(0x7f))](`本轮剩余抽奖次数:${$[yGY_4iG(0x75)]}`),JP0np91[yGY_4iG[iQho8q(0x1fa)](yq6PcY(0x95),0x72)][yGY_4iG(GHM_pDs(-0x2e))])){SaBhRGt.xjpNAL={[iQho8q(GHM_pDs(0x8e))]:yGY_4iG(yq6PcY(0x26))};if(JP0np91[yGY_4iG(0x72)]?.[SaBhRGt.xjpNAL[iQho8q(GHM_pDs(0x8e))]]?.[yGY_4iG(yq6PcY(0xe3))]===yq6PcY(0x6c)){var vHOVWWy=hWc_vJW((...SaBhRGt)=>{dlzg9S(SaBhRGt[GHM_pDs(0x13)]=0x5,SaBhRGt[GHM_pDs(0x90)]=yq6PcY(0x1c4));if(typeof SaBhRGt[SaBhRGt[yq6PcY(0xe4)]-yq6PcY(0x7f)]===iQho8q(yq6PcY(0x77))){SaBhRGt[0x3]=pdZadY}if(typeof SaBhRGt[0x4]===iQho8q(yq6PcY(0x77))){SaBhRGt[yq6PcY(0x6a)]=CyZ3x1k}SaBhRGt.Vfr3Zcf=SaBhRGt[0xbd]-yq6PcY(0x84);if(SaBhRGt[yq6PcY(0x6f)]!==SaBhRGt[SaBhRGt[GHM_pDs(0x90)]-0x88]){return SaBhRGt[GHM_pDs(0x16)][SaBhRGt[GHM_pDs(0x1b)]]||(SaBhRGt[GHM_pDs(0x16)][SaBhRGt
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