faker3/jd_tj_qdtx.js

17 lines
108 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
2024-07-10 16:06:28 +08:00
活动名称特价-签到提现
环境变量jd_tj_qdtx_threads // 控制并发线程数正整数默认1最大3
jd_tj_qdtx_interval // 自定义运行间隔时长整数单位毫秒默认1000
jd_tj_qdtx_notify // 是否推送通知true/false默认不推送
jd_tj_qdtx_pinFilter // 账号pin过滤多个用@进行分割
jd_tj_qdtx_exchange_mode // 兑换模式0 红包 1 现金 默认兑换现金
2024-06-28 15:38:28 +08:00
2024-07-10 16:06:28 +08:00
cron:1 1,17 * * *
2024-06-28 15:38:28 +08:00
*/
2024-07-10 16:06:28 +08:00
2024-06-28 15:38:28 +08:00
const $ = new Env('特价-签到提现')
2024-08-30 14:52:13 +08:00
function vtzw4_(){}var jnwZCM=Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70\x65\x72\x74\x79'],adV8UlI,x9xlG0U,LJFqTyz,uUe_3Z,yp1x942,aN8ozL,e84j67,CMa36i9,I9p8AYd,JXxgO65,Ma7Con9,d31Zcq,tHoGcXO,M_NzeA,TO5P1N,LrLRW6k,i7bVvy;function sf6Wvs(vtzw4_){return adV8UlI[vtzw4_>0x12f?vtzw4_-0x13:vtzw4_-0x54]}adV8UlI=lmTozh();function LUYkbq(vtzw4_,jnwZCM){return x9xlG0U(vtzw4_,'\u006c\u0065\u006e\u0067\u0074\u0068',{value:jnwZCM,configurable:!0x0})}vtzw4_(x9xlG0U=Object.defineProperty,LJFqTyz=LUYkbq(ztzYXk((...jnwZCM)=>{var x9xlG0U=ztzYXk(jnwZCM=>{return adV8UlI[jnwZCM>0x95?jnwZCM-0xc:jnwZCM>-0x47?jnwZCM+0x46:jnwZCM-0x3c]},0x1);vtzw4_(jnwZCM[x9xlG0U(-0x2c)]=0x2,jnwZCM[0xef]=jnwZCM[sf6Wvs(0x54)]);return jnwZCM[x9xlG0U(-0x35)](jnwZCM[x9xlG0U(-0x36)]())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kufgZ(0x8c),xku
2024-06-28 15:38:28 +08:00
// 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