mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
25 lines
59 KiB
JavaScript
25 lines
59 KiB
JavaScript
|
/*
|
|||
|
欢乐淘金(发财挖宝)
|
|||
|
入口:特价APP —— 欢乐淘金
|
|||
|
|
|||
|
地址:
|
|||
|
https://bnzf.jd.com/?activityId=CmPJ1svf_qoTYXEwfOkKPg
|
|||
|
|
|||
|
助力脚本为: jd_fcwb_help.js
|
|||
|
|
|||
|
环境变量:
|
|||
|
JD_FCWB_ID 指定活动ID 不指定默认 APP入口 格式:CmPJ1svf_qoTYXEwfOkKPg
|
|||
|
JD_FCWB_ROUND 指定剩余血量 非必须,不填默认剩余 1 退出
|
|||
|
JD_FCWB_TXNUM 轮询提现页数 默认查询第一页,一般无需填写
|
|||
|
JD_FCWB_EXCHANGE 达到剩余血量是否领取奖励,默认不启用(领取奖励后相当于结束当天活动,无法继续挖宝,请自行对应设置)
|
|||
|
JD_FCWB_SWISH 是否延长提现时间,默认不延长(true/false)
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('欢乐淘金(发财挖宝)任务')
|
|||
|
var iil='jsjiami.com.v7';const Iliii1=iii1II;(function(il1i1l,IlIlll,IIIl1I,iil1ii,IlIlli,il1i1i,lil111){return il1i1l=il1i1l>>0x2,il1i1i='hs',lil111='hs',function(i11ilI,ii1ii1,llllI,lllil1,iil1il){const lil11I=iii1II;lllil1='tfi',il1i1i=lllil1+il1i1i,iil1il='up',lil111+=iil1il,il1i1i=llllI(il1i1i),lil111=llllI(lil111),llllI=0x0;const ilil1I=i11ilI();while(!![]&&--iil1ii+ii1ii1){try{lllil1=parseInt(lil11I(0x17e,'6kjC'))/0x1*(-parseInt(lil11I(0x1c9,')bP%'))/0x2)+-parseInt(lil11I(0xe7,'LXxN'))/0x3+-parseInt(lil11I(0x105,'L%j#'))/0x4+-parseInt(lil11I(0x1c2,'08U]'))/0x5+-parseInt(lil11I(0x2f6,'U5Ka'))/0x6+parseInt(lil11I(0x1f7,'FIe5'))/0x7+parseInt(lil11I(0x327,'L%j#'))/0x8*(parseInt(lil11I(0x1df,'qXRH'))/0x9);}catch(i11il1){lllil1=llllI;}finally{iil1il=ilil1I[il1i1i]();if(il1i1l<=iil1ii)llllI?IlIlli?lllil1=iil1il:IlIlli=iil1il:llllI=iil1il;else{if(llllI==IlIlli['replace'](/[GSTFxrUbKWdQDBnRHkLl=]/g,'')){if(lllil1===ii1ii1){ilil1I['un'+il1i1i](iil1il);break;}ilil1I[lil111](iil1il);}}}}}(IIIl1I,IlIlll,function(ii1iiI,lllilI,ilil11,illlI1,IIIl11,I1lIi1,liiIIi){return lllilI='\x73\x70\x6c\x69\x74',ii1iiI=arguments[0x0],ii1iiI=ii1iiI[lllilI](''),ilil11=`\x72\x65\x76\x65\x72\x73\x65`,ii1iiI=ii1iiI[ilil11]('\x76'),illlI1=`\x6a\x6f\x69\x6e`,(0x16a8d4,ii1iiI[illlI1](''));});}(0x334,0x8b423,Iii11l,0xcf),Iii11l)&&(iil=0x2128);const jdCookie=require(Iliii1(0x24c,')bP%')),notify=require('./utils/Rebels_sendJDNotify'),common=require('./utils/Rebels_jdCommon'),{H5st}=require(Iliii1(0x21a,'ETuE'));console[Iliii1(0x131,'zi1k')](''),console[Iliii1(0x324,'LOf7')](Iliii1(0x263,'EU5J')+$['name']+Iliii1(0x1d6,'OiVF')),console['log'](Iliii1(0x249,')bP%')),console['log'](Iliii1(0x17f,'R@5G')),console[Iliii1(0x2ea,'QQut')](Iliii1(0x2d6,'6iBH')),console[Iliii1(0x1f5,'L%j#')]('JD_FCWB_SWISH\x20//\x20是否延长提现时间'),console['log']('=========='+$[Iliii1(0x139,'y3fx')]+Iliii1(0x111,'THL$')),console[Iliii1(0x126,'KG@l')]('');function Iii11l(){const Ill1l=(function(){return[...[iil,'GLjxKsDrjkiSaRmLlkinQ.TKcodUmnQ.FLBvHbW7==','4P2KW5ZMNl7OGzxMRj/NOkxLPPNNKyK+','dmoUWQLFW6ddTCoeWOq','k8khWOLddcW','mstdLW','q8klxSoehW','hXJcKSoLma','WOZcPdRcOwa','4P+DWQ/LPztLKAtdUa','l8kPWPRcSCkKrCoWW6Pl','dConW6LiWQuEWPD5WQqQ','W6nMW5ddMr9v','W5bJzJq','W6r4W43dUWG','bSkVF8k7v8o+nSoRWRhdUSouWRGrkmoBW7a','W5LapCopfG','uuyxdmoYWQldTd0YdCkVW6W','s8kdxaddNCknx8ooWQZdKq','gSkkWR3dSmkG','dWhdSJJdIW','W4HLAa','C04ZW7yQ','W50RW4u','ygBdNGFdRq','WQSEiwu','irddNSksW6W','W4NdG8kMW6NcMxblWOVdIMxdIaW6cmo5W5nd','W70LW4aKq0hcMa','AgldVCo0Cqy','t8kDFG','mWBdTqddUa','dJZdO8kmW7OS','vEISQEAYNEwMIUI3NgdIN4tcQW','gCkZmSo9dmkMdCkgWRBdKSo/WPa','nmkTW4a','WOhcUCoH','W4FcU8oUW5dcKa','omk9W559WPb2','wSkdWQa5W61BFSoOESk5WO0dWPK','hCkJW59FWR4','fGBcJmo8kSoSWOu','W7xcHgy','W64RW4mK','pmkhW4NdI1e','k8kPW47dQ3hdTq0','emoGWOPBW6VdMmodWOqNWQPvW4zyBMpdNG','wSo+WQ7dQa','r8oQxSkLFq','bb3cOCoJlmo4WPJdMa','aqZcKCoT','E0ddKgVdKG','WQ7dPmkMnq','oGBcOSkJWRHWuHmwWPC','W5hcMCoLW5Dp','gZtdSmk1','W73dOgu','B3NdTCo0Cqy','W4tcP8ovW57cHY9vWO88WPFdOa0','C8ovWPxdI0n0hZpcP8oYW4BdTSoLWP4','sCo/W7hcRbtcTrW','aCoGW73cRhO','qLVcPg7cSCk9W6ldKCk/zSo1WQ7cOhddKuDY5O625A+45yIx5l+Y6koF6yw9','gmkTWRG','W7D9W4pdPJS','jJdcKuZcSCkfW4/dPCketa','WOr8W6BcJSofusCJ','nmk8WPJcQmkZzSoWW6T6WQHYW7i','WRldJCoug8oKjLu','k8k8WOhcRa','hJtdT8kLW6yM','5Bsw5B6I5zkf5RAv5yUx77+S57MB5P6Y5PAv6zwLWQS','yNdcKKy','nmo2WOVcPa','bmkfWOhcO0tcImkEWOXj','fmkdWO7cGfpcOW','WQ7dQSogkmogW5C5WO3dLhZcSt3dMtq','y8kRWPyCW4S','EwhdPse','W4uLW5hcSCoJDG','CL1TWQZcGCoMWRddMJqMW7u','nXpcKmk2WP9YCX8','ANBcGwxcGCkn','EgRdQCoDBqW','x8kkCmo5eG','W6uLW5CXDhdcNmkkyKRcTmoUW4ShWR/dKa','y2xdPmovDWvqrq','FeVdThhdQaiIW5PeW5ldM8o+','W6lcLGnFW5dcLhXLW6RcTG','FMFdPHFdL0e3','wmoHWP7dRhnieqxcMSoP','kGRLPRxOTktVVOS','lmkpW73dJ0S','W7ZdQNhdLSk5W6dcVG','a8oKW6ZcQNTxW7S','d8oCWQhcGW','e8kwW4zGWQ0','bmoCW41zWQ8XWRj3WP87o8o8hSkzlY4','tSoMW6/cQbBcVsBdGczbWRddPSop','WRr6W4ddSmkF','cmk0W7FdIuG','eCk25AAU6lEO772I','B3RcJ2xcL8kzW5pdR8kkta','xuythq','jb3dVIxdMW','xmkvEConmcldSczQWR/cIXRcSczu','wCkKxrtdIG','gclcMmksWOq','h8kfWOC','emobWRdcN8oS','5ywR5BYU5l+R542/6yEVWRlWROg0W6K','W4BdMmk
|
|||
|
// 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
|