KR/jd_dplh080101.js

28 lines
103 KiB
JavaScript
Raw Normal View History

2023-08-01 20:06:42 +08:00
/*
大牌联合080101期
活动地址https://jinggengjcq-isv.isvjcloud.com/jdbeverage/pages/oC20230801aslw/oC20230801aslw?actId=6ad9acbdda784f85ad_23080101
自行运行有水无水自测
变量填写
黑名单 &隔开 pin值
//export DPLHTY_blacklist=""
重试次数默认30
//export retrynum="30"
如需修改抽奖次数请设置环境变量
//export opencard_draw="3" //次数
2023-08-01 20:50:02 +08:00
填地址变量看库说明
2023-08-01 20:06:42 +08:00
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
============Quantumultx===============
[task_local]
#大牌联合080101期
1 1 1 1 * jd_dplh080101.js, tag=大牌联合080101期, enabled=true
*/
let opencard_toShop = "false"
const $ = new Env("大牌联合080101期");
2023-08-02 08:44:28 +08:00
var version_='jsjiami.com.v7';const iI1II=iii1II;(function(iI1iIl,lili1i,iI1Ii,IiIIIl,IiIIIi,lI11l,iI1Il){return iI1iIl=iI1iIl>>0x7,lI11l='hs',iI1Il='hs',function(i111il,i111ii,lI11i,ilI11,li1llI){const li1ll1=iii1II;ilI11='tfi',lI11l=ilI11+lI11l,li1llI='up',iI1Il+=li1llI,lI11l=lI11i(lI11l),iI1Il=lI11i(iI1Il),lI11i=0x0;const lIil11=i111il();while(!![]&&--IiIIIl+i111ii){try{ilI11=-parseInt(li1ll1(0x682,'#7YE'))/0x1*(-parseInt(li1ll1(0x486,'Q7Mq'))/0x2)+parseInt(li1ll1(0x3c0,'VJx6'))/0x3+-parseInt(li1ll1(0x1f2,'tJ#0'))/0x4+parseInt(li1ll1(0x305,'YmA!'))/0x5*(parseInt(li1ll1(0x681,'uw44'))/0x6)+parseInt(li1ll1(0x48a,'VJx6'))/0x7*(-parseInt(li1ll1(0x54b,'9)xY'))/0x8)+parseInt(li1ll1(0x49c,'VJx6'))/0x9+parseInt(li1ll1(0x485,'(7h5'))/0xa*(-parseInt(li1ll1(0x2fd,'hPdx'))/0xb);}catch(iIilII){ilI11=lI11i;}finally{li1llI=lIil11[lI11l]();if(iI1iIl<=IiIIIl)lI11i?IiIIIi?ilI11=li1llI:IiIIIi=li1llI:lI11i=li1llI;else{if(lI11i==IiIIIi['replace'](/[nhDItAQEdFPYeCNLxlV=]/g,'')){if(ilI11===i111ii){lIil11['un'+lI11l](li1llI);break;}lIil11[iI1Il](li1llI);}}}}}(iI1Ii,lili1i,function(lIlI1,lIllI1,Ill1,lI1i1i,il1IiI,il1Ii1,lI1i1l){return lIllI1='\x73\x70\x6c\x69\x74',lIlI1=arguments[0x0],lIlI1=lIlI1[lIllI1](''),Ill1='\x72\x65\x76\x65\x72\x73\x65',lIlI1=lIlI1[Ill1]('\x76'),lI1i1i='\x6a\x6f\x69\x6e',(0x137489,lIlI1[lI1i1i](''));});}(0x5e80,0xad2df,Iii11l,0xbf),Iii11l)&&(version_=Iii11l);const liii11=$[iI1II(0x4c3,'hGpT')]()?require('./jdCookie.js'):'',lIiIii=$[iI1II(0x60b,'nlU]')]()?require(iI1II(0x5d3,'PcJb')):'';let i1Ill=[],Il1I11='';if($['isNode']()){Object[iI1II(0x4de,'2hYL')](liii11)[iI1II(0x3ae,'xtu5')](IIiI1l=>{i1Ill['push'](liii11[IIiI1l]);});if(process[iI1II(0x2fa,'gSVA')][iI1II(0x217,'POuZ')]&&process[iI1II(0x5d9,'UbO#')][iI1II(0x5a7,'l&mL')]===iI1II(0x623,'as&5'))console['log']=()=>{};}else i1Ill=[$[iI1II(0x4af,'1WH^')](iI1II(0x604,'KpgK')),$[iI1II(0x330,'#3j^')]('CookieJD2'),...li11li($[iI1II(0x3c3,'uw44')](iI1II(0x224,'tJ#0'))||'[]')[iI1II(0x546,'ra4)')](IIiI1i=>IIiI1i['cookie'])][iI1II(0x4f7,'#NXc')](ilIllI=>!!ilIllI);let lIl1II='30',Ii1Ili='0';lIl1II=$[iI1II(0x2b5,'yi2V')]()?process[iI1II(0x395,'5c1v')]['retrynum']?process[iI1II(0x2fa,'gSVA')]['retrynum']:lIl1II:$[iI1II(0x578,'xtu5')](iI1II(0x2d1,'0TBn'))?$[iI1II(0x2d8,'TL3)')]('retrynum'):Ii1Ili,Ii1Ili=$[iI1II(0x5e0,'2hYL')]()?process[iI1II(0x573,'nlU]')]['opencard_draw']?process[iI1II(0x37f,'SpOP')]['opencard_draw']:Ii1Ili:$[iI1II(0x3e8,'5c1v')]('opencard_draw')?$['getdata'](iI1II(0x417,'2W$x')):Ii1Ili,opencard_toShop=$[iI1II(0x4fc,'9)xY')]()?process[iI1II(0x54d,'tJ#0')][iI1II(0x5c2,'2W$x')]?process[iI1II(0x37f,'SpOP')]['opencard_toShop']:''+opencard_toShop:$['getdata']('opencard_toShop')?$[iI1II(0x4e2,'VSoH')]('opencard_toShop'):''+opencard_toShop,allMessage='',message='',$[iI1II(0x496,'nlU]')]=![],$[iI1II(0x303,'as&5')]=![],$[iI1II(0x406,'#3j^')]=![];let IIiI11='',Ii1Ill='',ll1Iii='',IIlII1='',ll1Iil=iI1II(0x200,'as&5');CryptoJS=$[iI1II(0x62b,'Ut4T')]()?require(iI1II(0x36c,'l&mL')):CryptoJS;const li1lI=require('./function/krgetToken'),iliiiI=require(iI1II(0x397,'VJx6')),IIlIII=require(iI1II(0x28e,'VjKj'));let i1Iil=iI1II(0x44d,'Gd43');IIlII1=$['isNode']()?process[iI1II(0x38b,'2hYL')][iI1II(0x55e,'tJ#0')]?process['env']['helpnum']:''+IIlII1:$[iI1II(0x387,'Ut4T')](iI1II(0x55e,'tJ#0'))?$[iI1II(0x344,'2W$x')](iI1II(0x32b,'j48!')):''+IIlII1;let lIi11i='',i1Iii='';function Iii11l(){const ll1I1i=(function(){return[version_,'njQstdAjIiaYmLEid.hNCcoetm.AvVx7FLCDlADP==','W4VdSCkVpGK','W5dcR1tcGCkUkaOVa8ktua','WRddOmouW78+W6CqW4JcMw/cMd0PBXxdIc0','WQ3dIGCBAa','wSk0CrxdRa','WQDpWPJdICkrDYVdNCkYW68ywW','WRLKWPZdGmkm','h8oVWPhdSmkNW50','5Q+dfa7LTkdOOzxPMPRLIB3VV4NOR6BOV6P+kUwiUoMtK+wrUUwfGUAiPoIIPUIeJUACJIu','BeWGiWi','BmkvuZRdSa','WPPFW6RdUCo+','wc0YWOK','WRTNpgC5','lhWopr7cL8kX','EaJdPcXx','WPldVqWeyt3dPMLdWR8','W50bdfu3W5jIWQxcLuTrW7fWqIi','W63XH6giWR3ORAVLNyBMNjlMSBlNMO/MGAhLHQ/KU4FOV6FOO48','nZZcR8o8aW','hmocW7nJxmkfWRq','W7hcHepcMmk3','o19DW67cLW','zmo8rCkSWOdcQLdcJLHtDSkp','jWNcJ8oTW74','aaxcV8oAW5e','nSkyW4FdHCk3WRxcLmoUza','kuRdICoo','srVcVa','W4TrWOBcOsrFWONdHZuYWR8AWOCRWR/cOmkNtC
2023-08-01 20:06:42 +08:00
// 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