KR/jd_fh_draw.js

27 lines
77 KiB
JavaScript
Raw Normal View History

2023-08-01 15:41:05 +08:00
/*
飞鹤集成长值赢千元礼包
任务本,邀请不清楚抽奖概率豆子
变量jd_fh_id // 活动id 8月idexport jd_fh_id="dzb76b9238993e4cebac6abde21556"
变量opencard_draw // 抽奖次数 export opencard_draw="3"
入口[ 飞鹤集成长值赢千元礼包 ]
请求太频繁会被黑ip
过10分钟再执行
cron:11 11 11 11 *
============Quantumultx===============
[task_local]
#飞鹤集成长值赢千元礼包
11 11 11 11 * jd_fh_draw.js, tag=飞鹤集成长值赢千元礼包, enabled=true
*/
const $ = new Env('飞鹤集成长值赢千元礼包')
var version_='jsjiami.com.v7';const IIil1i=iii1II;(function(iI11ii,IIllII,iil1I1,iI11il,iii111,liiI,liIII1){return iI11ii=iI11ii>>0x3,liiI='hs',liIII1='hs',function(I111il,l1Ili1,iliili,iliill,I111ii){const iIii1i=iii1II;iliill='tfi',liiI=iliill+liiI,I111ii='up',liIII1+=I111ii,liiI=iliili(liiI),liIII1=iliili(liIII1),iliili=0x0;const Ililll=I111il();while(!![]&&--iI11il+l1Ili1){try{iliill=-parseInt(iIii1i(0x42e,'WKGW'))/0x1*(parseInt(iIii1i(0x1f2,'3beP'))/0x2)+parseInt(iIii1i(0x491,'MPQ)'))/0x3*(-parseInt(iIii1i(0x1ec,'OXOk'))/0x4)+parseInt(iIii1i(0x261,'@Vk@'))/0x5*(parseInt(iIii1i(0x42f,'PWA^'))/0x6)+-parseInt(iIii1i(0x408,'qT#3'))/0x7*(-parseInt(iIii1i(0x438,'u%b6'))/0x8)+-parseInt(iIii1i(0x460,'&Kkh'))/0x9*(parseInt(iIii1i(0x465,'3beP'))/0xa)+-parseInt(iIii1i(0x355,'ZBFD'))/0xb+-parseInt(iIii1i(0x29b,'ub[7'))/0xc*(-parseInt(iIii1i(0x32d,'Lsp$'))/0xd);}catch(I1liII){iliill=iliili;}finally{I111ii=Ililll[liiI]();if(iI11ii<=iI11il)iliili?iii111?iliill=I111ii:iii111=I111ii:iliili=I111ii;else{if(iliili==iii111['replace'](/[EWRgCBtJkhMYeqArFHn=]/g,'')){if(iliill===l1Ili1){Ililll['un'+liiI](I111ii);break;}Ililll[liIII1](I111ii);}}}}}(iil1I1,IIllII,function(I1ii1I,Ililli,lii1,iIii1l,iIliIi,IIil1l,i1i1l1){return Ililli='\x73\x70\x6c\x69\x74',I1ii1I=arguments[0x0],I1ii1I=I1ii1I[Ililli](''),lii1='\x72\x65\x76\x65\x72\x73\x65',I1ii1I=I1ii1I[lii1]('\x76'),iIii1l='\x6a\x6f\x69\x6e',(0x1372c7,I1ii1I[iIii1l](''));});}(0x638,0x85f24,Iii11l,0xc9),Iii11l)&&(version_=Iii11l);function Iii11l(){const IlIil=(function(){return[version_,'RjCHsBhejAiFaqmJWiY.qkcotMmn.Cvrq7eEgheJ==','x8oeiHeoWRnRWQ7dMZaeAq','CmozkYKs','WQ4WWR/dTmk+','W7hcPN8','6iYQ5yYF5lIv5yQgmZmNWOZdRCo+W5f6W4pcOSod6yke5yEQ5OQv6koE77+v6k2x6yss5PEB5OQF6ko6','W5ddN1ue','qWdcQmoC','g8oNoCkWWQW','hdlcVuZcRG','WP9+adK','W5LGW63dKaPoW5m8mW','W4iDWRpdO2q','W4KyACkJWRO','W4m/fG7cNa','W6RdSLRdQr3dI3vMWPZdHHL7','W4pdRCovxcW','Dmk3WODRpG3dLcW','WP3cR8oCW7FcIG','W6/cM2WnWQ8','W5RdK8kYpG','W7LdW5f3W4i3WOOQW44oWQeeFbn9f8k+DK3cQmojm3mFwt/dQCoJcYNcVI5eWPxcVwTDW6ewW4fIWO7dISkUgY/cLIBdMM9bCmkkkSkLbuFdL8o7mmkAW4xcVtrVcmkJW6O+ymk6yYldQSkvWOPQsmoJWOtdNSoxW4D3WRRdPSolWPb6EJVcJe9/WQxcV8oJyqFcOq','bIqTW48','mmoaWOzmfComW4xdH8ob','ymkmfLDeW4tdHa','W6y0naRcOW','D8o3rd0GlSkrWR1ucq','br3cI8ogW5i','qsOnb1u','WPDyn8k1WP0PW7mDW4xdIIGKxSoT','wCoMaq86','rGlcQmouW4tcULGRWR/dKrO','BmoHW4iKaq','W7GHWQtdQCoM','ir/dISkyW4W','prdcUNhcUCoXWRhdNYVcHtbC','W6RcMu4NWPldSJFdULC','WQn6ha','sSonWPjOrG','sW7cUW','WOixWPFdOra','WQfNw8ooW4K','wSkIqCoW','5yII5yMH5OIQ5yUx','WPXHe8kNWOq','W53cHmoDWQ0Pj8kCma','W7buW4zIW4j+W6LQW4a0WQ9bjhWk','q8kYW65KW5eKqSoMjSkn','WPSDWO8TWPSNWO/LVixLPAZJGBpKUARKUkNOTARLJ4O','W6lcSZ3dSNK','WReYWRVdTry','xSk2WO5VaXe','WRVcQhVdGGCGeCknW6VdQmk5','WRDmy8oLW7ldRW','W54lWRfDW67cNSopjq','h8oaWO4','kHeIF8oMWOFdGCkB','nX3dLmkEW4RcICk3WPpdHaqpoW','W4uqWRL0W5VcI8oEjW','n8olimkT','W73dSfieW70','WRPkECoTW7tdKGRcS3S','W5KmWRrzW7tcHSosjq','fCoXW6BcPSos','W7jluMZdMq','kGFcU2VcP8oi','la3cM2RcUq','fSocjSkAWOK','W6FdICoIuqHgW5GcgSkNk8ow','hrxcHmoyW5NcMqBdTG','WRFcHmkKW61HthhdJCkot8kC','brqHW7NcSW','W4DutKldVMvz','W4WpACko','W6GThmkUW5NdJmknv0ddMHhdM3CJvtb3gKZcUIVcNMLrWOVdJmkcW7Hj','WPW2WOBdRYfb','WOXgF8o4W5e','abFcKSoLW57cIWldPW','4P6Pf+I/PEEQV+AvIUAmPoImK+wpUowKNEI2VSk26k2O6iAT6ko75P+m5OIC5yYO55sy5RAI5yIbWQFdPSoszxlcIa','W4dcVG/dS1e','WQxcHmk/W7zY','W7KxbIxcGq','WQT0d8kC','W5WDEmktWPO','W5RdUuexW5u','w8ofW7OLcW','W601WO3dVfnqlmouqa','o8o5cmkaWQO','Abe2ja','W4FcMrBdJMldR8oFEmoKWQu','WPihWOhdRCkq','W7hdKmoLAbn4W5qf','W6dcIsddPvq','W5ddGmk+lfreW6FcTq','nHG9tmoSWOa','WRLIpSkyWQC','W5yCWOtdR0i','WOJcKSoQW6BcLq','gmkJrSo2WQPB','W7dcRX7dJxm','qbJcQmoRW54','W5pcGgmfWPC','z8o4oY8z','gJFcPCo3W5e','q8kYW65KW5eKqSoMo8kqoui','W6RcQhhdGG','z8ofW6ugcCkzya','p8oOWQDqnG','x8kVtmoXWQqasaZcKfpcTSodW4zFW49l','rSkwW6n7W4u','W5a3kY/cOvmlnW','krSLwSoQ','44gc5lUd5lQ66lEx5y2p','x8kUtmoWWRivnfldHtFdQ8kcWPGPWRm','oN7cSSkOkW','W5VdKfW1W57cHeK','5Q6YWO7cOow1TUIIVoMzTEwiS+++UoISSoI/RmkqW6FLIyBPKkNLKPxLHPdMIktOO5FOHkRMNzHi','gwRcV8oihW','W4FdKCkWkxG','W43cHKVdOG','W6JdSmky','WQ52d8ksWPSiW7yMW4q','ACkHW6L1W44','W77cTs8','WPPku3tdNvrU','5Q+tdmkN5B
// 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