faker3/jd_gzsl_contactWare.js

19 lines
39 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
活动名称关注有礼 · 无线营销
活动链接https://gzsl-isv.isvjcloud.com/wuxian/user/contactWare/<活动id>
环境变量jd_gzsl_contactWare_activityUrl // 活动链接
7 7 7 7 * jd_gzsl_contactWare.js
*/
const $ = new Env('关注有礼(无线营销)')
const notify = $.isNode() ? require('./sendNotify') : ''
const jdCookieNode = $.isNode() ? require('./jdCookie') : ''
const getToken = require('./function/getToken')
var version_='jsjiami.com.v7';const iI11iil=il1iI1Ii;function lIIllI1l(){const llI1lIII=(function(){return[...[version_,'UjrSsEXFjiayLmhKiC.XAcofumfY.OvrV7OhLwIy==','z2v0rNvSBfLLyxi','t3PJDNC','vwDTBLy','qKr4z0u','wfHZDwu','Aw5KzxG','r1PtqLy','rKHTqNq','weTfqwS','BxnN','A21qBvC','EvDWDM4','BwLeswK','6k+35AgR5yAz5Rs75yQO6zo+5O6L','r056vu0','DvHsAxe','ChzJwKu','qNzuDgG','ALziuhO','zg9TywLU','AMrHCha7AvbOB25LoZeWlJiUmJSXnc4ZoW','DuLbA00','rgDqwhi','D2fPDa','zw52','vKHKwfK','CvDfs1e','vMfizgG','zg5Xz08','q2XHD3e','uNPsyKi','DhzytMi','rerStNG','vvzrzKK','z3PPCcWGzgvMBgf0zsWGyNi','tMLKD04','zMLSDgvY','z2v0ug9PBNrZ','sgHqrfa','5lQS5lIC5PYn5yQH5zMO6l+u5zUE5PwW5O2U5lI656M6','ywn0AxzPDhLfBMq','zMXVB3i','zg9Uzq','AMnhEMi','u2vlC3G','EKrfC0i','Eer0CLK','zNv1sg4','Bg9N','EM1nteO','BgvUz3rO','5Rs75yQO6kEe5yIz77YA','mtj3DefvCgm','rMvtCey','rhHdBNe','CfHvsem','uerowwm','AMrFz3PZBf9JB250ywn0v2fYzv9Hy3rPDML0EvvYBa','uLHpEee','z2v0tw9UDgG','y2f0y2G','tfHdALC','C3rYAw5NAwz5','wLfNAxq','teLHt1u','ndC3tMz2EKLg','u2jNrhO','6Akg5y+w5OIq5yQF77YA','B2jQzwn0','t2vHCNi','Dg9Rzw4','tM5Luem','q21drNi','wKPmr2C','BgPPzhe','l3D1EgLHBI91C2vYl2DLDezVBgXVD0fJDgL2Axr5lW','q25fwLO','vgjHDLq','m3WWFdr8mNWX','t3D4vLq','tLvZv08','CuzABe8','u2v4qMO','twn2r3K','AgfdCM8','Bfzdr3y','uuLQtNO','CgfYC2u','DvrmBNK','wKvOveq','rM9iDhm','CLPhshq','werkruC','zgvovKi','C3bSAxq','ugXhrvO'],...(function(){return[...['qK1Iv00','z2v0rgf0zq','5Rs75yQO5ywL5y+J77YA','CLblrg0','zMfSC2u','C3rHDhvZ','AufLue0','y2HHCKf0','Ahr0Chm6lY8','BML5r3C','y29VA2LL','zg9ODgu','u2LhyKK','C2PqDM8','mti5otmYmeXizwXxsG','CNvIqva','DgL0Bgu','AhbWr08','tgHqyue','qKjRD3u','ueDHBKu','mxW2FdD8nhWYFdn8ohWWFdu','thv5ugG','y1Pzshm','5lQS5lIC6l+u5zUE5lQg56M65PwW5O2U','6i635y+ww3rVA2vUxEwKSEI0PE+8Gq','AxndB250ywn0','EezUsNG','kIOQkIOQcG','ywjJzgvMmdeYmZq1nJC4oq','Cg9ZDa','ywnsyw0','rK1dr3i','vfjOtKm','Aw5JBhvKzxm','DMDtsMm','AgfZrw5K','44cq5O+q56s644cry29VA2LL5BEY5AsX5Pwi','zxjYCW','cUIVT+MhJEAwSoEzU+w9LEIoT+wpLGPODhrWCZOVl2jLyw4UBs5Qzc5JB20VyMvHBI9ZAwDUsw5KzxGUywn0Aw9U','q3Pxshq','vMvtAwG','wvnQCee','BuDSCve','y291Cg9UrgLZy291BNq','vxnLCK5HBwu','tM1oEe0','uvLTz2m','s2Pet0u','rNrAAfi','44cq5O+q56s644cr6k+35ywi6i635y+w5lQS5lIC6lsM5y+35lIay29VA2LLcUEBToAoPEs9V+EuQe5VyNLeyEEAHos6Ros4NoETVUwiSoIoT+wpLG','v2XPzLi','tKHNAgq','DfD3vhm','whvPBgy','tw9psuq','z2v0zgf0yq','Cu1uAKC','l3D1EgLHBI91C2vYl2nVBNrHy3qV','Dg1kC0W','tNv6Cfe','y2PmyMq','o00Vns4Wo25LDhDVCMSVD2LMAtTbreLelZTTB2rLBc9PugHVBMuXmIWXo2fKzhjLC3nPzc80mtK5mtC1mtKZo2fWCej1AwXKlZe2nZG2mZTQzfn1ChbVCNreyxjRtw9Kzs8Wo01VEMLSBgeVns4WicHPugHVBMu7ienqvsbPugHVBMuGt1mGmtrFmYbSAwTLie1HyYbpuYbyksbbChbSzvDLyKTPDc82mduUms4XnsaOs0HutuWSigXPA2uGr2vJA28Pie1VyMLSzs8XnuuXndG7C3vWCg9YDePeu0HxsY8XoW','5lQS5lIC6lsM5y+3','zfHAwwK','r2LQDe0','DuLjEem','yxbWBgLJyxrPB24VANnVBIWGDgv4Dc9WBgfPBIWGkI8Q','kf58wYy/xsK','A1HNB0q','D2rYrMy','DMfdsgG','v3vnCgW','BxP5s1i','twDHDxC','rNHAyLK','EfjUy0C','AgnjrKq','ruz3Bg8','uw54BMm','psHBxIzDkIKOjNWKkq','ipcFJP/VUi8G','BMfTzq','Cg9PBNroDw0','ELDID3K','uhbzrgW','q29VA2LLsKq','z0jKquW','q3jpqNq','ugfhuuC','vvHfvxu','rer5sNa','y2jArxm','Bg5lzLC','t3PJAxa','tMzICKi','sNDIBw0','A2v5CW'],...(function(){return['vMPyz3K','ExD2re0','z2v0u2vJB25KCW','ue15CMe','5PYQ5BYa5AEl','CuPWsgm','Cg1xDgi','zM9YrwfJAa','C1nAq0K','DffIsfq','5BEY57Up5ywZ5RoO6l+hFG','nty3mZqZBuL6C1r2','Ahr0Chm6lY9IzwfUlM0UAMqUy29Tl2jLyw4VC2LNBKLUzgv4lMfJDgLVBG','Bwf0y2G','8j+xKE+4JYdKVjJMG6dLIlGG','z2v0q291Cg9U','u29cvxC','su13BMG','ywzpsxG','mZGZntHbvKHfCKu','C3rYAw5N','cUIVT+MhJEAwSoEzU+w9LEIoT+wpLMnVB2TPzq','ENLuAKq','rvfpzLC','q29VA2LLsKqY','BMLJA05HBwu','BKrbEKq','q29VA2LLC0Pe','AgPXzLa','v05dyLe','u1fhEe4','u0Dgr04','yxbWBgLJyxrPB24VANnVBJTJAgfYC2v0pvvurI04','zffzBeq','mJGZmZq5u0fhrw1T','A0H2z2m','5Rs75yQO5zcn56EW77YA','tNv4tLu','nJvgse1yzLe','ELbkAge','AxnoB2rL','lcdLPlhOTkuHiowoN+wBOdOG','Au52s0K','EKvjuLi','yLvtz1K','DvnwEKi','mtKYmZbmD0LHv1q','vwfmreO','zuHQqNK','y21ntMq','yu5duMi','ywn0AxzPDhK','BfvIr1O','q21tDKG','reTRte0','zNj5rgG','zxbJsuS','sKrFrevcvuC','mw1WrhPLtW','CNvSzq','z2v0twLUDxrLCW','EMGTq04SEMG7Ct0WlJKSDgGTq047Ct0WlJGSDgG7Ct0WlJCSDMKTq047Ct0WlJySDMK7Ct0WlJuSzw4
// 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