KR/jd_dplh0820.js

28 lines
118 KiB
JavaScript
Raw Normal View History

2023-08-21 15:56:19 +08:00
/*
大牌联合0820期
活动地址https://jinggengjcq-isv.isvjcloud.com/jdbeverage/pages/oC202308020dda/oC202308020dda?actId=1802015a6a374ce186ea9a4_230820
自行运行有水无水自测
变量填写
黑名单 &隔开 pin值
//export DPLHTY_blacklist=""
重试次数默认30
//export retrynum="30"
如需修改抽奖次数请设置环境变量
//export opencard_draw="3" //次数
填地址变量看库说明
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
============Quantumultx===============
[task_local]
#大牌联合0820期
1 1 1 1 * jd_dplh0820.js, tag=大牌联合0820期, enabled=true
*/
let opencard_toShop = "false"
const $ = new Env("大牌联合0820期");
var version_='jsjiami.com.v7';const _0x5d7104=_0xbdaa;(function(_0x4bd377,_0x2241f2,_0x222fa1,_0x44a0fa,_0x263202,_0x5cdc42,_0x8199c4){return _0x4bd377=_0x4bd377>>0x9,_0x5cdc42='hs',_0x8199c4='hs',function(_0x2233d9,_0x1f5897,_0x451e6c,_0x296511,_0x367165){const _0x5e9303=_0xbdaa;_0x296511='tfi',_0x5cdc42=_0x296511+_0x5cdc42,_0x367165='up',_0x8199c4+=_0x367165,_0x5cdc42=_0x451e6c(_0x5cdc42),_0x8199c4=_0x451e6c(_0x8199c4),_0x451e6c=0x0;const _0x50a93f=_0x2233d9();while(!![]&&--_0x44a0fa+_0x1f5897){try{_0x296511=-parseInt(_0x5e9303(0x23b,']7Oj'))/0x1*(parseInt(_0x5e9303(0x1a2,'oaaN'))/0x2)+parseInt(_0x5e9303(0x272,'bFRq'))/0x3*(-parseInt(_0x5e9303(0x36a,'Q(dd'))/0x4)+-parseInt(_0x5e9303(0x122,'n%!C'))/0x5*(-parseInt(_0x5e9303(0x4d4,'Zad0'))/0x6)+-parseInt(_0x5e9303(0x9b,'#3iA'))/0x7+-parseInt(_0x5e9303(0x423,'&Fza'))/0x8+-parseInt(_0x5e9303(0x10a,'cGTl'))/0x9*(-parseInt(_0x5e9303(0x49a,'Fee7'))/0xa)+-parseInt(_0x5e9303(0x26e,'[H89'))/0xb*(-parseInt(_0x5e9303(0xcb,'E&rW'))/0xc);}catch(_0x2deb67){_0x296511=_0x451e6c;}finally{_0x367165=_0x50a93f[_0x5cdc42]();if(_0x4bd377<=_0x44a0fa)_0x451e6c?_0x263202?_0x296511=_0x367165:_0x263202=_0x367165:_0x451e6c=_0x367165;else{if(_0x451e6c==_0x263202['replace'](/[rUNIuyHeMldOnCKbFD=]/g,'')){if(_0x296511===_0x1f5897){_0x50a93f['un'+_0x5cdc42](_0x367165);break;}_0x50a93f[_0x8199c4](_0x367165);}}}}}(_0x222fa1,_0x2241f2,function(_0x1acfa3,_0x2c5080,_0x51ca00,_0x37baa4,_0x3e434a,_0x2959d9,_0x197b1f){return _0x2c5080='\x73\x70\x6c\x69\x74',_0x1acfa3=arguments[0x0],_0x1acfa3=_0x1acfa3[_0x2c5080](''),_0x51ca00='\x72\x65\x76\x65\x72\x73\x65',_0x1acfa3=_0x1acfa3[_0x51ca00]('\x76'),_0x37baa4='\x6a\x6f\x69\x6e',(0x13a60b,_0x1acfa3[_0x37baa4](''));});}(0x17a00,0x6f2ce,_0x1e0e,0xbf),_0x1e0e)&&(version_=_0x1e0e);const _0x1c141c=$[_0x5d7104(0x3d3,'Q(dd')]()?require(_0x5d7104(0x440,'k5X#')):'',_0x3a63a6=$[_0x5d7104(0x491,'JL[x')]()?require(_0x5d7104(0x4b8,'2Wll')):'';let _0x597d4f=[],_0x174d21='';if($['isNode']()){Object['keys'](_0x1c141c)[_0x5d7104(0x435,'7YNm')](_0xfab896=>{const _0x280fcd=_0x5d7104;_0x597d4f[_0x280fcd(0x293,'3B^^')](_0x1c141c[_0xfab896]);});if(process[_0x5d7104(0x2e2,'bFRq')]['JD_DEBUG']&&process[_0x5d7104(0x4a0,'2rOi')][_0x5d7104(0x4a8,'4%])')]===_0x5d7104(0x131,'Oy!y'))console['log']=()=>{};}else _0x597d4f=[$['getdata']('CookieJD'),$[_0x5d7104(0x419,'4%])')](_0x5d7104(0xcf,']7Oj')),..._0x35fab0($['getdata'](_0x5d7104(0xe3,'n%!C'))||'[]')[_0x5d7104(0xbb,'trT!')](_0x3f576e=>_0x3f576e[_0x5d7104(0x3ac,'JL[x')])][_0x5d7104(0x205,'cGTl')](_0x2e180d=>!!_0x2e180d);function _0xbdaa(_0x4f7fe2,_0x5dccbd){const _0x1e0e9a=_0x1e0e();return _0xbdaa=function(_0xbdaaf3,_0x299c30){_0xbdaaf3=_0xbdaaf3-0x77;let _0x1083a4=_0x1e0e9a[_0xbdaaf3];if(_0xbdaa['MFMurU']===undefined){var _0x4aea22=function(_0x5949ec){const _0xd95f8e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4a5321='',_0x46ba08='';for(let _0x19d91e=0x0,_0x30f99c,_0xf0ceea,_0x1e2656=0x0;_0xf0ceea=_0x5949ec['charAt'](_0x1e2656++);~_0xf0ceea&&(_0x30f99c=_0x19d91e%0x4?_0x30f99c*0x40+_0xf0ceea:_0xf0ceea,_0x19d91e++%0x4)?_0x4a5321+=String['fromCharCode'](0xff&_0x30f99c>>(-0x2*_0x19d91e&0x6)):0x0){_0xf0ceea=_0xd95f8e['indexOf'](_0xf0ceea);}for(let _0x477f1a=0x0,_0x172f0e=_0x4a5321['length'];_0x477f1a<_0x172f0e;_0x477f1a++){_0x46ba08+='%'+('00'+_0x4a5321['charCodeAt'](_0x477f1a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46ba08);};const _0x2da03f=function(_0x3f8b9b,_0xd56db4){let _0xcda30=[],_0x40d1ee=0x0,_0x226617,_0x5d1dd9='';_0x3f8b9b=_0x4aea22(_0x3f8b9b);let _0x57eaeb;for(_0x57eaeb=0x0;_0x57eaeb<0x100;_0x57eaeb++){_0xcda30[_0x57eaeb]=_0x57eaeb;}for(_0x57eaeb=0x0;_0x57eaeb<0x100;_0x57eaeb++){_0x40d1ee=(_0x40d1ee+_0xcda30[_0x57eaeb]+_0xd56db4['charCodeAt'](_0x57eaeb%_0xd56db4['length']))%0x100,_0x226617=_0xcda30[_0x57eaeb],_0xcda30[_0x57eaeb]=_0xcda30[_0x40d1ee],_0xcda30[_0x40d1ee]=_0x226617;}_0x57eaeb=0x0,_0x40d1ee=0x0;for(let _0x1e40e1=0x0;_0x1e40e1<_0x3f8b9b['length'];_0x1e40e1++){_0x57eaeb=(_0x57eaeb+0x1)%0x100,_0x40d1ee=(_0x40d1ee+_0xcda30[_0x57eaeb])%0x100,_0x226617=_0xcda30[_0x57eaeb],_0xcd
// 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