faker3/jd_wyw_ffl.js

20 lines
115 KiB
JavaScript
Raw Normal View History

2024-07-02 23:09:05 +08:00
/*
2024-09-24 15:55:14 +08:00
活动名称新版玩一玩翻翻乐 5.17-8.31结束
活动入口APP-我的-更多工具-玩一玩
活动建议定时自行修改奖票有效期2个月
活动变量jd_wyw_turnnum //默认翻倍投入50奖票,可自行修改最低1最高100
jd_wyw_turnmax //默认翻倍2次,可自行修改
jd_wyw_notify // 是否推送通知true/false默认不推送
jd_wyw_pinFilter // 账号pin过滤多个用@进行分割
翻倍请自行修改定时建议运行10次每次间隔30分钟以上
cron:1 1 1 1 *
2024-07-02 23:09:05 +08:00
*/
2024-09-24 15:55:14 +08:00
const $ = new Env('新版玩一玩翻翻乐')
2024-10-27 16:48:16 +08:00
function xHJJO0(){}var E5narP=Object['\u0064\u0065\u0066\u0069\u006e\u0065\u0050\u0072\u006f\u0070\u0065\u0072\u0074\u0079'],Sn8k30l,PJxIlM,lPaIEl,CrBUUKr,ioxwyQ,EyIqIoJ,IRUxmM,aISboV,Z6owHX,kEbkSc7,_lTLNST,_Z2NnX,U4agrQV,Y_900I,EQkUNU,yAoGMT,WohuKZZ,Txv7KYc,AHOLm4,QhsbZYl,Tx5xI2;function eUkumW(xHJJO0){return Sn8k30l[xHJJO0<0xea?xHJJO0<-0x2c?xHJJO0-0x6:xHJJO0+0x2b:xHJJO0+0x54]}Sn8k30l=eI8hlvm();function ZgWuH5(xHJJO0,E5narP){PJxIlM(xHJJO0,eUkumW(-0x19),{value:E5narP,configurable:!0x0});return xHJJO0}xHJJO0(PJxIlM=Object.defineProperty,lPaIEl=YP2hBZf((xHJJO0,E5narP)=>{return E5narP(xHJJO0())},0x2)(g4tuTcv,xL8W89));var qsDDMC=[],AYjBxt1=[iyXFndV(0x0),iyXFndV(0x1),iyXFndV(eUkumW(-0x16)),iyXFndV(eUkumW(-0x17)),iyXFndV(eUkumW(-0x18)),'eyI[z0x/mU|gJ=4Va]rlStVbT(d',iyXFndV(eUkumW(-0x12)),iyXFndV(0x6),';)Yh;|qG',iyXFndV(0x7),iyXFndV(0x8),';)Yh;|8P6RVKaR$d.N0#',iyXFndV(0x9),iyXFndV(eUkumW(0x1f)),';)Yh;|8P=nE7TIHm',iyXFndV(eUkumW(-0x7)),iyXFndV(eUkumW(-0xe)),iyXFndV(eUkumW(0xd)),iyXFndV(0xe),iyXFndV(eUkumW(-0xf)),';)Yh;|8PmKj6.RwaO8',iyXFndV(eUkumW(0x14)),iyXFndV(eUkumW(0x15)),iyXFndV(0x12),iyXFndV(eUkumW(0x10)),iyXFndV(eUkumW(-0x2b)),iyXFndV(0x15),iyXFndV(0x16),iyXFndV(0x17),iyXFndV(0x18),iyXFndV(eUkumW(-0x2b)),iyXFndV(0x19),iyXFndV(0x1a),iyXFndV(0x1b),iyXFndV(0x1c),iyXFndV(0x1d),iyXFndV(eUkumW(0x6b)),iyXFndV(0x1f),iyXFndV(eUkumW(-0x28)),iyXFndV(eUkumW(-0x8)),iyXFndV(eUkumW(-0x2a)),iyXFndV(eUkumW(-0x9)),iyXFndV(eUkumW(0x7a)),iyXFndV(eUkumW(-0x2b)),iyXFndV(0x25),iyXFndV(0x26),iyXFndV(0x27),iyXFndV(eUkumW(0x24)),iyXFndV(eUkumW(0x27)),iyXFndV(0x2a),iyXFndV(0x2b),iyXFndV(eUkumW(0x29)),iyXFndV(0x2d),iyXFndV(0x2e),iyXFndV(eUkumW(0x1c)),iyXFndV(0x30),iyXFndV(eUkumW(0x22)),iyXFndV(0x32),iyXFndV(eUkumW(-0x11)),iyXFndV(0x34),iyXFndV(eUkumW(-0x2a)),iyXFndV(0x35),iyXFndV(eUkumW(0x2a)),iyXFndV(0x36),iyXFndV(0x37),iyXFndV(0x38),iyXFndV(0x39),'6|Qd%}LIgSzG7',iyXFndV(0x3a),iyXFndV(0x3b),iyXFndV(0x3c),iyXFndV(0x3d),iyXFndV(eUkumW(0x55)),'+_~Ryrx3W|)B;z5:*:un',iyXFndV(0x3f),iyXFndV(0x40),iyXFndV(eUkumW(0x33)),iyXFndV(0x42),iyXFndV(eUkumW(-0x29)),iyXFndV(0x3c),iyXFndV(eUkumW(0x48)),iyXFndV(0x2f),iyXFndV(0x1a),iyXFndV(0x45),iyXFndV(0x46),iyXFndV(eUkumW(-0x2)),iyXFndV(0x48),iyXFndV(0x49),iyXFndV(eUkumW(0x37)),iyXFndV(eUkumW(0xa)),iyXFndV(eUkumW(0x11)),iyXFndV(0x4d),iyXFndV(0x4e),iyXFndV(0x4f),iyXFndV(eUkumW(0x39)),iyXFndV(0x51),iyXFndV(0x52),iyXFndV(0x53),iyXFndV(eUkumW(0x2c)),iyXFndV(0x55),iyXFndV(eUkumW(0x3c)),iyXFndV(eUkumW(0x3d)),iyXFndV(eUkumW(-0x29)),iyXFndV(0x22),iyXFndV(eUkumW(-0x2a)),iyXFndV(0x22),iyXFndV(0x22),iyXFndV(0x58),iyXFndV(eUkumW(-0x1f)),iyXFndV(0x5a),iyXFndV(eUkumW(-0x26)),iyXFndV(eUkumW(-0x28)),eUkumW(-0x27),iyXFndV(0x5c),iyXFndV(eUkumW(-0x25)),iyXFndV(0x22),eUkumW(-0x27),iyXFndV(eUkumW(-0x26)),iyXFndV(eUkumW(-0x25)),'<][S|F)G=:A[m"Wa!a$OxCFG',iyXFndV(0x5e),iyXFndV(0x5f),iyXFndV(0x60),iyXFndV(0x61),iyXFndV(0x62),iyXFndV(eUkumW(0x40)),iyXFndV(eUkumW(0x1)),iyXFndV(0x64),iyXFndV(0x65),iyXFndV(eUkumW(0x41)),iyXFndV(eUkumW(0x42)),iyXFndV(0x67),iyXFndV(eUkumW(0x43)),iyXFndV(0x69),'\x53\x3d\x34\x3c\x54\x35\x74\x7c\x6e\x24\x45\x37\x38',iyXFndV(0x6a),iyXFndV(0x6b),iyXFndV(eUkumW(0x44)),'VB!Q|z$G',iyXFndV(0x6d),iyXFndV(0x6e),iyXFndV(0x6f),iyXFndV(0x70),iyXFndV(0x43),'S=4<uat|n$E78',iyXFndV(0x71),iyXFndV(0x72),iyXFndV(0x6b),iyXFndV(0x73),'QwRb|mIx:$L',iyXFndV(0x74),iyXFndV(0x75),'\x51\x77\x52\x62\x7c\x6d\x42\x2f',iyXFndV(0x76),iyXFndV(eUkumW(-0x26)),iyXFndV(0x5d),iyXFndV(0x77),iyXFndV(0x78),iyXFndV(eUkumW(-0x24)),iyXFndV(0x7a),iyXFndV(0x7b),iyXFndV(0x7c),iyXFndV(eUkumW(-0x2a)),iyXFndV(eUkumW(-0x23)),iyXFndV(eUkumW(-0x2a)),iyXFndV(0x7e),iyXFndV(0x7f),'(|ZbF',iyXFndV(eUkumW(-0x24)),iyXFndV(0x43),iyXFndV(0x80),iyXFndV(eUkumW(0x4a)),'|AS4]',iyXFndV(eUkumW(0xe0)),iyXFndV(eUkumW(-0x23)),iyXFndV(0x22),iyXFndV(0x83),iyXFndV(0x22),iyXFndV(eUkumW(0x18)),iyXFndV(0x85),iyXFndV(eUkumW(-0x20)),iyXFndV(0x83),iyXFndV(eUkumW(-0x2a)),iyXFndV(0x7b),'4|Ca!>5',iyXFndV(eUkumW(-0x29)),iyXFndV(eUkumW(0x4d)),iyXFndV(0x87),iyXFndV(0x88),iyXFndV(0x89),iyXFndV(eUkumW(-0x21)),iyXFndV(eUkumW(-0x22)),iyXFndV(0x22),iyXFndV(eUkumW(-0x22)),iyXFndV(0x8a),iyXFndV(eUkumW(0x4
2024-09-24 15:55:14 +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.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"])