faker3/jd_tj_qdtx.js

13 lines
45 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
特价-签到提现
jd_tj_qdtx_exchange_mode // (填写 0 或者 1 兑换模式0 红包 1 现金 默认 1
cron "1 1,17 * * *" script-path=jd_tj_qdtx.js, tag=特价-签到提现
*/
const $ = new Env('特价-签到提现')
var il='jsjiami.com.v7';const ill1I1=iii1II;(function(liI1ll,ll1II,IllIii,liI1li,IllIil,ill1Ii,llIIl1){return liI1ll=liI1ll>>0x9,ill1Ii='hs',llIIl1='hs',function(ill1Il,i1lll1,Ii1I1I,l1i1Ii,l1iI1){const l1i1Il=iii1II;l1i1Ii='tfi',ill1Ii=l1i1Ii+ill1Ii,l1iI1='up',llIIl1+=l1iI1,ill1Ii=Ii1I1I(ill1Ii),llIIl1=Ii1I1I(llIIl1),Ii1I1I=0x0;const lliiI1=ill1Il();while(!![]&&--liI1li+i1lll1){try{l1i1Ii=parseInt(l1i1Il(0xbd,'O$GP'))/0x1*(-parseInt(l1i1Il(0x129,'!V9!'))/0x2)+-parseInt(l1i1Il(0xd3,'k%N0'))/0x3*(parseInt(l1i1Il(0x1a3,'IT0Q'))/0x4)+-parseInt(l1i1Il(0x1c9,'f%qR'))/0x5+-parseInt(l1i1Il(0x1e1,'KWg]'))/0x6+-parseInt(l1i1Il(0x176,'r!HC'))/0x7*(parseInt(l1i1Il(0x100,'5a*j'))/0x8)+-parseInt(l1i1Il(0x217,'TUi7'))/0x9*(parseInt(l1i1Il(0x1e7,'Y0@M'))/0xa)+parseInt(l1i1Il(0x1c1,'5v[o'))/0xb;}catch(IiiI1){l1i1Ii=Ii1I1I;}finally{l1iI1=lliiI1[ill1Ii]();if(liI1ll<=liI1li)Ii1I1I?IllIil?l1i1Ii=l1iI1:IllIil=l1iI1:Ii1I1I=l1iI1;else{if(Ii1I1I==IllIil['replace'](/[WAnGuDfhXYqkIPFQLxCRE=]/g,'')){if(l1i1Ii===i1lll1){lliiI1['un'+ill1Ii](l1iI1);break;}lliiI1[llIIl1](l1iI1);}}}}}(IllIii,ll1II,function(lilII,IIIiI,iii1i1,IllIll,i1lllI,llIIi1,iI1IlI){return IIIiI='\x73\x70\x6c\x69\x74',lilII=arguments[0x0],lilII=lilII[IIIiI](''),iii1i1=`\x72\x65\x76\x65\x72\x73\x65`,lilII=lilII[iii1i1]('\x76'),IllIll=`\x6a\x6f\x69\x6e`,(0x16d675,lilII[IllIll](''));});}(0x19400,0x97a1c,Iii11l,0xcc),Iii11l)&&(il=0xcc);function Iii11l(){const ii1Ii=(function(){return[...[il,'WfkIjAGsjLFiQaunmDihRP.EhcqDomCxY.Ev7FAX==','W5LzWQ5lWPm','W6LTWRTyzmoBuuddNd9xcIS','atmRWRpdTmoeWO8','ttZcVthcKePkW79xvSor','WO1dic9BhLdLVlVLPQlJGytKU4VKU4tOTj/LJRe','WRRdNa3dSCor','W4CeW7lcVZNcISoVWRauWOxdUui','CCkIgHBcPq','rcVcUtdcN3DzW7T3wSosBG','j2uXW7av','W6pdRXyZWP3dQq','W400zmkHCq','WRNdII3dOa','sSkXW7m','W7WrWPlcJcrWpq','j8oAW4C','WPldQWy','tdNdQ8osiI8','W5uoxmkwDW','tSodWR3dRa','rCovW545qa','W483m8onW5RdOSkyWR/dVK0','W5y3yCkFsW','WPBdJCkDlwRdVmk+FJRcKWu1WRHtWQZcL8kLWRq','W5xcSunBBSkcW70dWQi','hu3cTSon','AshcMdRcQq','WO3cS0K','gf0mW54vW7f2jtzWWQa','W5GsWOCd','FUAkG+ASOU++U+ASN+I2HowpTEs6JUAwP+w3T+wgGUAmN+I8Ko+9LEIUUUAyREwNH+whK+ADSmoL','tciMrSkq','sSonWRNdVq','5yAL5O+R5AwV6lAL77+M','s8oGumotnG','W49fW5nRph/dNw3cJg3dOaBdJq','h8koWQvOkhNcImkXFhWIA27cRW','guFcPSoKW4eVmstdNxeXWR0ieZFdPmoQzCkXWQ7dVCo+hG','562F5yMJ6i2T5B+p','WP3dPZ3dRmkjoSoBFW','W4HnW5XdWPC5W4tcICkRASoLka','W6VdMaKKWQC','4PYhWPxMNORNN5JOR7pMSPxdJq','WQhdKSkxWOtdRmowW7fqueNdOq','dxxcV8kxzgSDW6WUjCoUxSk/','WOn6wmkqW7Ou','W7fGWRDLWRdcQq','W5xcTv1BDa','WO7cPxquWONcRcxcG8onxeupW4JcUwi','W5m/nCoj','WPZcVeaoWQhcSblcUmofqq','W49yW51bWR83W4pcHSkH','WOpcJ0DaWPS1WPvIWPy','u8kJW6FcLSoCjbNcSG','fMecW5avW6TSatPMWRSCWRK+ka','BmkWth/dSuCpihFdHJFdMCkH','W654WRPAwCouv1hdSq','W7zbWQXpWQ3cH3JcK8kZ','5B+V5yMH6lAj5y+F54MN5Ogr776WWRS','W4VdLcfLh3L6WRzGtG','pHz8W7VcNa','W54hWRiqlhHEW7q0W54','uCksgaNcLwRcMCorWRBdSHGe','dXvUW7BcOW','W43cNba','WPaSWQiKn1ldIW','WQldKqZdJCkZ','WQlcReKhWQW','WRjzpJviau5/jHm2WOPH','BHuR','FSo0W4WFWPdcJ8oAW4RcISkKoXmHj8kPW67cQG','W5NdUcVdT8ov','CSo2Cmo/mbeuWQxcTtG','WPZdKXxdS8kv','WPfyi8oAomkAt2tdGM3dLCkxW68','WRNdGJxdO8kS','5yEk5OYw5AEx6lEH77Yl','tsZdPmocode','CGtcGb/cKa','WRPIWOfSW5a','CSo3W68','FSk4uxxdJKmz','WOvvWQhdP0BdLmoQWP4KWQm','Dmk0uxpdLKC','b28HW4WTWQRdKSo0','WQbfWP/dMMm','tSkktepcPdOvpmoEdCkwCWtdRvihW7hdG8kdjmoCzI7cUq','WR5vWP9lW7dcQmo2WP1GWQxcTazYW7hcVKXEvWtdQv1rc8oqW5X+kJFcMvysWPBdOW','WQxdKdK','iXKmWRtcKW','hSogW4vpsSk2WOdcQa','W7/dPXS8WRZdPCkfAq','cKpcOCodW6K1jZldM0K','uYSaW4Do','W5PfW4jkWRO','qmkhF0FcPG','WOHGD8kBWOm','W6CQ5B+B5yMd5y+Y5ysP5O6J776WWPm','p8ouW5nwv8k4WPJcV2xcVSkeWQ0G','D8ooW5tdVmoj','WPhdHSkxiMxdM8k3sXVcJH4KWOLs','WPddGelcI1S5WQBdL3ddPSotnW','jHTAW7lcHIxcI2X1hW','W4lcPevt','W4uzkmoJW6i','ts0jvmkkm21VWRxdQCoEW6a','WPnUWQ/dU3K','WRtdNSklWPRdHSon','W4qqq8kpC8oco2ldTgpdL8kbW59Wtq','W4lcIgHLua','uCowWQddQmowg8kpEmkkW4GXWRDjW6ZdJSkfWQfODSkBW7G5FSkA','WPXHxG','W7/cJJVcUSoE','WOBcUvPVW4apWO8','W6yWxCk8wG','BG8sySkQhxy','5AYl5OM55lUX5yQK','W6ykFMWhxq5sdcC4WQHvj0NdHSkDr8oQ','rSkYW4dcNmo7nIxcVIBcPctcNq','4P68lUIeO+AFIoI9N+IGQ+McMEwlREs7U+MuN+IUSWm','WPpdJsRdSSkg','WQFdRq3dGCoP','hwuOymkopvnH','W6b
// 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