mirror of https://github.com/6dylan6/jdpro.git
15 lines
84 KiB
JavaScript
15 lines
84 KiB
JavaScript
|
|
|||
|
/*
|
|||
|
京喜特价抽现金(抽奖+提现) 入口:京喜特价-首页-幸运抽奖
|
|||
|
执行流程,抽奖--检查提现
|
|||
|
运行一次抽奖次数,默认抽完,控制变量 JXCXJLTNUM='200'
|
|||
|
每次抽奖间隔,默认1秒,控制变量 JXCXJDELAY='3'
|
|||
|
开启提现到上限转红包 JXCXJTORED='true'
|
|||
|
代理变量DY_PROXY='https://api',仅对助力使用,支持类星空的api
|
|||
|
不提现变量 NOTX='true'
|
|||
|
8 8 29 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jx_cxj_draw.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('Jx特价抽现金_抽奖提现');
|
|||
|
var _0xodT='jsjiami.com.v7';const _0x2de09a=_0x34e5;function _0x27a9(){const _0x4a5911=(function(){return[...[_0xodT,'gjNxsUjETAiDatwBmHiuD.coPEOmxg.vn7PJSNVh==','W7q4uY7dLwG+WRy7','W7S4pG','mSosW5G','W7z5WOS+W5dcHNS','W4pdRSozWQXJW6BdLG','W5eHW4FcGCo1','ymo/s8o6i2H5','W7HQW5vqW4ddUry','jSoM5P6d5Q+N5OMD5yIL6l6D57Id5yYd5OcW6k2l77Y/','WQr2C8kyWQm','W4PDW7u','W5hcGe7dVCoH','W4qytmoSfmkFgxy','W7RdG14','d8k0W6y','a8kqeCoZi8k9','wmkBCW','ogH8W5y','W6zpbr4','WPb0Beu6','W4TdW6XwW7O','bmkCbCo7jmk2','W6FcHmoFCSolycu','EutdT8k3WQS','pMZdM8ogWOC','W6ZdOSkFW7e','W4ayBmoS','hCkOW7L+gq','dSoYW4pcGmkzrCkjW53cNa','pLiRWOylzq','kM3dNSk8W6q9','W6FcKSoSW4xdU3JdQKiweJ8','WP3dKCo8aci','ahpdQmoDWO8','W5S0W53cMmo2W6bgWPmJWR01x00xW7OoW6zeemo9W6Dg','umo8rW','W71mpJKY','W70cCWhdOW','WO0LWOrWBa','sSosW7escq','WRRdSSoIcapcHsHC','W4eXWO3cSCom','WO4SWOb3xq','5OMP6koJ5REK56U477Yq5OIa5AsPo8kn5O2q54Yu','WQWkWQzWDW','W6RdOSkmW7XlW6FdGa','W404WQ7cK8oTWRtdPa','WQtcPSkHWOZcMa','amkwcSoGkmkywSkuDYnQ','oCoayf5+W79d','WQnywW','W6z/W4PkW5u','fe/dL8otWOS','u8kqwJ7dSW','phJdLCk6W7m','W5qTW77cGCo2','fmoKW78n','WPjWWQDGrSkAi8kQW5W6W7NcN1RdINFdS3q','t8oNreCRBG','W4brW6LaW63cLW','W7ZcMCo8W5/dING','WR5trxey','W5ldSSkjW4LT','hCk7W7L+','WQXAEKm','u8oPWQe+ruDeD8kAaXaJ','Ew/cPW','Fmo1uSo9iW','zSknzJ/dTG','pxFdICog','W6BcHCoFE8o1zdpcU3Phpq','bSoxzxnY','WObfW53dVe5O','BmoGumoVoW','5zYNzEwFNmos5yQY8yIkRG','pvqMWPmBvNZdVgZcJSk6WPO','cmkpW5n/cW','zmo/wa','W5FcTLRdR8oN','iZBcLGpcIa','WRn3aYOB','WO92Dhyt','W4VdVKVcRJK','gCkqbSo3pG','tCkbW4dcSYpdJG','W7SgW6FcHSoc','W7RcK8oQW4/dJxVdUL4FdZ41','WOnpFKyL','WPrghtygCW','W7C+xJVdHuG','xmoiW6y','ehxdO8oSkq','WQftAv4LwmoB','wmolW78taSkj','rCkBCJ3dTqZdHfGiW4FcGSoi','WQPuCvm','WR1iECk6WQO','z8khy294W6fdtSkRWQ1Ij8kBWQ7dGtO','WQrDfJiAyJRdQmkJ','W6fCbrazieldOq','W6ddT8kFW6brWQ7cM3f+fCkkWP5MWRlcOSkGfh7cVqSsWRrBDa','ptdcTWxcVq','WPrLWR51','W6hcH0CQW5y','hCkbemoPlmk9xG','WObxdreCCJVdKq','u0pdU8kJ','WQRdVmoKda','xLhdGCkTWRPN','WOPFzSoiW7m','bSk1W7C','W6dcKSoKumoj','a8k9Ca','osVcNfSbW4hdKa','fSoQW7ynbZq','W5mfESo5eSkti3HNW4K','gLPEW4Th','E8kWxXZdLcJdShy','W6ldTmo+WOvk','W5dcT1uiW7FdNCot','W5D2WOyoW4y','W5VdOmoFWRLQ','W5hcJLpdOSogmmo9WPVcHe8','bmk7W51Yba','cSkUl8oFaa','W5rugc0E','bSonChHu','a8k9y211DZdORRNMSzhLP5BOTQRVVO/OR4NMOiJMNktNVjpOTz/PHitORR4','rCk+W4tcGrq','qmkdW4G','WPbaec0w','k23dLmorWPBdMSoOm8oMoJxdNmo4or7cUxK/iCoXWPJdHHNcO8oJW7TIz8oNeuhdPmkIyCk8WQVdKCoOW6CIcKuMW73cOxXoWOZdTJvOW7ZdJCo5','lCoxW7hcO8om','fCoTW74','W7RdG17cKdhdIMdcS8o0WOC','W781lSkKWOrzACkEWO/dPmoGiCkauSogpK1mW6y','WQtcOCkBW6jlW67dKqPMfCkgWPiXWQJcTCk5hgNdRW','WR4qwG','W4eAASoUmW','heddV8owWQW','aSkvEf5f','W4GKWOu','W50HW4tcJq','WRLYWQPvxG','W7HagGmic3hdPq3cISkPW4xcJ1i0WQ7dSmkHoSkq','zmkUsZ/dOW','fSkfcSo2','kLBdNmoAWPO','5lI95lIY6lwk5y6D','dCk/W6rUhqvr','W5ZcV1epW5ddJ8okW68','W7FdQwhcUWe','wCoHuMuTFq','W7fUW5jc','W6GVvdpdHfq','W7VcGSomrSoF','WPzwACoxW6u','W5ywC8oRaW','l0CHWOao','iSohW6xcMCk7','W7/cQ8oipa7cRITs','W6SJW73cJSoG','o8kbwvvg','t8oBW6RcSKy','l8k+W5nIcW','p8kZWOfxWPPDW7auxvbnmWVdImoDfHLaW5lcGsaMWQxdPhBdRMpcSd0WeYzt','5PYv6l+i5BwI5OUB5As65Q+C5PwN77+S','ESoxW4pcKMpdKq','W7uOWQxcQCoZ','W6xMNBdMR5hMIQBLPBlOJ5NLV7lNJiZPHjJMGzhORiZVVjG','cMNdM8oFla','W4zDW7vmW7RcHMi','FCoxW5dcNKu','pMZdImoBWOZdLmoUo8ow','bSoNW5KrcW','xCkBzX3dOXG','WRzyma8w','W75gW5bVW4G','WPjRWR51xmoznCk36k2e5Rca5AAX6lAx77Y36k2A5Qos5P24572r6lAH6ywR6k6v','WPz6hZ8l','W4BcHeJdHSoRjmo8WO0','W7vpgaS','W4JcJ1/dOSoXnCoRWO0','xghdLSk1WPm','xK7MN5pMRzBMI73LI73MJAtNJ6lMG7BOR7NVVBK','W71ZWPG','W6lcMCo2W43dNxu','pqdcHLOn','zmo/wmozpxS','WRLDC8kQWQO','nmofW6NcT8kRyq','amonmwNcOLZdJMy1W7VcGSoC','ASocW6C8gq','W7HbhW','W5biW5XTW5q','rSkIvYJdMW','W47dS8oFWOD8W6a','ixFdNq','psJMNQpMR6pMIApLPztOJ6VLVkNNUP3LJydMGi/OROBVV78','WQbLWOLsFG','W7LGW4e','n8kAWOn6WPu','W5qQWPdcJ8oV','WP7cG8kKWPdcGG','umkeuJ3dSGxdIeebW4FcHmoaWRRcOSk6yWJcTCoqc8o5W4dORO3MSk7LPQ3OT4BVViZORQBMO4xMNRBNVj3OTQhPHRFOR5O','WOffCSoYcCkvpwi','W6bCW6HnW68','nqNcIwy4','emoYW5pcLq','smkCW4dcTtK','qCoxAmojoq','vmkduG/dPa','W717W5jtW5lcPfZdO0aKWOddTmo7gCohW7JcLMBcKSo5W656W6C','hmklba','WQXaqmkBWPC','W6OLtq','j8o1W6aAprddRY1GW5xdUafZb8kkW4lcV0hcICoYbX4','jcNcQ0iK','W
|
|||
|
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
|