KR/jd_zqydj.js

15 lines
65 KiB
JavaScript
Raw Normal View History

2023-09-28 13:51:15 +08:00
/*
攒券赢大奖任务
2023-09-28 23:04:01 +08:00
cron "25 4,16 * * *" script-path=jd_zqydj.js, tag=攒券赢大奖任务
2023-09-28 13:51:15 +08:00
2023-09-28 23:04:01 +08:00
首页 右下角图标 赌运气中奖会收到短信
2023-09-28 13:51:15 +08:00
2023-09-29 10:01:43 +08:00
一般是晚上 8点开奖
2023-09-28 13:51:15 +08:00
*/
const $ = new Env('攒券赢大奖任务');
2023-09-29 10:01:43 +08:00
var version_='jsjiami.com.v7';function i1IiilII(){const IlI1l1il=(function(){return[...[version_,'XKTdjbwKsAIXjNiaPmieh.ScomSC.EtEv7pXWVSY==','W4fLWOpdLSo/','aKBcUJjJ','cxydW5lcU8oE','xmojB8ksqq','c8kjWRFdTZtdJebVW7ZdNq','WORcMJ0','m1tdNSogWPS','uSoaW77cRN8','pelcIsxcVmkqWRldItWvdMdcHSoDW5dcIqJcPSklWRBdQCkFrmk8ywO3W7RcSmkLWOe/AW','WOTMWOG','WPLspr/dKCoaWPW','wtddOmo+','kmoqgeXt','CgOLW7GuW5W','Ed/dISklBa','W5ZcTSk1amkMWOu','W4j0orxdTmoP','WPRcKCo4W6tdOq','FwWJW4uuWOhdNYTjWQnGodtdG8oCASkhaCkMW7BdRKzYdJy','WQxcMJxcLmkTWP03W4W','5P646k+q5lIc5yUO5AEK6lEwW78','jhuNpmkh','W5BcQSkI','pfPedSoXW5ddI8oz','W77cOmoqfKO','hMuFW7VcP8ou','WQJdPgODWQuZA8oJW7tcKYPrpmoP','WOraW5JcKbe','WOzpWRFdQ28','W7SbW67cISox','W7lcISkmcmkO','W5zEWPNdKSog','WPaDo0rg','WOTMWPVdMfGjWQGjW6RcT8oL','W4tdHCkZW6yJBN1j','6lY95yAq6AEm6Akk5AE16lEDuq','W54ypmkc','n8ojWRbZ','wbRdNmkcDgqlW5JcKvW9zGVdUrBdI8oMamkmW4aygaLSW4DPd8k1yebjWOhcPW','wmksjfrH','W4P0jbe','5A+i5OUm5lUe5yIlWOhOJjxLVltKU6NLVi7LPRVLIlhVViy','i0rYpSot','W4VcGSoSpgHg','cgmFW5/cUSouW7enWQu','wL4dW6a0','WPJcU8k2qCkK','W4aXWQflFW','gSoMuCobWOm','oLxcHZbdu8kGcq','W4jcW7hdHMC','chZdVSou','WOnjW7xcMG','dmo/sCo1WRKDWPddHCkmW7xdJ8ku','WPC0BSkNEW','BqhdGSkRWQe','WPToW7C','W41+oLZcS8k3W6TMW7qod10Cymo0bhpcLSkE','WQNdUgGfWO05','eh/dVCofWPZdHq','WOfGWOhdHu4tWP84W6BcVG','WRyVW7W','g3pcS8o/W7zjWRrps3JcP8ko','WPujySo7lCkUnKfMW5fNWQGFW63cOSojWOH0WQi','sSkvb2vBa+w2TowKR+AuJmo3i8kn','deDx','WOnoW4pcGa7dQ1hdTa','WPC+fKf8','W6ZcItVcQmoMamkxla7cVSo2oCkZz8odEmoRWRJcJtGcEq','lSoGCSo/WQmtWPBdQa','W4b0WO4IWP/cOINcHmk0W5mHW5ZcM0NdU3m','mhtcOWBcVa','mM/dM156','yfavW4mi','W7lcT2BdTfBcSG','W6G2WPfP','Bmo/tCktyXRcQ8o7WPbv','D8o6W7xcHhu','WRFcRSoaW6RdUa','iCkOe8ogbJVdVSo6W4e','WOWVjmkaWQ9/WPu','W5S3W4xcJCo5emkLWRq','W4yWW5tcJ8ojrCoUW74kuSovCfRdTCk6bmofgGRdLG9SW43dTmkAytThvthcP8oyp2VdPCkXW6WArwpdPHuVWRnOW7GHA1FdUrxdK2tcNSkqlYz+W6lcN8okCSkoW6KRW65nWQ5OW5qyAxhcKCojW7tcIKddOCk5pmkDWOK3sfVdLInhW7mVWRBcM0RdNtfZWPGkn8oRyCoIW6neWRDkz05aW6L7qSkWW6NcLSkXW4RcMK7cPfddP8kznmoGuLxcPYBcVSo9W67dRCkQvSola21uf3rEyL7dGtJdKmkqW4G3FY3dUs5HW53dTmk1l2LWu8odWPGQW5SLvsCniSoudKfJWP4BxSoxWOHQ','WRSFqSkSrW','euxdJctcMG','WRxdHd1k','W558WP3dLCo3','q8kOW7xdQXu','zCoQuCkpva','umkTW5FdRW8','W5rYmsRdSa','WP5sW5ZcMXVdQ1e','W6aoimkdWOn3WOJcJW','W5KWW6hcTSot','iLVcKX5Lwa','nmoBWRO','lLik','W63cIZtcVSoQca','W5BcPSkWg8kbWO9RCq','ymo7vCkc','W4RcKCoQea','WOxdMuWSWP0','WPNcISozW6m','oL4LWRy','W7JcSbHS','WP5tFmkH','WPlcLcNcLmkaWPCPW6eltCkd','5BYS5PYc5RAS5yIi5Bsn57M+57Qp5P+8','WQZcUgpcUCo1WOekW502x8kwW7eBpritt8oStIO1WQddMmkOeCkzWOBcHNnpdLGKl2tdIIFcN8o0jCodWPZcRSkO','awVdVaNcIq','cwhdScFcIW','WQuZW7JdNG','CCoUr8oB','eCk2kwb6cZ4','qKiZW54f','WOFcHsRcK8kTWPSCW7Wpr8kEWRivxsWuyCkrrY53WRNcGCoOcmomWOJcVYrHghCf','e3JdUCohWOVdMq','AaVdRSkmWQa','W77cTYfMW44','W6b4W7ddONrFkCoy','6lYu5ywY6Awh6Acm5Awo6lwnWQO','W6vIWOddJmou','5AYA5OUb5lQo5yQO5AA86lskmW','WRdcQa9nW48','cwOZWQaY','ur7dMmkEBJ1fWOpcMum6zWZcPbpdGCoKq8kxW4Hpdvz1WPq','W5ZcTvhdRf0','W6ZdN34qWRu','WQdcSCk9qmkkWOmf','WPBcLcJcJmkH','WPrQWO7dNL4EWPyYW6ZcVSoZDSkXW6fJlSorCq1bW5BcOsDS','r8k5W5tdLXO','o3qMWRun','pKK1WQiRW7zDW69CW6DvW4VdUq','emo9WO1/nW','r0i+W7S9','WPBcMmo5WRnzjG','WRhcNJPkW6msW6BdOwJdU8oDEq','lfWaha','DsX/sazfW6THWPOWmxG','W5NdMHS+zSoo','WRq0qmkctCoDwq','W7FcOqvLW6rmFJXzeSk4WOJdKmkDW53cVSoTuSoUnSoEW7TqnfhcNYC+bmo+WP84WO0','tCkodh17','a3Oogmkz','W6L/WR7cJaaGmSoZA8kaySo+','xdhdTCkU','W415WOO','jCkSt8ogW4tdGCocWP1hWOjNm3v0A8oGWQSPlCkhAf4IW57cNSo4WPRcU2hcK8kuu8oA','axWHW7NcPSoYW7fEWQPhW4jdW5tdSSktzSkMWRBdI2LSiG','cCoFs8o3WOC','cKzfgq','WOtcOSo0W7RdOW','kmk1ua','wcxdTCkTWPavWPzwqq','fLZdU3j4qG','W47dHmkZW6yp','g2dcLYZcMG','6lA75lQHFW','W4f8WPNdHCouuSkHW6VdQq','W4f2zdi/q1ldQmoCxmoPW6O','aNHre8oC','W5vqWQKKWRK','pvq7','5B2o5AwI5Psc6zAV77Yn','uaddOCkMra','uwvGeSo3W5ZdNG','W4L3WP4dWPtcOa','omoJbNH3WQbtW5FcK8knWPRdVuTEjmk7F25MWQrCjvdcVSoPW5pdMSkZW4efCNWbtxVcRe7cVf/cMGNcG34','W7W4WPX4','uSk2W4xdIXTp','W5n5WPGOWP4','imk/rmke','WQq5W63dIxf9jSot','khJcVanG','WOvbWPZdGhK','W4tLVz7dQa','WQldV0q','ChWsW7aF','AmoIW67cSvC','E3K6W5a','WOddH8kOAa','WODaW6lcHXK','kvpcIIlcGCkkWQpdMa','W53cKuddUvS','WOFcLI7cLSkYWPejW6edw8kVW60bes8fECoota','k
2023-09-28 13:51:15 +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