2023-09-17 13:41:57 +08:00
|
|
|
|
/*
|
|
|
|
|
9.15-9.29 中秋月饼勋章会员互动
|
|
|
|
|
|
|
|
|
|
————————————————
|
|
|
|
|
任务本,抽奖看脸
|
|
|
|
|
|
|
|
|
|
变量:
|
|
|
|
|
export jd_zqyb_exchangeid="兑换ID"
|
|
|
|
|
export jd_mpdz_draw="3" //次数 抽奖 没有多少就选择抽奖,很多小豆子
|
|
|
|
|
|
|
|
|
|
cron:31 16 17-29 9 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
|
|
|
|
#9.15-9.29 中秋月饼勋章会员互动
|
|
|
|
|
31 16 17-29 9 * jd_zqybhd.js, tag=9.15-9.29 中秋月饼勋章会员互动, enabled=true
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('9.15-9.29 中秋月饼勋章会员互动');
|
2023-09-18 01:06:48 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const I1IiIii1=i1lIlIl1;(function(IiI1iIii,IilIllll,i11lIlI,ilillil1,I11111li,Ii1Ii1II,liil1IlI){return IiI1iIii=IiI1iIii>>0x4,Ii1Ii1II='hs',liil1IlI='hs',function(i1li1Ii1,i1llIli,iIiIIIi,iiii1I1i,iI1IlIli){const ll1lliil=i1lIlIl1;iiii1I1i='tfi',Ii1Ii1II=iiii1I1i+Ii1Ii1II,iI1IlIli='up',liil1IlI+=iI1IlIli,Ii1Ii1II=iIiIIIi(Ii1Ii1II),liil1IlI=iIiIIIi(liil1IlI),iIiIIIi=0x0;const II1li1lI=i1li1Ii1();while(!![]&&--ilillil1+i1llIli){try{iiii1I1i=-parseInt(ll1lliil(0x261,'on])'))/0x1*(parseInt(ll1lliil(0x476,'z0vN'))/0x2)+parseInt(ll1lliil(0x118,'1Kzf'))/0x3+-parseInt(ll1lliil(0x2b6,'on])'))/0x4+-parseInt(ll1lliil(0x3a5,'cYxH'))/0x5*(parseInt(ll1lliil(0xa0,'l9nQ'))/0x6)+-parseInt(ll1lliil(0x125,'bbC7'))/0x7+parseInt(ll1lliil(0xc7,'r[ig'))/0x8+parseInt(ll1lliil(0xaf,'Gbu9'))/0x9;}catch(IIIiiIII){iiii1I1i=iIiIIIi;}finally{iI1IlIli=II1li1lI[Ii1Ii1II]();if(IiI1iIii<=ilillil1)iIiIIIi?I11111li?iiii1I1i=iI1IlIli:I11111li=iI1IlIli:iIiIIIi=iI1IlIli;else{if(iIiIIIi==I11111li['replace'](/[TPEunOQkGyAhdlCKVNqM=]/g,'')){if(iiii1I1i===i1llIli){II1li1lI['un'+Ii1Ii1II](iI1IlIli);break;}II1li1lI[liil1IlI](iI1IlIli);}}}}}(i11lIlI,IilIllll,function(Iilil1i1,i1iillii,ili1I11I,l1liliiI,iIIliliI,iili1iiI,l11i1Ii1){return i1iillii='\x73\x70\x6c\x69\x74',Iilil1i1=arguments[0x0],Iilil1i1=Iilil1i1[i1iillii](''),ili1I11I=`\x72\x65\x76\x65\x72\x73\x65`,Iilil1i1=Iilil1i1[ili1I11I]('\x76'),l1liliiI=`\x6a\x6f\x69\x6e`,(0x13eb9f,Iilil1i1[l1liliiI](''));});}(0xc10,0x920aa,lI1iliIl,0xc3),lI1iliIl)&&(version_=lI1iliIl);function i1lIlIl1(_0x32d020,_0x31082d){const _0x2f92ac=lI1iliIl();return i1lIlIl1=function(_0x5b9e1e,_0x440e4a){_0x5b9e1e=_0x5b9e1e-0x9e;let _0x1ede7=_0x2f92ac[_0x5b9e1e];if(i1lIlIl1['MZwHWP']===undefined){var _0x3f0478=function(_0xc05e7e){const _0x1bd29d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x33897d='',_0x221900='';for(let _0x59e534=0x0,_0x535ce0,_0x4eda11,_0x2542be=0x0;_0x4eda11=_0xc05e7e['charAt'](_0x2542be++);~_0x4eda11&&(_0x535ce0=_0x59e534%0x4?_0x535ce0*0x40+_0x4eda11:_0x4eda11,_0x59e534++%0x4)?_0x33897d+=String['fromCharCode'](0xff&_0x535ce0>>(-0x2*_0x59e534&0x6)):0x0){_0x4eda11=_0x1bd29d['indexOf'](_0x4eda11);}for(let _0x2a231d=0x0,_0xbc08f4=_0x33897d['length'];_0x2a231d<_0xbc08f4;_0x2a231d++){_0x221900+='%'+('00'+_0x33897d['charCodeAt'](_0x2a231d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x221900);};const _0x588117=function(_0xa59c59,_0xf29337){let _0x5a0683=[],_0x139d51=0x0,_0x192454,_0x208c86='';_0xa59c59=_0x3f0478(_0xa59c59);let _0x31fc72;for(_0x31fc72=0x0;_0x31fc72<0x100;_0x31fc72++){_0x5a0683[_0x31fc72]=_0x31fc72;}for(_0x31fc72=0x0;_0x31fc72<0x100;_0x31fc72++){_0x139d51=(_0x139d51+_0x5a0683[_0x31fc72]+_0xf29337['charCodeAt'](_0x31fc72%_0xf29337['length']))%0x100,_0x192454=_0x5a0683[_0x31fc72],_0x5a0683[_0x31fc72]=_0x5a0683[_0x139d51],_0x5a0683[_0x139d51]=_0x192454;}_0x31fc72=0x0,_0x139d51=0x0;for(let _0x566603=0x0;_0x566603<_0xa59c59['length'];_0x566603++){_0x31fc72=(_0x31fc72+0x1)%0x100,_0x139d51=(_0x139d51+_0x5a0683[_0x31fc72])%0x100,_0x192454=_0x5a0683[_0x31fc72],_0x5a0683[_0x31fc72]=_0x5a0683[_0x139d51],_0x5a0683[_0x139d51]=_0x192454,_0x208c86+=String['fromCharCode'](_0xa59c59['charCodeAt'](_0x566603)^_0x5a0683[(_0x5a0683[_0x31fc72]+_0x5a0683[_0x139d51])%0x100]);}return _0x208c86;};i1lIlIl1['eBJAej']=_0x588117,_0x32d020=arguments,i1lIlIl1['MZwHWP']=!![];}const _0x277f61=_0x2f92ac[0x0],_0x17b216=_0x5b9e1e+_0x277f61,_0x2a2596=_0x32d020[_0x17b216];return!_0x2a2596?(i1lIlIl1['tZOAjS']===undefined&&(i1lIlIl1['tZOAjS']=!![]),_0x1ede7=i1lIlIl1['eBJAej'](_0x1ede7,_0x440e4a),_0x32d020[_0x17b216]=_0x1ede7):_0x1ede7=_0x2a2596,_0x1ede7;},i1lIlIl1(_0x32d020,_0x31082d);}const II1lI1i=$[I1IiIii1(0x3aa,'*HdO')]()?require('./jdCookie.js'):'',lIIil11i=$[I1IiIii1(0x44f,'uAWI')]()?require(I1IiIii1(0x29b,'jyv6')):'';function lI1iliIl(){const lllIli11=(function(){return[...[version_,'QTjdAVsjNyiuGaKmOkiN.cdqComP.CvKG7MhVEnl==','wxpdRteutq','W6D7WRzcWQ5tvG','r8oUWRO','W6hcRfm','W4pdG8kUWONdQftdHSodWQRdLa','tCofWQ/cVwO','WQCJBmoeFa','ge1kd8kVdHK','WPvOW6dcNCoDW584','
|
2023-09-17 13:41:57 +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
|