mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
19 lines
46 KiB
JavaScript
19 lines
46 KiB
JavaScript
|
/*
|
|||
|
活动名称:新版玩一玩之奖票竞猜 5.17-8.31结束
|
|||
|
活动入口:APP-我的-更多工具-玩一玩
|
|||
|
活动建议:赌狗游戏,自行选择运行
|
|||
|
变量设置:jd_wyw_bettingnum // 投注奖品数值 10-500之间
|
|||
|
jd_wyw_userInput // 队伍选择 只能输入1 2 3 其他无效
|
|||
|
jd_wyw_goalInput // 更多投注进球选择 只能输入1 2 3....等数字 不填写不投注
|
|||
|
jd_wyw_makeInput // 更多投注让一球选择 只能输入1 2 3 其他无效
|
|||
|
jd_wyw_subInput // 更多投注队伍选择 只能输入1 2 3 其他无效
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('新版玩一玩之奖票竞猜')
|
|||
|
var iil='jsjiami.com.v7';const l1i1I1=iii1II;(function(llIlI1,iI1IiI,IIlI1,i1iIli,i1iIll,i1lliI,liI1l1){return llIlI1=llIlI1>>0x5,i1lliI='hs',liI1l1='hs',function(IllIlI,IiillI,ili11I,li11l,lliiIl){const i1llii=iii1II;li11l='tfi',i1lliI=li11l+i1lliI,lliiIl='up',liI1l1+=lliiIl,i1lliI=ili11I(i1lliI),liI1l1=ili11I(liI1l1),ili11I=0x0;const li11i=IllIlI();while(!![]&&--i1iIli+IiillI){try{li11l=-parseInt(i1llii(0x212,'cHrl'))/0x1*(-parseInt(i1llii(0x150,'^K$%'))/0x2)+parseInt(i1llii(0x209,'Vqon'))/0x3+parseInt(i1llii(0x1c6,'N#Pm'))/0x4+-parseInt(i1llii(0x137,'Sv8f'))/0x5+-parseInt(i1llii(0x14b,'R8%n'))/0x6*(parseInt(i1llii(0x208,'N#Pm'))/0x7)+-parseInt(i1llii(0x23b,'Sx62'))/0x8*(-parseInt(i1llii(0x158,'O42)'))/0x9)+parseInt(i1llii(0x14f,'Sv8f'))/0xa;}catch(lliiIi){li11l=ili11I;}finally{lliiIl=li11i[i1lliI]();if(llIlI1<=i1iIli)ili11I?i1iIll?li11l=lliiIl:i1iIll=lliiIl:ili11I=lliiIl;else{if(ili11I==i1iIll['replace'](/[QgTISkLFnexRwtXBdKyH=]/g,'')){if(li11l===IiillI){li11i['un'+i1lliI](lliiIl);break;}li11i[liI1l1](lliiIl);}}}}}(IIlI1,iI1IiI,function(iiIi1I,IllIl1,ll1Ii,ll1Il,iiIi11,ill1II,i1llil){return IllIl1='\x73\x70\x6c\x69\x74',iiIi1I=arguments[0x0],iiIi1I=iiIi1I[IllIl1](''),ll1Ii=`\x72\x65\x76\x65\x72\x73\x65`,iiIi1I=iiIi1I[ll1Ii]('\x76'),ll1Il=`\x6a\x6f\x69\x6e`,(0x171f58,iiIi1I[ll1Il](''));});}(0x1780,0x661f7,Iii11l,0xbe),Iii11l)&&(iil=0x213a);const jdCookie=require(l1i1I1(0x18b,'!qb!')),notify=require(l1i1I1(0x1d3,'C2%@')),common=require(l1i1I1(0x157,'f$hU')),{H5st}=require('./utils/Rebels_H'),isNotify=![];let linkId=l1i1I1(0x25f,'Q)Ql'),turnNum=process[l1i1I1(0x1ac,'5YYz')]['jd_wyw_bettingnum']||'10',userInput=process['env']['jd_wyw_userInput']||'',goalInput=process[l1i1I1(0x109,'6rsf')][l1i1I1(0xfc,'Cdm3')]||'',makeInput=process[l1i1I1(0xfe,'WDvh')]['jd_wyw_makeInput']||'',subInput=process[l1i1I1(0x22a,'Tj8j')][l1i1I1(0x28b,'C2%@')]||'',cookie='';function Iii11l(){const Iiilli=(function(){return[...[iil,'tRjxsQjiBdLaTmi.yHIcTonkmTeF.Kvw7gXwQBLS==','W4NdS2myWRy','ie1uW4RcVW','wI8gaG','W57cKt3dK8owea','W6dcOIJdPG','gmoZqmkjWRTzmSkvW5yiW4GUm8og','vhTG','WPiPfG','WRfgBvm9nCkcWP7cOSoP','4P23WOtMNQNOGRVMR6ZNOzBLPyJNKA5+','W6WLWOJdTSozsSo5FCofcmoCymkEuSkMkmov','yIX3W7ab','zCkaWR3dICkNBSkmmw8Aza','W7qbobj6BSkOWPJcSCoCimkW','i8oqA8o8aa','twDIrgVcNdZdPxXtA8kKWQFdQq','WP/dUmkH','W4ldMCor','WPSdkMhdGs0SWOBcPwTiW6qB','WRTsjSoqnYy','WPBdV8oVwW','rd4haSoxW5X2yCk6Aa','ALvi','WPRcONeoW6RdMa','yCopzmoPWQbIW5jOvG','B8k6WPZdNCkf','DUw+MUwNUoAjRoAWVW','WRnCzuu','WO0xiNFdPJaIWPRcMfS','WRNdPCkwWPvQ','WQGjnHKB','AmotcK5UW4pcH2a','omorESo3hmo8fmkyra','B8ofDW','WOFdUmkvWOrnW7xdH8o6','W7VcTJVdMSoi','WQ/dHc/dGG','W4GfWQZdICo5','W74aWQa','b39rfCoKW5XHv8kP','i++8M+w/VUwjT+woL+MfRowdIUs6RmkU','xCoYlu3dPCkmWQCEWOrNlCoaW6FcOvW','yhdcUgDD','ECkfWQVdKCk9zq','nmkkggnwW5tcHvtdG3f4dq','BCoBuCoVWPG','WOBdPmkJWOj8W7tdHSo0WO7cRCoVWRb0eG','sq7cQmkMh8kBWOX9jaaBFCoi','aW3dUGmoefpcRCoFWP7dJmoo','sSorW6y1W7TriWy','mSktWRC2Emoehs4','qY1cW7u0','WORVVlVLVjVLI7RLJPVPHOhLG5BKUP7dNa','B++8S+w+MEwjUowpOEMhREwaV+s7RSou','W5eAW4WUWQNdVf4gWRC','kbCoWOXNgsjcW7C','qL7cRNbxrG','WPRdSc1NWPddLbVcN1xcSYm','W4dcP3G','WPG9eYCD','ghhdIx8j','WOBdOJv9WOpcUMG','qmoGo3JdG8kqWOOwWPrR','CrZcGmkvW7ajWOFdI8osW5H0emkpWOFdJ8ooW4a','WPm1fG','W6BcNMuTW74','W4/dLWChqG','c+AwLoAvSoEyGUwoREMgHowdRo+9OEMyHEs+TUIVQEE9MoMuQ+IUI++/SEAES+wNJ+wmU+MhLEwaO+s6OCoM','DxDuEeW','WOxdGb/dLSkQ','WRimms8','W44UWRO1nW','aCk5WRa','rmoMwq','6l+A55g36ycX5OMVtXa','W6e5lCk8Ea','5y2L6ys354Up5OcB57I75PYlW4lcSbZdRq1YaHVcR3m','lmk+W50uWQm','W4FdL0mHWO/cTLzH','vdGrgmoeW5S','WOSnnwJdTHO4WOtcLKPeW7OnWRCFWPnH','dCkuW4u','WQqVhmkyW50','WReYcmkQW6O','8jklOei','W67LP67NPBH5W53MN5/KVBy','h8oagG','W5qAW5qmWOxdPMWsWRbrW7RcRLBcNCkyWQW','jqioWQzTgq','5AEn56sI5OMV5yE/WODs','suXOW6XU','4P23WOtOHPNMNAROVz/OOBtPGiVLIzJKU5JPLBpOR4je','W68uW4a','wcOjfmoQW5TPESkh','5Awx56sCfEAEHUMQRq','WQ3dL0JdUCokfSkVWRC','WPDrWPNcQG','pCorFCo1hmoXamkfzICkW6FcTchcGSk6hq','W7/cM37cKSo7WRNcK8oDW77cLcq','WO/dIw7cICkFrr3dTSkgCq','W5/dNx4YWONcTW','jHWqW5i1','W545WRe3mq','WPBdPCk0WR1mW7S','W4pdLCoDdvFdMmkyoeaZD8own8ou','jCooE8oWf8oC','WQXCBW','DqFcK8ksW7el
|
|||
|
// 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
|