mirror of https://github.com/KingRan/KR.git
28 lines
103 KiB
JavaScript
28 lines
103 KiB
JavaScript
|
/*
|
|||
|
大牌联合0815期
|
|||
|
|
|||
|
活动地址:https://jinggengjcq-isv.isvjcloud.com/jdbeverage/pages/oC202308015dda/oC202308015dda?actId=65cf79ebb2504abab827c95edeb0_230815
|
|||
|
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
变量填写:
|
|||
|
黑名单 用&隔开 pin值
|
|||
|
//export DPLHTY_blacklist=""
|
|||
|
重试次数,默认30
|
|||
|
//export retrynum="30"
|
|||
|
如需修改抽奖次数请设置环境变量:
|
|||
|
//export opencard_draw="3" //次数
|
|||
|
填地址变量看库说明
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#大牌联合0815期
|
|||
|
1 1 1 1 * jd_dplh0815.js, tag=大牌联合0815期, enabled=true
|
|||
|
*/
|
|||
|
let opencard_toShop = "false"
|
|||
|
const $ = new Env("大牌联合0815期");
|
|||
|
var version_='jsjiami.com.v7';const iilI=iii1II;(function(Ii11I1,li1IiI,Illl,Illi,l1IiiI,II1iI1,iI1i1){return Ii11I1=Ii11I1>>0x5,II1iI1='hs',iI1i1='hs',function(il11Il,IIiI1,II1iII,il11Ii,li1Ii1){const ll1I1l=iii1II;il11Ii='tfi',II1iI1=il11Ii+II1iI1,li1Ii1='up',iI1i1+=li1Ii1,II1iI1=II1iII(II1iI1),iI1i1=II1iII(iI1i1),II1iII=0x0;const i1ii11=il11Il();while(!![]&&--Illi+IIiI1){try{il11Ii=-parseInt(ll1I1l(0x1a9,'4vIe'))/0x1+-parseInt(ll1I1l(0x1a4,'Dw%*'))/0x2*(-parseInt(ll1I1l(0x12b,'hXgD'))/0x3)+parseInt(ll1I1l(0x493,'UB$N'))/0x4+parseInt(ll1I1l(0x3d1,'Qmil'))/0x5*(parseInt(ll1I1l(0x26b,'KTiu'))/0x6)+parseInt(ll1I1l(0x4ae,'x*IW'))/0x7+-parseInt(ll1I1l(0x18d,'Qmil'))/0x8+-parseInt(ll1I1l(0x432,'rlKR'))/0x9;}catch(iii1){il11Ii=II1iII;}finally{li1Ii1=i1ii11[II1iI1]();if(Ii11I1<=Illi)II1iII?l1IiiI?il11Ii=li1Ii1:l1IiiI=li1Ii1:II1iII=li1Ii1;else{if(II1iII==l1IiiI['replace'](/[rBgpUfhQudWHGAKbYLeIwqR=]/g,'')){if(il11Ii===IIiI1){i1ii11['un'+II1iI1](li1Ii1);break;}i1ii11[iI1i1](li1Ii1);}}}}}(Illl,li1IiI,function(ill1i,ill1l,iiIIi1,i1liI1,l1IilI,ll1I1i,iiiiII){return ill1l='\x73\x70\x6c\x69\x74',ill1i=arguments[0x0],ill1i=ill1i[ill1l](''),iiIIi1='\x72\x65\x76\x65\x72\x73\x65',ill1i=ill1i[iiIIi1]('\x76'),i1liI1='\x6a\x6f\x69\x6e',(0x1395f5,ill1i[i1liI1](''));});}(0x1820,0xbb49e,Iii11l,0xc3),Iii11l)&&(version_=Iii11l);const li1lI=$['isNode']()?require(iilI(0x472,'4vIe')):'',iliiiI=$['isNode']()?require('./sendNotify'):'';let IIlIII=[],i1Iil='';if($['isNode']()){Object[iilI(0x4c7,'X7$a')](li1lI)['forEach'](lIilII=>{const IIilI1=iilI;IIlIII[IIilI1(0x359,'EEgR')](li1lI[lIilII]);});if(process['env']['JD_DEBUG']&&process['env']['JD_DEBUG']==='false')console[iilI(0x140,'T#fK')]=()=>{};}else IIlIII=[$['getdata']('CookieJD'),$['getdata'](iilI(0x459,'c9Xt')),...Il1I1i($[iilI(0x407,'IuU8')](iilI(0x1b1,'g#xJ'))||'[]')[iilI(0x354,'Afhr')](ilIlli=>ilIlli[iilI(0x32c,'A7uR')])][iilI(0x43b,'A7uR')](I1IIlI=>!!I1IIlI);let lIi11i='30',i1Iii='0';function iii1II(_0x25fffb,_0x5815ad){const _0x3f5e78=Iii11l();return iii1II=function(_0x468d80,_0x5800c8){_0x468d80=_0x468d80-0xf6;let _0x2cb21b=_0x3f5e78[_0x468d80];if(iii1II['OiRmKc']===undefined){var _0x18fffb=function(_0x3c7367){const _0x32c036='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41c16e='',_0x371ea0='';for(let _0x343d53=0x0,_0x4eb04e,_0x551995,_0x1d41e9=0x0;_0x551995=_0x3c7367['charAt'](_0x1d41e9++);~_0x551995&&(_0x4eb04e=_0x343d53%0x4?_0x4eb04e*0x40+_0x551995:_0x551995,_0x343d53++%0x4)?_0x41c16e+=String['fromCharCode'](0xff&_0x4eb04e>>(-0x2*_0x343d53&0x6)):0x0){_0x551995=_0x32c036['indexOf'](_0x551995);}for(let _0x39196a=0x0,_0x31ba36=_0x41c16e['length'];_0x39196a<_0x31ba36;_0x39196a++){_0x371ea0+='%'+('00'+_0x41c16e['charCodeAt'](_0x39196a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x371ea0);};const _0x30cba4=function(_0x2c036e,_0x5415fe){let _0x4ffdd9=[],_0xebede6=0x0,_0x52fff1,_0x3f60bf='';_0x2c036e=_0x18fffb(_0x2c036e);let _0x5ff1be;for(_0x5ff1be=0x0;_0x5ff1be<0x100;_0x5ff1be++){_0x4ffdd9[_0x5ff1be]=_0x5ff1be;}for(_0x5ff1be=0x0;_0x5ff1be<0x100;_0x5ff1be++){_0xebede6=(_0xebede6+_0x4ffdd9[_0x5ff1be]+_0x5415fe['charCodeAt'](_0x5ff1be%_0x5415fe['length']))%0x100,_0x52fff1=_0x4ffdd9[_0x5ff1be],_0x4ffdd9[_0x5ff1be]=_0x4ffdd9[_0xebede6],_0x4ffdd9[_0xebede6]=_0x52fff1;}_0x5ff1be=0x0,_0xebede6=0x0;for(let _0xec893b=0x0;_0xec893b<_0x2c036e['length'];_0xec893b++){_0x5ff1be=(_0x5ff1be+0x1)%0x100,_0xebede6=(_0xebede6+_0x4ffdd9[_0x5ff1be])%0x100,_0x52fff1=_0x4ffdd9[_0x5ff1be],_0x4ffdd9[_0x5ff1be]=_0x4ffdd9[_0xebede6],_0x4ffdd9[_0xebede6]=_0x52fff1,_0x3f60bf+=String['fromCharCode'](_0x2c036e['charCodeAt'](_0xec893b)^_0x4ffdd9[(_0x4ffdd9[_0x5ff1be]+_0x4ffdd9[_0xebede6])%0x100]);}return _0x3f60bf;};iii1II['YilJTR']=_0x30cba4,_0x25fffb=arguments,iii1II['OiRmKc']=!![];}const _0x202153=_0x3f5e78[0x0],_0x523f77=_0x468d80+_0x202153,_0x1cd51f=_0x25fffb[_0x523f77];return!_0x1cd51f?(iii1II['JpRMXs']===undefined&&(iii1II['JpRMXs']=!![]),_0x2cb21b=iii1II['YilJTR'](_0x2cb21b,_0x5800c8),_0x25fffb[_0x523f77]=_0x2cb21b):_0x2cb21b=_0x1cd51f,_0x2cb21b;},iii1II(_0x25fffb,_0x5815a
|
|||
|
// prettier-ignore
|
|||
|
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
|