KR/jd_ttlhb.js

13 lines
66 KiB
JavaScript
Raw Normal View History

2023-09-15 15:22:53 +08:00
/*
天天领红包
cron "25 7 * * *" script-path=jd_ttlhb.js, tag=天天领红包
轮询提现变量jd_ttlhb_num //轮询提现页数 一般无需填写
*/
const $ = new Env('天天领红包');
2023-11-08 22:29:03 +08:00
var version_='jsjiami.com.v7';const liIIii=iii1II;(function(IiIi11,ii1i1l,iillII,Illli,i11il,ilI1I1,liIlIi){return IiIi11=IiIi11>>0x8,ilI1I1='hs',liIlIi='hs',function(liIlIl,I1lI1l,i11ii,lIiIi,Il1i){const IIiill=iii1II;lIiIi='tfi',ilI1I1=lIiIi+ilI1I1,Il1i='up',liIlIi+=Il1i,ilI1I1=i11ii(ilI1I1),liIlIi=i11ii(liIlIi),i11ii=0x0;const lIiIl=liIlIl();while(!![]&&--Illli+I1lI1l){try{lIiIi=parseInt(IIiill(0x37d,'x(&Y'))/0x1*(parseInt(IIiill(0x23b,'UmDT'))/0x2)+-parseInt(IIiill(0x3e1,'@5Fl'))/0x3*(-parseInt(IIiill(0x2bc,'Xdh]'))/0x4)+-parseInt(IIiill(0x1db,'oDJ&'))/0x5+parseInt(IIiill(0x39d,'8S2V'))/0x6+-parseInt(IIiill(0x2ef,'tc#1'))/0x7*(-parseInt(IIiill(0x28a,'tc#1'))/0x8)+parseInt(IIiill(0x353,'uDSd'))/0x9*(-parseInt(IIiill(0x416,'$m2g'))/0xa)+-parseInt(IIiill(0x2a0,'uDSd'))/0xb;}catch(iiil1l){lIiIi=i11ii;}finally{Il1i=lIiIl[ilI1I1]();if(IiIi11<=Illli)i11ii?i11il?lIiIi=Il1i:i11il=Il1i:i11ii=Il1i;else{if(i11ii==i11il['replace'](/[HAklFQOEYKCISduJwtTLfR=]/g,'')){if(lIiIi===I1lI1l){lIiIl['un'+ilI1I1](Il1i);break;}lIiIl[liIlIi](Il1i);}}}}}(iillII,ii1i1l,function(Il1l,ll11I1,Illll,iiil1i,ilIIli,ilIIll,iIliil){return ll11I1='\x73\x70\x6c\x69\x74',Il1l=arguments[0x0],Il1l=Il1l[ll11I1](''),Illll=`\x72\x65\x76\x65\x72\x73\x65`,Il1l=Il1l[Illll]('\x76'),iiil1i=`\x6a\x6f\x69\x6e`,(0x146a20,Il1l[iiil1i](''));});}(0xcc00,0xd4161,Iii11l,0xce),Iii11l)&&(version_=liIIii(0x3b4,'IbES'));function Iii11l(){const IIIlll=(function(){return[...[version_,'HHjCsRwjliOJfaumALi.Ycotm.IFvf7SETCQkKfd==','WRhcS8kdW7Pz','W71eWR/cH8ox','WQZcHM/cG8oX','WRdcQXhdLmo9WRy','DCkLyf/cLa','gsBcTenV','nSkMW4hdRqW','WRNcJI4mpa','WRRcSGFdImoQWQmaimoyqSkFkf/cQ2ddUCk7WP0qCq','W7xdSmkTlSoBWRWSWRCX','WPDhW5tdGLSGWRFcHa','ma4SWRvx','WOTWzSoqh3a','amo1W5tcImk+WRpcG0W','WQRdPZBdGZ/dNwSa','bsJcOq','y1upW5ddV8kymCkvBa','vH3dOCkBma','W6aCWRaDW5nl','wCohW6JcNSk8','W4ZdGNuUyW','mZpdR2Gq','bsJcOxv4WQC','WO1jW7xcOa','q3KuWRzn','WRJcOowKRUI2TMFdNUwnH+wzGhdcQG','hsBcTvTEWRXoW71H','euPRWRxcHComcsK','bcepW53dLby','kJ/dU3qn','5B6U5yQO5RgJ5OoT776Z','iComW6yyAG','wG7dO8kD','W4zmWQBcG8o9W4KGiq','DdFdPmkmiG','WPvWA8osaM7dRci','W48wWRerW45gb8oqW5q','WO/cJGSR','vSohW6lcJq','lcLAW6i','W57dMuVdM8kGjG','Fe4A','WQBcSSk1W6zC','hmkdW5S','WPdcJH4','WQxcTCkDWOSz','WQhcJSk0W5r5WOPB','WQCVgd4Y','eK/cVCotaW','bHRdK2aqtX51E8kRggVdLqNdICo2FSotWRWtgamxW5fJW4FcHbZdQ8kLWQapbG','WQNcIMVcN8oT','WO9hW78','o35Hj8oZW6e','WOJcMreWga','aYpcMur+WRLsW7nBW4BcT8k3','W4DyuCobWRxcLG','W5OqW6pdJ0u3WQ3cKG','es3cI39z','wmotW6xdKaBcKaWcWPuWqqNcVSkdW5ZdHmo7W6pcPgHw','t8kRy1pcTW','W7JdVSkUjq','fmkqW6xcQmkoW6O0la','W4XeWRhcIq','W7WJWOVcPq','E8otW4hdIZG','WOVdJJ/dPai','6l6H5ysC6AAx6AkK5AAV6lA/CG','WO9hW7/cGaZdUa','hfldH8kNbG','WPxcK1hdTSo+','WP/cRSoRsrq','ud7dLCkfga','WPpdSt3dLGxdLa','q8kxWRnBhq','gSovW53cS8kQ','WPfjW7BcOrhdPW','tmklsw/cIG','W6BdPxldSI/cKmkBW4GRW6tcGSo1','W7JdQh3cPYtcOCk3W5aVW6q','W4yhW5ldQNO','F3ivWQHz','W6K3W4NcJt4vWQaQW4ddLf40iSo2','AHnCWQNcUa','dbRdRe4b','W7JdUNddPri','WQ3dVt7dVHC','W4iEW7C','emkoW7JcKYi','hLRdLSkUiG','s1FdLxr0WPZcUxNcSq','WPNcH8oXCqC','W57dK8k7bmoF','WPvHE8oJW7W0','cvZcSCoFdG','WQ/cUCk7fNG','W7ZdU8kCnmokWRmWWROChtfm','5lQe5lMG6lsj5yYK','emkPW6hcKJ8','WPxcKvdcPSoAW5LbW6RcQKriW4ldGuypzWa5oSoVWOe','WPpdUZtdTapdJG','WQJcPrBdNG','kqfDW7vg','j8k6WQ5SW5i','WPBcHCkFp0bRW7fKWRLYW4KHyKFdJ8o2W6pdN8olW4RdUvX8W6bOtdHExwhcJuKD','s0KYW6JcP8kOBSo3W7jwWQFcMKi','dq7dGNWjfXzrESkRgchcLHxcJmkVoCoqW6Thuvv3WOSKWOxdKuNdQCk6WRqOfXtcSreuC8oPWRZcPCkJj14eW61Iw8oVWQ1cW41nW45+dCosxSk8frhcVSkFbCkqfrj/eSkAsYi','W4yGW5JdQH/dVq','m3hcQSo0jLHqW4pdV8oNWRddPSokWQJcOq','t8kLeCkHve3dR07cLG','WPpcOYe5aa','WOzpW5xcHYK','sSkasa','uCojW7JcJq','ednWWOddMq','W5JdO1xdLIa','W6qHW5tdTfu','WRNcVCkuWPC2','iLFdT8kMh0/cNCoTW5HRqXj8qr9bWQSQzGhcMN7dTCk+cLS0WPPcWQizmCoOwmoQW6a4cmoNCmo7WRaz','W4ZdLWRdPSkhW5i','b3xdISkacG','WONcHfFcVCo9WPOEWQa','W4PAwq','a1/cOmoflq','W6ClW47dLae','dSkDcmkssfpdRa','WPPfW4VcVqW','5O6354+A54Yt6yED772J5BYU5BMhoW','ebHKW7bX','gZ1lW65T','WPBcHaeTpq','W5hcScmOWONcRXFLVPNLP5BJG6pKU5JKURdOTBxLJBe','WQ/cSCkkWP8P','W5ddUN7dMYm','oKldSCkLcq','rM4pWO5RW4WYW5VdVG','cbHVWRxdSCo3','dh7cLCoEoq','kCk9W4hcRYW2F8khWOGr','uCohW6ZcNmk
2023-09-15 15:22:53 +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