KR/jd_ttlhb.js

13 lines
73 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-12-01 10:08:36 +08:00
var il='jsjiami.com.v7';function Iii11l(){const IiIiil=(function(){return[...[il,'GKLjsMtMjIRiJDaumIih.cKMSom.JlUvGL7MKAuq==','6l+45ys66AcD6z2z5Asw6lwRsW','ftLAwre','WQ3cTmoRWR/dRG','BSkNWOHUWQa','W7zxWQLUpCofWQLQu8oQW7/cGSkjWRtdSmo0WRTyW7LOW5dcRr0gW5C','WOBcK8oJAJy','WOf7vf7dUG','W7SQW6qmWPS','5y2+5ykmAq','jbRdQtHD','W5JdVYxdNmki','wSocW7uzWPy','W4tdGCkKiwewWQ3dULacW7ldOYm','dd4SWO07','vxhdHg7dJ2pdRmk+sa','W4T9bvSm','6l2Q5yEV6AEy6Aoi5AEk6lwdWP8','sCo+W6bXW7S','rw3dUg7dHa','WRRcMCoJWQhdGmoa','reRdVgpdKa','WO3cMuS','WPhcK2hdJSkV','lvahW6pcKSoAq8kBWOyzAqHHdmofhtH1AW','WPTMW77cPrFcKYVdPCkFW7ldSYxcKa','W5KvsWLk','WPtdOWO3W6L6W4ZdNcm','ymoeW7yzWQNdPmk0','WRVcG3PHWQ5j','W6ujqx3cGmkBamkRzuesst0','WQugWQrKoCokWRvLWRa0mgO','omkPWO3cI8op','AGz4WRlcOmkkoW3cNmkOBJJdQuibivtdHX0Ou8kGdNZdKCovqCkXWRXoWQ5UW5i','y0jQWQZcRq','uZaBtW','WQbPW7fuW60OEeNcNG','W7ZcPcL3','W4JcJGxcSGq','EaddGCo2jmox','WQJcKKbKWRjphsjrW43cPmoY','xX/dKa','5lM45lIJ5P265yUQ5zUE6kYD6zEB5PA65O285lId56Iy77YY6k695Qch5P2y6iwV6lUB6kYa5AAu572C57I05OgC5yE9','xH3dNmoqpSovWPfRWPC','W41Ioa','W54SW63cSG','wXxdI1XKua','s2RdLwldSq','b8kQWQxcH8ogWOG','W4b9l1KNWPNcUKzvfmkisK3cSCkFW5RcPCovbb/dL8k2s8k0kmoTWRxdSmkWprNcS8kr','ACovFCokWOq','WRdcQffWWQS','WPJcMxFdNSkH','W4BdOSoGbtxcPCkE','iMFcUwetW5ZcIq','W7xdOI3dH8k9','WOxdImoOdYdcOa','W5JcMSo3l8koWRnDW4ldGLdcVLCsA8kozKpcSCkmW6WhW5DOeSoV','W6D0j0eP','qt4BxHf6','bgWIWO/dJG','EmkSy8oJW6q','y2xcIwyF','WQldHmoQhIu','lJVcMCow','W5zWWRbnaq','WRpdIdZdJY1L','WQVcUJVdLrq','trVdTf9y','WRpcMmoN','W6jBW7GEqq','WO/cSLNdSmkW','umoGAq','vrldPKfQ','WQpcGCo0AX1aW7BdHG','wf5vWRpcIIe+hG','emk9WQFcPSouWOZdHG','xX/dKfnSqCkV','q3FdHeRdKMm','bmoUW546WObGq8o+W6xcMCkQW7Pfo8kUW5DbWRf7WQhcLhSxWOZcJSofW4ldMgRdKMVdPmkp','5lMn5lUU6ls15y2k','w8k3B8oOW5lcKW','W4VLV4tLIlxLJRhMJzFNJQ3VVR8','emk3WQlcPmor','W5KMW7m','dSkPWQq1WQO','W4tdUZJdP8kV','WOJcUWVdQG8','WRjiW75OW5W','WPFdMbJdNWa','vmkkcmohEq','ocpdQcy0W77dNZNcSvhdJdddSSoAmXVdUxBcUqO0fa','oKGHWOBdPW','tHxdI1TF','D1ruWR/cLYW','F0pcUa','u8kDcmogrmk+','eca1WQ4W','xSo6W7nW','zXLV','EZC+uKO','B8k5fmo2tJW','WOtcLKy','guKMWQhdRG','AmkKamohxtRdNSkP','wSkee8odwCoWimkSrHf4W7hdGqmgi2ldICoBW4avk2GXW7q','b8kmWQC/ra','gt/dNhu8','kCktWOhcI8oE','B8kCWR5AWQ0','gCo6WRVcO8oBWOtdQLuTwW','W73cTY9Bo28','W68qzZXQ','W45/cwmc','bqKaWRSr','WQ3cPKNdK8ke','vSk0bmorrG','W5rzWPf1oa','W7esW5uvWR0','a8kJW5RcOhC','BXpdNCoFomoD','W7aNW4dcSt0','W7tcQJO','i8oxWReU','WRhcLSoTWQS','WOFcO0xcQ8o/','W67dMwJdUSoImW','fHSAWPK7','WQfjkSoJ','WR1ZW6q','W7TNWRTMfG','W6ddNcBdQSkN','W4ddQ1/dQCoF','j8knWQuFDCkH','j8knWQu','lSkqWRaxDmk0','WO/cK37dMa','lstcHSolW5S','rsFdVw4NW7NdHtRdUXtcKxtcHmk0n3JdPgJcMYbADCkfWOyzWRX8WQ3cLSkrW4aeW47dKWDzW7VcPSkmB297WRpcTmowr3iOW5BcMcZdIuL5W7OrW51lWQrFW54qzcBdH8oxy303WRbTqSkpfSkdWPr7W6q8W5ldLJhdUXNcTSovW5KVphdcOfPyo8oAWQzVW7TiWQPUWPyhrHBcLXG/cSkdW7xcSSk2x8owFfNdV2NcQH9xW53dHeXzfW','l1WEWQtdL8kfb8kqWPytgbjPamoEgt5RyW','W7DOdhWN','qGCoBuS','W7NcTs16iwSDWPtcJLNcMhT+o2ZcHCoagengWOpcMmkoW4ldJue8W4L8W7HhW6q2','ySk1b8oAsIFdN8kZWOrgW6fmW4/dPLxcP1GqWRm','WPXPqq','BmofW4G7WR3dQG','Ef5EWR0','qtamqG','nYBdMMyu','44go5O6e56Eq44kZW4ZcIZTjWOmJ5BAt5AAw5Ps3','smoUFCoBWRXBfSkS','wSo4y8o4WRO','ANzZWP3cJG','W74bW7pcGZi','W6eprNNdUmo0DmkODx8','WQ9OgmoEarddSCkAWPZdG2jVWRxdUSo5F8oXWQeQWQ7dMmkwdCkVW7T1W4BdSCkFWPqyFGG','WRxcMCouuZW','W6ZcPc59g2CjWPlcHfpcOYzQ','C1XsWPNcRa','vMtdHhtdHa','hdRcICo0W7O','tt0WDN0','grui','W5hcQHVcTIy','W4jIo1a','WQadWQPKpa','W4CyWP3dKIO','WQ/dGZhdHaD/c8kHW7/dPG','WPxcK2ddLSkEWP8Dea','WP3cG8oHWRFdSG','DCkZi8ovEq','WQ1CkSoYBLRdGdBcS3JcTHdcJHmHW7PXW7esWOBcGmkOWQbkhWlcU0qTWQ3cSeJdOmk7xCo0W6dcI0hcJG4Jv8oBWR9eW63cKuGGWQ9RbgjOW6pdP1nmiCkMW7dcL8o+W5XzaSkSWR3cIKaidCoKWOT2omkwig0yyWD0WQPiW6ldQvlcGGFcTM/dUCk6BJeSWQLAu8oKW4/cHsZcGdFcGxDRWPz0aSkCWRLRWQhcHNFcG8ktW61IiSohkmkuW6pdOW0CW7pdNe82W63dVSk6W4RcSSkDW6tdOmkdumk6iuSkW7PiWPddSCo3zwTfaSkDWRKjWRrxomoXEIRdO8oBomoJW7nOe8oNCW','WO7cGx1lWQi','DCkZWR4','WRZcISo5tX0','FCk8WRG','WP/dHtNdGsD0aSkkWQq','WRPWdCoC','fM9rdHC','c8kSWQO1WQ/dOLC9W6CvhSoA','vG0pF00','i1amWQtdMq','t1JcVcrGWQq','A8kMWRXeWRBcHSo3WOqq','W4tdKqBdS8k4WPdcPsPAuCk6WOfzBWzFWOGmsa','pXmAWRe7','W5FdVYddNSkpd8oCWQT2Dq','W6WRFX9d','kq
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