2023-08-20 19:04:47 +08:00
|
|
|
/*
|
|
|
|
洋河造梦空间站
|
|
|
|
|
|
|
|
————————————————
|
|
|
|
任务本
|
|
|
|
|
2023-08-23 20:35:39 +08:00
|
|
|
变量:export jd_yh_exchangeid="兑换ID"
|
|
|
|
|
2023-08-20 19:04:47 +08:00
|
|
|
集齐3张梦之蓝卡片 即可兑换 5豆 脚本默认兑换 5豆
|
|
|
|
|
|
|
|
cron:31 0 10-31 8 *
|
|
|
|
============Quantumultx===============
|
|
|
|
[task_local]
|
|
|
|
#洋河造梦空间站
|
|
|
|
31 0 10-31 8 * jd_yh.js, tag=洋河造梦空间站, enabled=true
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
const $ = new Env('洋河造梦空间站');
|
2023-08-23 20:35:39 +08:00
|
|
|
var version_='jsjiami.com.v7';const _0x3baa3e=_0x4a34;(function(_0x59dcd3,_0x20295a,_0x273edf,_0x119eb9,_0x22642d,_0x1e0a0a,_0x551fdc){return _0x59dcd3=_0x59dcd3>>0x9,_0x1e0a0a='hs',_0x551fdc='hs',function(_0x3be39c,_0x452755,_0x71ea5d,_0x4ae087,_0x54e76d){const _0x39d527=_0x4a34;_0x4ae087='tfi',_0x1e0a0a=_0x4ae087+_0x1e0a0a,_0x54e76d='up',_0x551fdc+=_0x54e76d,_0x1e0a0a=_0x71ea5d(_0x1e0a0a),_0x551fdc=_0x71ea5d(_0x551fdc),_0x71ea5d=0x0;const _0x33b550=_0x3be39c();while(!![]&&--_0x119eb9+_0x452755){try{_0x4ae087=parseInt(_0x39d527(0x447,'s5^U'))/0x1*(-parseInt(_0x39d527(0x3f4,'50D5'))/0x2)+-parseInt(_0x39d527(0x409,'J@!I'))/0x3*(-parseInt(_0x39d527(0x2ae,'J0Sk'))/0x4)+-parseInt(_0x39d527(0x205,'67w9'))/0x5*(parseInt(_0x39d527(0x565,'bA0Y'))/0x6)+parseInt(_0x39d527(0x1b5,'Yh7b'))/0x7*(-parseInt(_0x39d527(0x46a,'*VQ2'))/0x8)+-parseInt(_0x39d527(0x581,'dQG['))/0x9*(parseInt(_0x39d527(0x2b4,'@^6X'))/0xa)+parseInt(_0x39d527(0x3e6,'k2)['))/0xb+parseInt(_0x39d527(0x5d4,'s5^U'))/0xc;}catch(_0x510595){_0x4ae087=_0x71ea5d;}finally{_0x54e76d=_0x33b550[_0x1e0a0a]();if(_0x59dcd3<=_0x119eb9)_0x71ea5d?_0x22642d?_0x4ae087=_0x54e76d:_0x22642d=_0x54e76d:_0x71ea5d=_0x54e76d;else{if(_0x71ea5d==_0x22642d['replace'](/[UARKyhugIQGTplYHXD=]/g,'')){if(_0x4ae087===_0x452755){_0x33b550['un'+_0x1e0a0a](_0x54e76d);break;}_0x33b550[_0x551fdc](_0x54e76d);}}}}}(_0x273edf,_0x20295a,function(_0x351b3a,_0x5b10fd,_0x4b4357,_0x55e4fd,_0x2b0e7d,_0x44f194,_0x4ee1c2){return _0x5b10fd='\x73\x70\x6c\x69\x74',_0x351b3a=arguments[0x0],_0x351b3a=_0x351b3a[_0x5b10fd](''),_0x4b4357='\x72\x65\x76\x65\x72\x73\x65',_0x351b3a=_0x351b3a[_0x4b4357]('\x76'),_0x55e4fd='\x6a\x6f\x69\x6e',(0x13ac6f,_0x351b3a[_0x55e4fd](''));});}(0x19200,0x66280,_0x41ba,0xcb),_0x41ba)&&(version_=_0x41ba);const _0x49000e=$[_0x3baa3e(0x24e,'ZlnF')]()?require(_0x3baa3e(0x383,'On([')):'',_0x3fcffd=$[_0x3baa3e(0x3a0,'(MyF')]()?require(_0x3baa3e(0x1b3,'KGM&')):'';CryptoJS=$[_0x3baa3e(0x3be,'*VQ2')]()?require(_0x3baa3e(0x2b8,'CSPH')):CryptoJS;const _0x312771=require('./function/krgetToken'),_0x42fd10=require(_0x3baa3e(0x42d,'unm^')),_0x2040bc=require('./function/krgetua');let _0x476ef4='https://mpdz-act-dz.isvjcloud.com',_0x2f7771=_0x3baa3e(0x432,'unm^'),_0x295842=[],_0x3d2481='';if($['isNode']()){Object['keys'](_0x49000e)[_0x3baa3e(0x32e,'k2)[')](_0x34fec3=>{_0x295842['push'](_0x49000e[_0x34fec3]);});if(process[_0x3baa3e(0x32b,'qzHE')][_0x3baa3e(0x51a,'KGM&')]&&process[_0x3baa3e(0x22e,'k2)[')][_0x3baa3e(0x3b0,'kfRR')]===_0x3baa3e(0x12d,'ZlnF'))console[_0x3baa3e(0x23d,'p%^r')]=()=>{};}else _0x295842=[$[_0x3baa3e(0x14d,'24@z')](_0x3baa3e(0x237,'j*Ri')),$['getdata'](_0x3baa3e(0x2c7,'ziN4')),..._0x251c0d($[_0x3baa3e(0x1be,'k2)[')](_0x3baa3e(0x586,'KpKf'))||'[]')[_0x3baa3e(0x5c7,'On([')](_0x5f007d=>_0x5f007d['cookie'])][_0x3baa3e(0x5b5,'(WW5')](_0x229aae=>!!_0x229aae);_0x2f7771=$[_0x3baa3e(0x19f,'672f')]()?process[_0x3baa3e(0x3d9,'OO)U')]['opencard_toShop']?process[_0x3baa3e(0x407,'kfRR')]['opencard_toShop']:''+_0x2f7771:$[_0x3baa3e(0x16f,'bA0Y')](_0x3baa3e(0x37c,'(MyF'))?$[_0x3baa3e(0x2ab,'[*[x')](_0x3baa3e(0x2a5,'$n7m')):''+_0x2f7771;let _0x375986=process[_0x3baa3e(0x5b1,'CSPH')][_0x3baa3e(0x326,'$n7m')]?process[_0x3baa3e(0x1fe,'bA0Y')]['JD_YJSHUA']:'false';allMessage='',message='';let _0x8e8381='';$[_0x3baa3e(0x437,'J0Sk')]=process['env']['jd_yh_exchangeid']?process['env']['jd_yh_exchangeid']:_0x3baa3e(0x4ef,'Ccqy'),$[_0x3baa3e(0x3b6,'G77%')]=![],$[_0x3baa3e(0x350,'672f')]=![],$['activityEnd']=![];function _0x4a34(_0x9f0275,_0x436db7){const _0x41baf0=_0x41ba();return _0x4a34=function(_0x4a347a,_0x509195){_0x4a347a=_0x4a347a-0x11a;let _0xd9f373=_0x41baf0[_0x4a347a];if(_0x4a34['ZlSBxP']===undefined){var _0x33c291=function(_0x3ffcc3){const _0xf227c4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc992f1='',_0x4772e8='';for(let _0x51db8d=0x0,_0xb67f10,_0x133a0a,_0x5e910d=0x0;_0x133a0a=_0x3ffcc3['charAt'](_0x5e910d++);~_0x133a0a&&(_0xb67f10=_0x51db8d%0x4?_0xb67f10*0x40+_0x133a0a:_0x133a0a,_0x51db8d++%0x4)?_0xc992f1+=String['fromCharCode'](0xff&_0xb67f10>>(-0x2*_0x51db8d&0x6)):0x0){
|
2023-08-20 19:04:47 +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
|