mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
21 lines
39 KiB
JavaScript
21 lines
39 KiB
JavaScript
|
/**
|
|||
|
关注有礼-加密
|
|||
|
|
|||
|
|
|||
|
必须条件:配置文件或者环境变量中添加变量:
|
|||
|
## 关注有礼-加密-jd_follow.js
|
|||
|
//export M_FOLLOW_SHOP_ARGV="12237383_12550303" //活动变量
|
|||
|
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#关注有礼-加密
|
|||
|
1 1 1 1 * jd_follow.js, tag=关注有礼-加密, enabled=true
|
|||
|
*/
|
|||
|
const $ = new Env('关注有礼-加密');
|
|||
|
|
|||
|
var OO0$='jsjiami.com.v6',OO0$_=['OO0$'],O00O=[OO0$,'AQln','AMOxw44=','d0FTw68e','HsO7w5rDsFU3','wocJaw==','w5MsQwrDrw==','FMO0w6PClMKkwqfChlnCjQ==','aTjDvmXCrRs=','Sm3CvUHDsQ==','wq0GCSXClsKZ','EjxFDcKY','H8ODw6/DhXnDjHE=','wpkDbWXCv8Kyw4vCjA==','wp1GfEMi','w7nCvsO1W8OI','IsKWw4TCoiY=','KMOPwqHCrMO6','w6AQwro=','dyBTwpAA','5Lq35LmB5rCs5pyZ6LyV5Zqx5pao5o+MIw==','NsKwwqHCrA==','wplqVxQ=','w5AvwpvDnw==','w5MiQg0=','wrjCqzHDrl8=','wrIAw6Vlw5U=','I8ORwpnDigk=','wqbDlDHDsD4=','bgXCmcKCfA==','d8KuwpHCqA4=','wq0Fwqxf','WT59TzfDjHF1w7c=','HcOHw7nDoXM=','w4vCv8OAwoDCj8OZw55/QA==','wrbCpsK1NA==','HF4aw59l','wqQ3PCfDmA==','bMKDMMO6','w6/Dt+Wkjui1mjVW5Y+g5Zusw5vDkw==','OiHCqA==','RsKyw6oDwrzDv8KKKMOm','IRbCnQ==','I8OPw7jCtXY=','wo4yNhPCrQ==','P0ofH8KHEg==','I1ALMg==','w5nCu8OCwoXCiMOdw5ZtUMKEVTrCjcKdw6LDmDcQTg43ZsKyGiUEw6fCvcOELnEIeA==','w6tMTQ==','LCbDomVbL8Oww6PDq8KswrXCnFjDtMKPw7ofworDq8OdEjTClAXDkjcfwpDDvsK3wqXDuMONw4/ClMOpw6VEPEnDt8Ogwqw+w73CuAwkwrFqbkPCgArCuzR+w50Ywp/CgMOGQsOGPcKzw5t5wr0NwqY=','AMKDwq/Cg0fClg==','FhB+XksCwpdqE10Dwr0=','bnrCh8KCYg==','HBVIasK6','6Iy55b+M5aal5ZCE77y+','woEkZDYyblYww73orKfms7Hlp47otJjvvb3orZfmob7mnIvnvLjotozphrHorrs=','w7p0wrjDuw==','IsKdw5XDnxvCn8Orw5DDsVIpeRpvw7jCn8OLFVnCmA==','F8OOwqbDmnfDkGbChGTDlMOpAcK+w4Esw4jCnk3ClsKMwrxFV8OnOEpAMsKrw4dwO8OKw4wKw5TCvXFIcMKRUjRvYDtUwpHCncOdFMKPw7VyacOpFDdZwpQsw4Mewq4Lwr0nMk96w7I=','w5Avw7rCvhw=','woguwq1pbw==','w4Frw4PDtXU=','w653UxBm','wp3Dt8OxZRU=','ZMKqNcOSWQ==','dyBNw7Fh','CsODw78=','AnRIasOF','wpLChm5PWw==','HBU3FQ==','w5rDu1A=','a8OmCAcb','wrd/wo9D','ZcOBw4Jcw6g=','w5Embiwz','a8O4aXh6','wprCtCl1wqY=','w7AITRAZ','w4rCrsOTwpvCtsORw4V9','TSXCrw==','wpLCmA8wJA==','KMORw4DCrMO6','D8O0w6XCjcK5w7rDgBDClg8kVkjDtMKNFB7Cp0gXIcODw4vDqzfDp8OHMcKawodnwrMkU8OdCMK9blJuTSBL','wqQ3Q0Y=','wodqV2s=','wpEOIV/CicKzw4rDhSvDsENreFnDj8K3wpjDizsawo3CnxPClsKfSmLDscO1IMO3FzTClcOpwoUkK33CuMKzI27DvcOOwr5tDQPDpz9ww5bDgzvDvAHDph3DqgHDgcO2w5/CiErDtsKGQmZl','JjFGIQ==','w5vDp1A=','wrzCpsKsMA==','44Kc5o6v56en44C26K+v5YaD6I2F5Y+N5LmF5Lmw6LSI5Y6P5LuzwpjCs8KBWXjCkMKW55qF5o+o5L6955WpcnwLwoJWIueasOS7ruS7i+espeWLteiOu+WPsg==','UsODTEdYw6fCkMObe8ORwpQOTCbDrHFFwqAnGsKgYCbDqsOZFnslX1vCkz9NZDjDtFfCrjFHwod3Tg==','w50wwowXKA==','acORw7DCqHE=','ODFGP2k=','wqQpQyfCpw==','UMKow64=','extAFg==','esOVK8OM','CkXDhsKjwrPCkU5/GXXCs8OGVQ3ClsOiw5gSb1MODMOrCsOwwobDqcKhF8OCw4IeDcKzCMO2BnAjw4rDgcKvw5vDvxHDmA==','w7MSez7Cnho=','w6XDjsOi','wpLChg8uRQ==','CMO/w53DpA==','IFEKM8KbB0twTw==','wqQpQ0bCuQ==','P0of','wqAZSlcBCw==','wqPCjsKv','6I2u5Y+I5p+v5YqH5aSP6LelNsO3','d8Kww7DCtnE=','AnRIasK6','aSM+','wqnClMKmAcKdw7JLDMKIw7pawrvDh1fDvE3DuT7DlGbDp2VfTMKNw73CpsOILTTDvMK6wqvChcOgw5XCuFxNwp5nw5fDjsOJGHbCqMKaR0LDtQ==','K8KKw5XDhh7DjMKwwobDiFc=','w4vCtyPDjGENwp3DhsOww4ULw5pmEsOGWT/DvHE9w4Jew50XKMO0fQTClWprCwfCgMK5cgEmLcOXwoDDqsKZLsKpwrPDnjdv','ZW0ge8O/w7zChTRJw64Jwqt0w78lw7lPUsKCTEx0cCZgLk0Kw5NfwrLDksOMwoosw5LCiMOpD8KDwpYLwobCk0IkwpF0a8KswqnCncOfcwxqw5hNY3bDlsO9wrgiw6QkwqvDjgYLD2INb33DnsOVw4pZwqbCugtrwp7Dp8KGNsK6wo8AL1JN','w6nDu8O9w5nCrg==','w60Pwq1LccKowpNvwoADQFfCi8OWwqvCmUU8wpPDswMgw680Tn8MwpVxLFAnwrM=','w6fDgcKKW8OI','wopcKsKUA0LCpcKGwoTDksKvEcKPQh3Cl8OXw5jDviNVF1pJwr5ywpUpw7/CqcK8wpFnFGfDt8K1TW/DqsOSw5wjw5XChXZbTFIFwotxw6jDjlTDujNURlXDtcO8P8KCw6XCisOYw6zCnhoo','fF0pLcK9wqXDmzRYwqcfwrR2w7hvwqhFWMKCEmNEbwc9ZkkKw5kHw6/DjcKLw6pqwonDgMOjTcOnw59Iw47Cm0kuw54gK8Oxw7fDn8KRN006woVBIyvDksOiw6d2w6I9wrXDmAoSBjsQeCfChsKKwpUEw4rCgS1RwpHCqsKfN8K8wp42L0NSwrdEVl4Xw7HDqsOAwqLDsQgaHsOjwrhEwq/Dq1J/QcKMw50QwqNMd0B9w5nDvhxrP8KcS2ZLWcOhwoF1w7Yqw7jCiMK8McKFNMKYKCfDumTDkwrDmcOcw7pnLmY/w452wp9pccKSVRHDosKxwpjDl1nCviwNaXZtworCssO+VsO7PsOKY8KaGhDDrxs1EcK7w6sKw5XDtiYUw4rCqR9TwqrDqcKsDsKbwr5ew6lOwp/DpiA6w4FxazDCmSrCp8KTV8KBw4o=','d8Kuw7DCtg4=','GVplIRXChQ==','w6x9fkk=','6I+k5Y+H5p2G5Yix5aSb6LeCSgU=','w5klHDHDq3bCg0PDtmvDrTjDssKzw591wqlSYT9Cc8OyK8ODAFAlwrgnw7B6U2J0woJaGx/Dk2Byw4TDmMOUw7F4wrRIbsOSw5bDvRR5GnYQwojDlMOGw67DucKmOzrCpMOdw6drdQ==','w57DoEMcDMOZYcOvZsOELsO+w6rCgxTCn0TCgsOJw78xVUvCjnR1e8OVFDnDpQ==','TcKtEsOQcA==','wrMFwrIgLw==','esKqK8OSWQ==','w5A5QxDDpH/CmQjDhQ==','wpBTKHLCsw==','PUQVPw==','w45Ow7rCoH0=','w7wewq9UfQ==','GX7CnmJ1'
|
|||
|
|
|||
|
function TotalBean() { return new Promise(async e => { const n = { url: "https://wq.jd.com/user_new/info/GetJDUserInfoUnion?sceneval=2", headers: { Host: "wq.jd.com", Accept: "*/*", Connection: "keep-alive", Cookie: cookie, "User-Agent": UA, "Accept-Language": "zh-cn", Referer: "https://home.m.jd.com/myJd/newhome.action?sceneval=2&ufc=&", "Accept-Encoding": "gzip, deflate, br" } }; $.get(n, (n, o, a) => { try { if (n) $.logErr(n); else if (a) { if (1001 === (a = JSON.parse(a))["retcode"]) return void ($.isLogin = !1); 0 === a["retcode"] && a.data && a.data.hasOwnProperty("userInfo") && ($.nickName = a.data.userInfo.baseInfo.nickname), 0 === a["retcode"] && a.data && a.data["assetInfo"] && ($.beanCount = a.data && a.data["assetInfo"]["beanNum"]) } else console.log("京东服务器返回空数据") } catch (e) { $.logErr(e) } finally { e() } }) }) }
|
|||
|
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
|