mirror of https://github.com/KingRan/KR.git
22 lines
66 KiB
JavaScript
22 lines
66 KiB
JavaScript
|
/*
|
|||
|
活动名称:分享有礼 · 超级无线
|
|||
|
活动链接:https://lzkjdz-isv.isvjd.com/wxShareActivity/activity/activity?activityId=<活动id>
|
|||
|
环境变量:jd_wxShareActivity_activityId // 活动id 链接均可
|
|||
|
jd_wxShareActivity_helpnum // 需要助力的账号数量
|
|||
|
jd_wxShareActivity_blacklist="" // 黑名单 用&隔开 pin值
|
|||
|
JD_LZ_OPEN="false" //关闭LZ相关活动运行
|
|||
|
|
|||
|
建议只跑助力数量变量不要太多,会黑ip
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#分享有礼-加密
|
|||
|
1 1 1 1 * jd_wxShareActivity.js, tag=分享有礼-加密, enabled=true
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('分享有礼(超级无线)')
|
|||
|
var version_='jsjiami.com.v7';const i11lI=iii1II;function Iii11l(){const Il1i=(function(){return[version_,'dlOEjnsUgyjlCiDagkJmCkeiU.dcbNom.vMy7KgV==','W5uslCk+jgb6','5lMi5lM15lIj','aCk1nauTWRO','W6qXW67dHse','u8kiW4NcGa','WPBdQCk+da','smkYsCok','ySoCCJnaWOtcUKvOfM3cICoFCq','44gf5lUO5lIU6lwY5y6F','ub1AW7ldIvpdUSkIBHvNW6S','WOvkW5dcGgSBWOSWWQ41jmkyAW','W73cV2G+FW','lSk7AqlcOa','iCo3W7e','bJuZcSorWPpcV8k1','nCkDfIOTWQyNWOddLdvKvdmS','tNXEWQtcKa','hSoRW4e5nG','WP8xWRpLPjhLKOpLTO3LJ5FLR5S','W7KGW6/dIq','WQJcLmohWOjm','smkBAmomWOO','nci5tCob','W5xcIvL1WP0','kCoQW7C6l3JdImoZ','kKxcPCkwW6Hr','W4ZdKmo/lJy','W4FcKh40C8kaW791','WRNdJmkAlq','WOBdVKWDWRKi','uMeMzNZcG8onWQtcMwlcP1v8WQ4tW7ihcmkBWPT8mwzutcGyga','W5rxW6m','W5y9WQNdLdy','WOdcVSoQWQm','gmk+pGC/WRS5WRFdLq','W5RdI8oLiJm','WRT0W7VdQmkO','WPXFW7BdQCkO','emoWvauI','W7FcOhTpWQ3cLepcNCkYW7xcJa','WPJcJtldUflcSCkw','z8kwkSopW4a','BZhcK8oMW48','zcldH8oqmftdNG','5lQn5lIR6lsQ5yYl','tmomW4fwW64','d23cGSkLW4y','mICCFmo6FhddQHy9','WReFWOi','5B2L6Acr5y+25As/5zcD5O6Q6ywk','aYWxfSkCW5TZWR7dLmku','s8o/c3ddNG','8kYCKCk25OcG5zE66i6H5BY55AYc54IHaq','eSoJWR7cHa','WQhdJSoPt8kt','FCkzW41WWOb7AmoDgmoCkhNcQCoCW7ldJSo6W5xdNmoFWQ/dNCkkW5hdRuxdGmkCW4nbBNPQWP0sWPBdT8kHsmkKWPrJW6PuhZiZWQBdI8o2nCodDSoBW5lcKCo3W48ye8oGBrJcNCogWRnZpSknASoRFZ/dUH4RWR3cIuVdGmoDmLZcH8kqW4iss8oxW7rAW69oWRWsovdcVuBcQmo1WP7dVSoQyCopWQmHhmoEWQ7cRSo8jN84W7fJW6ZcS8oMhtZdGZL4sdSqiHRcSCkkBIlcHCkoCbeMj3aEW4ZcP8oIjCkrk8kVDmk+eSoroeGqC8k4d8oCyL5UW7xdMLhcPCkzW4TyWONcRvRcP0mcBwDtWPJcVmoma8kLzcu7sfHw','zhibz1ZdQ0/cMCkhsCkAy1C','AWfp','DsRdGmof','W77cPM5cWR7cJ0q','csC+jmo5','WPrDW7hdISkt','z8onzY11WOlcOeHifN0','WQXUW5nN','cmo5WPLlW6/cNb/cSZK5qeiNWOG0W4yPixtdSmkTWOFdJvhcQ8o/dItdS8kox04aWRpcO1TaW4XsFmkrWQH+WRxdHg1uWOJcSmkuW7xcJSoNfSorWPiBWOCvkSobWPJdRSkIbXODi8kOWPi6oSo7W4VdQ1jhW4G0tbRdTY0fWQDzW6fPl8ozWQpdMmkaySo5p2ddV3fbWOJcGghdNSk2W5ldIqbsW7Lwg8kCWQFcSmoyDH3dNx3dKSoxdsy5WOBcSfqZW59fvSkxW6y0EY8TBM3dIHanl29QWQZdO8oFzWn5WOumW5imBdVcHCo3jw7cOSkKWPRcJL9rWPCLWPdcS8kJW4ddUZLFqCkXW7FdSCk5xfRdPCkiW646WORdK8kc','WQ3dLSoTlqS','W67cGfywCG','C8k0W4ZcI8os','WQxcTWZdR8olbLefcG','W7mZW6pdMXyFtH3cJH4gpCoEdq','ySo2WOxcKmk9jHm3','qCk2imoJW5m','BMb6WQVcQa','r8kpW5VcN8oqW6TXWPKjkg98W6Si','eCoZWQ7cNNVcLCkzWQNcNa','WOrhW4HKW5HzDdldNmktW7i','EUIpS+w/Ouq','W7SrW4pdPty','jmk3WQNcH8kSCM90mLDSDdHkWOLPD8o6rryvcquQECoOW5/dNW','W57dPSo9DSkFlmkV','j8kIzJ/cUG','W7WOWPldQru','W5NcJg43','nZyjySopEMRdPZO3WPf5W63cUa','nJfbiaFcSXJcM8o6A8khExvKW7NdHdJdU8kCz8ozqmkAWPpdKCo5WP4','bGDPmq','A8o6WPlcN8ksmX8','q8oCW4njW45kWPNdGmkdbG','W4fCW7ZdMYBdVmoKWPNcG00eCContutdRNyBqgZcJsWhWOBcK3NcR8kMWR47WRtdU1GbWPSC','tI3cJa','d8o3WRxcV3BcGmk7WQxcPSk+WPtcNCow','tInHWQpdMW','c8o4WQNcIwy','lCkHqXNcLJyR','W7qVj8kicq','W6FdICoJ','maDPn8kU','WO7dRCk9drSUW7FdMmk+','a8o1WRNcHwJcImk9WRNcU8kZW4q','WPNdQ8kNaaG1W4RdHCokWRuI','tCoGleBdMa','WO4eWQXNWPC','aeNcUCkRW4K','p8kXWPNcUCk1','wCoFWR7cMKRcJSkIWQxcNmoQ','gXnenCk/','WPzbW5jPW6bFDcldR8ky','Che0uf0','W73dVMJcQWtcP8oZB8khhW','W4/dN1xdGG','tfz4WP/cJG','WRpcSdRdGw8','sercWPpcGIi','wmk0e8oVW48hW6RdKI/cIxaFWOFdNItcGgxdRmkuW7HcF8kdrCkpWP5dWRBdVCkPW4HyWRiNWP/dG8o7WOKUW4e','5B6R6ykQ5Ose77+K5AEf5zgfpW','W6BcM0HcWRi','mqm7mSkp','qYhcN8o7W7DQWRSClSoIWRGx','772k5Bsg5OQY5yQl6isp5yQ/55I86kYe5Pw+6lAt5z235z2xW4BdPW','ad8UgG','WOVdRSoM5Aww5zgb5BAu5y615A+I','jajOeGO','pHazuCoh','A8opAXDRWORcPLrzextcUSoJ','haDW','WO/dQCk6hq','WRTRW5j2WOy','rSoQWO/cKSkj','WRyvWObYW7BcImoLW6ZdGmk6','EW3dV8o9gW','BSolFZrrWO7cP0rHda','nceCu8oLz3FdPXmdWQzKWOlMRQ/dS8kN5BwU6koU6zUm5yMx77Y36k6U6l6vW40b5yQB6zc/5zc75ys/5OQH6kkI6iwf5PYg','W5WzWPVdQJnlW48EWO0ScSk2CG','DSkLW47cQ8o9','zs7dNCovpuZdHG','WQL/W5DQWOaDbteLfsdcGSkZmmk9g8ouW703bmk0csqKgmoYWQH/o8kGqmo9na','WOpcKsFdGwW','s8ouW5Ld','tmkNqCokWP3dLG','rsFcN8o2W6b3WQ4','WPrHkmkN','WPf1kmkUcSkkWOhdTSkmBW','yc7dImoF','k8k1WQxcUmkA','W6FdQvJcVCkDwxSjk8oGrHW','ibiFuCo2','WQxcImocWPb9W5rwW5ajEq','WPNcIGRdP0BdOSoxeZ/dVmkgxSkvm8kwa8omWPCJsmolWP9pWOzCW7O2WR4JW6q0fr/cR8oup8ojWORcUCkehKTc','WRtcNXZdUmoH','WPRdP8oJzmk+','W5iepSkPh3CI','oCkTWQ7cN8k2lJq','sM1OWPtcNa','DXTBWP8','WOrUW6TuW6S','W43dHCotmhm','W73dK8o3asW','WOb6gmkefW','fsiVaCogWQZcK8kIW7ZcL8k0WQ8','tm
|
|||
|
// 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
|