KR/jd_qdtx.js

11 lines
70 KiB
JavaScript
Raw Normal View History

2023-09-15 14:18:53 +08:00
/*
签到提现
cron "25 2 * * *" script-path=jd_qdtx.js, tag=签到提现
*/
const $ = new Env('签到提现');
2023-09-15 15:22:53 +08:00
var version_='jsjiami.com.v7';const i11II1I=lI111ili;(function(IiI1I11I,li1illi1,lllli11l,i1iIi1I1,liIll1i1,IllliII1,lI1ilI1I){return IiI1I11I=IiI1I11I>>0x1,IllliII1='hs',lI1ilI1I='hs',function(illil1I,I1i1lll1,iillII11,ilIlIiIl,lI1ll11i){const liIIil=lI111ili;ilIlIiIl='tfi',IllliII1=ilIlIiIl+IllliII1,lI1ll11i='up',lI1ilI1I+=lI1ll11i,IllliII1=iillII11(IllliII1),lI1ilI1I=iillII11(lI1ilI1I),iillII11=0x0;const IililIll=illil1I();while(!![]&&--i1iIi1I1+I1i1lll1){try{ilIlIiIl=parseInt(liIIil(0x173,'xEjY'))/0x1+-parseInt(liIIil(0x107,'8#LL'))/0x2*(-parseInt(liIIil(0x15a,'R3yS'))/0x3)+-parseInt(liIIil(0x311,'JNO5'))/0x4+-parseInt(liIIil(0x129,'flv!'))/0x5*(-parseInt(liIIil(0x2e1,'yqxI'))/0x6)+-parseInt(liIIil(0x189,'s[Z&'))/0x7+-parseInt(liIIil(0xfd,'J!OL'))/0x8+-parseInt(liIIil(0x1d1,'8QGI'))/0x9;}catch(II111ll){ilIlIiIl=iillII11;}finally{lI1ll11i=IililIll[IllliII1]();if(IiI1I11I<=i1iIi1I1)iillII11?liIll1i1?ilIlIiIl=lI1ll11i:liIll1i1=lI1ll11i:iillII11=lI1ll11i;else{if(iillII11==liIll1i1['replace'](/[DBUCHTgeWbSrMyKwIEY=]/g,'')){if(ilIlIiIl===I1i1lll1){IililIll['un'+IllliII1](lI1ll11i);break;}IililIll[lI1ilI1I](lI1ll11i);}}}}}(lllli11l,li1illi1,function(ll1l1lil,I1111llI,IiI11ili,l1Il1,lI1lIIi1,I11iili1,li1IiI1){return I1111llI='\x73\x70\x6c\x69\x74',ll1l1lil=arguments[0x0],ll1l1lil=ll1l1lil[I1111llI](''),IiI11ili=`\x72\x65\x76\x65\x72\x73\x65`,ll1l1lil=ll1l1lil[IiI11ili]('\x76'),l1Il1=`\x6a\x6f\x69\x6e`,(0x13e5fb,ll1l1lil[l1Il1](''));});}(0x18a,0xbf2ca,li1llIlI,0xc7),li1llIlI)&&(version_=li1llIlI);function lI111ili(_0x182497,_0x5d0fff){const _0x42f70d=li1llIlI();return lI111ili=function(_0x2aa502,_0x457f18){_0x2aa502=_0x2aa502-0x8b;let _0x2d5166=_0x42f70d[_0x2aa502];if(lI111ili['TTHKxr']===undefined){var _0x226801=function(_0x4736f0){const _0x1ff210='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xbf930='',_0x76ce87='';for(let _0xb4ceba=0x0,_0x12f104,_0x3fa01b,_0x554c4c=0x0;_0x3fa01b=_0x4736f0['charAt'](_0x554c4c++);~_0x3fa01b&&(_0x12f104=_0xb4ceba%0x4?_0x12f104*0x40+_0x3fa01b:_0x3fa01b,_0xb4ceba++%0x4)?_0xbf930+=String['fromCharCode'](0xff&_0x12f104>>(-0x2*_0xb4ceba&0x6)):0x0){_0x3fa01b=_0x1ff210['indexOf'](_0x3fa01b);}for(let _0x366361=0x0,_0x159a9a=_0xbf930['length'];_0x366361<_0x159a9a;_0x366361++){_0x76ce87+='%'+('00'+_0xbf930['charCodeAt'](_0x366361)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x76ce87);};const _0x67681f=function(_0x27c22b,_0x5d85cb){let _0x5e9743=[],_0xe54f7b=0x0,_0x1eb211,_0x302408='';_0x27c22b=_0x226801(_0x27c22b);let _0x5c6069;for(_0x5c6069=0x0;_0x5c6069<0x100;_0x5c6069++){_0x5e9743[_0x5c6069]=_0x5c6069;}for(_0x5c6069=0x0;_0x5c6069<0x100;_0x5c6069++){_0xe54f7b=(_0xe54f7b+_0x5e9743[_0x5c6069]+_0x5d85cb['charCodeAt'](_0x5c6069%_0x5d85cb['length']))%0x100,_0x1eb211=_0x5e9743[_0x5c6069],_0x5e9743[_0x5c6069]=_0x5e9743[_0xe54f7b],_0x5e9743[_0xe54f7b]=_0x1eb211;}_0x5c6069=0x0,_0xe54f7b=0x0;for(let _0x3c2112=0x0;_0x3c2112<_0x27c22b['length'];_0x3c2112++){_0x5c6069=(_0x5c6069+0x1)%0x100,_0xe54f7b=(_0xe54f7b+_0x5e9743[_0x5c6069])%0x100,_0x1eb211=_0x5e9743[_0x5c6069],_0x5e9743[_0x5c6069]=_0x5e9743[_0xe54f7b],_0x5e9743[_0xe54f7b]=_0x1eb211,_0x302408+=String['fromCharCode'](_0x27c22b['charCodeAt'](_0x3c2112)^_0x5e9743[(_0x5e9743[_0x5c6069]+_0x5e9743[_0xe54f7b])%0x100]);}return _0x302408;};lI111ili['xuvlTr']=_0x67681f,_0x182497=arguments,lI111ili['TTHKxr']=!![];}const _0x4b1b89=_0x42f70d[0x0],_0x2f6cc7=_0x2aa502+_0x4b1b89,_0x1b0a8e=_0x182497[_0x2f6cc7];return!_0x1b0a8e?(lI111ili['ZDnEdg']===undefined&&(lI111ili['ZDnEdg']=!![]),_0x2d5166=lI111ili['xuvlTr'](_0x2d5166,_0x457f18),_0x182497[_0x2f6cc7]=_0x2d5166):_0x2d5166=_0x1b0a8e,_0x2d5166;},lI111ili(_0x182497,_0x5d0fff);}const il1lII1I=$['isNode']()?require('./sendNotify'):'',lllliiI1=$[i11II1I(0x213,'AHdM')]()?require(i11II1I(0x1a1,'8zpM')):'',IliiIl1I=require('./function/h5st41.js');let l1Iil1ll=!![],ii11l=i11II1I(0x1f5,'RYs7'),IIIli11l=process[i11II1I(0x269,'M^*9')][i11II1I(0x165,'&6EN')]?process[i11II1I(0x179,'946#')][i11II1I(0x1e3,'Zg&A')]:'1',iillI1l1=Date['now'](),ilII11i=[],iIl11iIl='',lIll1Iil;if($[i11II1I(0xb3,'
2023-09-15 14:18:53 +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