mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
21 lines
40 KiB
JavaScript
21 lines
40 KiB
JavaScript
|
/*
|
|||
|
活动名称:玩一玩之摇一摇提现
|
|||
|
活动入口:APP-我的-更多工具-玩一玩
|
|||
|
|
|||
|
cron: 1 1 1 1 * jd_wyw_withdraw.js
|
|||
|
|
|||
|
临时本
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('玩一玩之摇一摇提现')
|
|||
|
const jdCookie = require('./jdCookie')
|
|||
|
const notify = require('./function/sendJDNotify')
|
|||
|
const common = require('./function/jdCommon')
|
|||
|
const { H5st } = require('./function/jdCrypto')
|
|||
|
|
|||
|
var iil='jsjiami.com.v7';const ll1IilIl=illll1l1;(function(IlilllIl,Il11ili1,ilIllII1,liiilllI,lIIililI,lllI1l1,liI11i1i){return IlilllIl=IlilllIl>>0x7,lllI1l1='hs',liI11i1i='hs',function(lIIlll1l,i11l1l1,i1I1I1l,il1ii1il,iii1Ill1){const lIilll=illll1l1;il1ii1il='tfi',lllI1l1=il1ii1il+lllI1l1,iii1Ill1='up',liI11i1i+=iii1Ill1,lllI1l1=i1I1I1l(lllI1l1),liI11i1i=i1I1I1l(liI11i1i),i1I1I1l=0x0;const iI11l1I1=lIIlll1l();while(!![]&&--liiilllI+i11l1l1){try{il1ii1il=-parseInt(lIilll(0x18f,'2tKm'))/0x1*(parseInt(lIilll(0x192,'h6d0'))/0x2)+-parseInt(lIilll(0x296,'B]g0'))/0x3*(-parseInt(lIilll(0x194,'n#)['))/0x4)+parseInt(lIilll(0x19d,'*Y)G'))/0x5+parseInt(lIilll(0x1c2,'Vz5B'))/0x6*(parseInt(lIilll(0x171,'wFEK'))/0x7)+parseInt(lIilll(0x24f,'kR%5'))/0x8+parseInt(lIilll(0x180,'#kTb'))/0x9+-parseInt(lIilll(0x17c,'Vn3^'))/0xa;}catch(lilII1il){il1ii1il=i1I1I1l;}finally{iii1Ill1=iI11l1I1[lllI1l1]();if(IlilllIl<=liiilllI)i1I1I1l?lIIililI?il1ii1il=iii1Ill1:lIIililI=iii1Ill1:i1I1I1l=iii1Ill1;else{if(i1I1I1l==lIIililI['replace'](/[DTHXtNQxUfYBJVpyluwgk=]/g,'')){if(il1ii1il===i11l1l1){iI11l1I1['un'+lllI1l1](iii1Ill1);break;}iI11l1I1[liI11i1i](iii1Ill1);}}}}}(ilIllII1,Il11ili1,function(lllliI,liII1I,iIilIlI1,lI1iiIii,il11ll1i,lil1lI1i,ilIi1I11){return liII1I='\x73\x70\x6c\x69\x74',lllliI=arguments[0x0],lllliI=lllliI[liII1I](''),iIilIlI1=`\x72\x65\x76\x65\x72\x73\x65`,lllliI=lllliI[iIilIlI1]('\x76'),lI1iiIii=`\x6a\x6f\x69\x6e`,(0x16ef29,lllliI[lI1iiIii](''));});}(0x6400,0x9905b,I1llIiII,0xca),I1llIiII)&&(iil=I1llIiII);let superlinkId=ll1IilIl(0x13c,'#lcc'),waitTimes=0x3e8,business=ll1IilIl(0x1dc,'Vz5B');const isNotify=![];let cookie='';const cookiesArr=Object[ll1IilIl(0x292,'2tKm')](jdCookie)[ll1IilIl(0x117,'RFoa')](IIllIill=>jdCookie[IIllIill])[ll1IilIl(0x1b0,']BSu')](i1iil1Ii=>i1iil1Ii);function illll1l1(_0x1dd85c,_0x2e4510){const _0x28c583=I1llIiII();return illll1l1=function(_0x88406a,_0x2549a4){_0x88406a=_0x88406a-0xee;let _0x214ff4=_0x28c583[_0x88406a];if(illll1l1['yAsmHX']===undefined){var _0x454c5d=function(_0x14da41){const _0x65a710='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3de79e='',_0xf4ac2f='';for(let _0x4dbcec=0x0,_0x7a9175,_0x6a5ea5,_0x1eb5fa=0x0;_0x6a5ea5=_0x14da41['charAt'](_0x1eb5fa++);~_0x6a5ea5&&(_0x7a9175=_0x4dbcec%0x4?_0x7a9175*0x40+_0x6a5ea5:_0x6a5ea5,_0x4dbcec++%0x4)?_0x3de79e+=String['fromCharCode'](0xff&_0x7a9175>>(-0x2*_0x4dbcec&0x6)):0x0){_0x6a5ea5=_0x65a710['indexOf'](_0x6a5ea5);}for(let _0x52fe9e=0x0,_0x2ac973=_0x3de79e['length'];_0x52fe9e<_0x2ac973;_0x52fe9e++){_0xf4ac2f+='%'+('00'+_0x3de79e['charCodeAt'](_0x52fe9e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf4ac2f);};const _0xcb1020=function(_0x5da704,_0x1a8723){let _0x50273c=[],_0x12914b=0x0,_0x403878,_0x2e2e47='';_0x5da704=_0x454c5d(_0x5da704);let _0x2e323a;for(_0x2e323a=0x0;_0x2e323a<0x100;_0x2e323a++){_0x50273c[_0x2e323a]=_0x2e323a;}for(_0x2e323a=0x0;_0x2e323a<0x100;_0x2e323a++){_0x12914b=(_0x12914b+_0x50273c[_0x2e323a]+_0x1a8723['charCodeAt'](_0x2e323a%_0x1a8723['length']))%0x100,_0x403878=_0x50273c[_0x2e323a],_0x50273c[_0x2e323a]=_0x50273c[_0x12914b],_0x50273c[_0x12914b]=_0x403878;}_0x2e323a=0x0,_0x12914b=0x0;for(let _0x1af14d=0x0;_0x1af14d<_0x5da704['length'];_0x1af14d++){_0x2e323a=(_0x2e323a+0x1)%0x100,_0x12914b=(_0x12914b+_0x50273c[_0x2e323a])%0x100,_0x403878=_0x50273c[_0x2e323a],_0x50273c[_0x2e323a]=_0x50273c[_0x12914b],_0x50273c[_0x12914b]=_0x403878,_0x2e2e47+=String['fromCharCode'](_0x5da704['charCodeAt'](_0x1af14d)^_0x50273c[(_0x50273c[_0x2e323a]+_0x50273c[_0x12914b])%0x100]);}return _0x2e2e47;};illll1l1['kTBrEJ']=_0xcb1020,_0x1dd85c=arguments,illll1l1['yAsmHX']=!![];}const _0x4efc95=_0x28c583[0x0],_0x4916a8=_0x88406a+_0x4efc95,_0x249fb7=_0x1dd85c[_0x4916a8];return!_0x249fb7?(illll1l1['ucjlKf']===undefined&&(illll1l1['ucjlKf']=!![]),_0x214ff4=illll1l1['kTBrEJ'](_0x214ff4,_0x2549a4),_0x1dd85c[_0x4916a8]=_0x214ff4):_0x214ff4=_0x249fb7,_0x214ff4;},illll1l1(_0x1dd85c,_0x2e4510);}!cookiesArr[0x0]&&($[ll1IilIl(0x265,'Au(e')]($[ll1IilIl(0x1cf,'zJ5S')],ll1IilIl(0x245,'$9b2')),process[ll1IilIl(0x148,'fqa
|
|||
|
|
|||
|
// 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
|