KR/jd_opencardLCD.js

32 lines
85 KiB
JavaScript
Raw Normal View History

2023-08-14 00:00:57 +08:00
/*
京东粉丝联盟福利社 入会赢专享好礼
新增开卡脚本一次性脚本
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
入口[京东粉丝联盟福利社 入会赢专享好礼 ]
JD_OPENCARD // 是否开卡,默认不开卡 值为 true 开卡
请求太频繁会被黑ip
过10分钟再执行
cron:11 11 11 11 *
============Quantumultx===============
[task_local]
#京东粉丝联盟福利社 入会赢专享好礼
11 11 11 11 * jd_opencardLCD.js, tag=京东粉丝联盟福利社 入会赢专享好礼, enabled=true
*/
const $ = new Env('京东粉丝联盟福利社 入会赢专享好礼');
var version_='jsjiami.com.v7';const lIil11=iii1II;(function(lI11I,iIilIi,IllI,iIilIl,ilI1I,il1Iil,ii11ll){return lI11I=lI11I>>0x7,il1Iil='hs',ii11ll='hs',function(il1Iii,lili1l,iI1iIi,iI1iIl,lili1i){const li1llI=iii1II;iI1iIl='tfi',il1Iil=iI1iIl+il1Iil,lili1i='up',ii11ll+=lili1i,il1Iil=iI1iIi(il1Iil),ii11ll=iI1iIi(ii11ll),iI1iIi=0x0;const iI1Ii=il1Iii();while(!![]&&--iIilIl+lili1l){try{iI1iIl=-parseInt(li1llI(0x494,'ok#!'))/0x1+-parseInt(li1llI(0x3d6,'zUPi'))/0x2*(parseInt(li1llI(0x1c7,'#jD%'))/0x3)+-parseInt(li1llI(0x3b8,'(tdc'))/0x4*(-parseInt(li1llI(0x178,'0%@U'))/0x5)+-parseInt(li1llI(0x447,'zUPi'))/0x6*(-parseInt(li1llI(0x25e,'&Dnq'))/0x7)+parseInt(li1llI(0x1ba,'E3sJ'))/0x8*(-parseInt(li1llI(0x2ba,'EBKb'))/0x9)+parseInt(li1llI(0x41c,'CVc!'))/0xa*(parseInt(li1llI(0x467,'[Aol'))/0xb)+parseInt(li1llI(0x496,'l&tU'))/0xc;}catch(IiIIIl){iI1iIl=iI1iIi;}finally{lili1i=iI1Ii[il1Iil]();if(lI11I<=iIilIl)iI1iIi?ilI1I?iI1iIl=lili1i:ilI1I=lili1i:iI1iIi=lili1i;else{if(iI1iIi==ilI1I['replace'](/[rBYwxOALeGgNRndqlPQJuE=]/g,'')){if(iI1iIl===lili1l){iI1Ii['un'+il1Iil](lili1i);break;}iI1Ii[ii11ll](lili1i);}}}}}(IllI,iIilIi,function(IiIIIi,lI11l,iI1Il,i111il,i111ii,lI11i,ilI11){return lI11l='\x73\x70\x6c\x69\x74',IiIIIi=arguments[0x0],IiIIIi=IiIIIi[lI11l](''),iI1Il='\x72\x65\x76\x65\x72\x73\x65',IiIIIi=IiIIIi[iI1Il]('\x76'),i111il='\x6a\x6f\x69\x6e',(0x139246,IiIIIi[i111il](''));});}(0x6300,0x5b163,Iii11l,0xc8),Iii11l)&&(version_=Iii11l);function Iii11l(){const il11Ii=(function(){return[version_,'qNjJwusejiParmEdiLr.cBogAnmLRO.QvGYY7lAx==','5RwS5yQ95BAn57UG5P+v','WQxdQXC','5Q6sW5bl5BsH6kcF6zQF5yI777+g6k+L6l+0W7TC5yM56zgm5zki5yAb5OUd6kkW6isV5P+kW6q','bmkOW619WR4jW5G','W70xW6/cQIJcT3q','icBcGCoK','WPtdSGNcSh90WR/dH8k8ECoSqYSiW7ui','nSociGC','FYztWOaX','W4TeWOSeE8ktW6e0WQ4','s8oTW7/dGCoV','rCk3W7evW7a','WO3cSeu+pbe','zSkSCHWbzJhcOwjgWO0iCCkYW5NdRY9iW7ZcNbK5ASkUW5BcLYzMWPS','xCoFW7NdJa','AmkYW6ubW5q','WOVdSdO','cCkNW715','W6GmW7ZcMZZcP1/cVCouW7m','imoapXZdMSk8WO1IuW','WRKVWPebW6ZdRmkDyCoUW4i','WRZcO1BcHmkIbmoXqWPu','lfDpmCkAbq','WQOXWQqtW4q','v8oTW5RdI8o6','WQaLnc1r','vHjlWPyk','W6BcS8oEoSojF8o8W5pdJWy4','W5ddJvRcOmoFWPT0WRP3dG','umoeW4/dPCob','yZNdS8o1WPu','W7qYW7tcNJ8','W4xcQriOW7O','WOZdT8kwWOHk','WOddLmoyeoweLos/TUIoRUw9I++9OG','m8kWkmkSWPm','wsddV8o8WRu','W4SrW7m','mduXxmoI','lLtcJSoBxa','W5PUEmk4ASoTtmkWjmoIW6ddQmowgxRcKmkTzNJcI0ddSCkuWO4JWQ3cI8oNW6/dRgG','W4FdJ8oVgW','WRdcLuFcM8ka','omkgoxG','WPtcUCo+pCkaifO','puPUnSkhoeCtpSkiW77cNq','W5/cL8kmcmkB','nMBcM8oExG','w0lcPhnpWRxdNci','W7tdNCoVnNG','WPedWQ0EW60','lZ8rD8og','lCkQAXyyut0','WRz0CILYW79NuW','xIVdS8ow','W49ZiKTl','iwjAkmkb','WPZdGJbtWPTfdmkBf8owW79vW4VdTW','lvz4pmktheWfkq','hdSGxmoeWPmpwW0','r+MHG+wLIEIoTEw8MqC','ymkSDWOsxZ3dRX4WWQFORPxMSzVLP7ROTQZVVORORRBMORxMNl/NVR7OTP7PHPxOR40','fSkJeLzNbSkAW4f1WQVcHa','WPVdIbXEWP8','WOpdGJ1BWOfj','fZWlqmoEWQKkBqtdHxLxqWC','e3L6iLWPixJdKCkOp8k3','W4PjWPKdCSkY','hL4WwSof','WR94zrDVW7T4FZVcVcO','uCoBW7xdHW','WOBdNxNcLvhdVSkqr8okWPe','WPhcUmo9','WOxdTaxcVCkM','W5LrymkHW78','uSoPWQe','WOjxWOS0m286W7RcTKLzW4e','ksBcGCoMW7K','o33cP8oevW','W5/dTmoqlwy','W49LkuS','kCk0kSk+WOldTG','mxOtx8oLw8kDWReHWPW','s8osWPDfwG','W5hcOmkxwGa','nIlcHSoWW73cGa','WPxdImk4WRTLDSohyW','hcWGqCoIWQKpAGddGxPs','W7TIFmkFW7e','dSkNW7T8WOOVW41NAq','WRBdHmkI','WQldIcLvWPLniCoDtmkDWOSqWPddMCoWxmo+m8k4DLddLItdM0NdImkWWQhcPmkhwSkxoWaiWOWkl2RdTvxcSH3dIcHptLtdOCoBFCoVW47cH1VcRGdcKqqVhSoYw1RcG8kjW6JdLsGSWQ87ghn0WO49gaSDzCkxWONcVSk1BmogWRD9W5NcHmoCW5RcQ8oaW6SLW7K7WPeoyKJcGSoYW4lcGuecW47dNwNdSSkEjmoHWQlcNfldJa','WPtcKCkAhJy','4P+lWQpLHypLPypLSkhNUzfriCo1xa','W5pcSmozemox','WRhdRLRcISoB','bSk9k23dVgJdRHxdVa','WQvlWROUW61HC8kVWOhdN8ou','WOFdJSkVWQP/A8oSFXNcJsRcRveheq','W63cHGivW59kWQiPagOrFx/dPW/dSmkbmSocW5NdVSof','W6pcRCotaSoQECo9W6ldIW','WRxdHSkcWRTy','W4/dPSoVk34','W5BcHWxdSW','qColW7RdR8oQWPFdQCkU','W4pcR8ozeCoS','jstcGCoSW6FcNvXtwmkRoG','rIVdSSogWRi','W4FdHmongum','FtfVWPK8eKCdECkEWRBcVCkZtW','6yg26k2o5Awg5yYy','FI5T','emkMDG','WQpdIflcSSoY','cmk0W7T3WRqmW5f6nCk/tL/cUa','W7mmW6NcNZRdRJpdVCodW77cV8kzmuZcLG0iW4RcL8o0ae17fCkfh8kBEq','W5RdI8oZpey','WQHhWQK','rIpdUmoEWRq','W4ddJ8oPhM7
// 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