faker3/jd_redRain2021.js

20 lines
51 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
活动名称京豆红包雨
环境变量jd_redRain2021_threads // 控制并发线程数正整数默认1最大3尽量使用默认值否则请开启代理运行
jd_redRain2021_interval // 自定义运行间隔时长整数单位毫秒默认2000
jd_redRain2021_notify // 是否推送通知true/false默认不推送
jd_redRain2021_pinFilter // 账号pin过滤多个用@进行分割
高并发脚本谨慎使用并发
活动限制IP严重建议使用代理
定时请自行修改
cron:1 1 1 1 *
*/
const $ = new Env('京豆红包雨')
var il='jsjiami.com.v7';function Iii11l(){const l1ilIi=(function(){return[...[il,'OpnjGPgsjVwiAVaMlTmytixL.KnqckodbmW.vE7R==','gfRdTs3dLG','x2hdJW','n0hdRHi','vGHhWRZcUa','6yka55Yc5O6z6ycfdmklWO4','WOFdTwtdLZBcOaRdKM7cR3S','W6JcGKzLrmopWOhcPCkUW6y','W7NdH8oKW7hcRq','5l+55Ogk5yMz','jKZcNvNdLXfOWRFdHCkEW6n1s8k7','iSkKj37cQa','WPRdSwZdLKNcQHxdLh/cO1zPWQNdICo3WPa4WQfYW7NdUa','WPtdImkmWQW','WR8KWPnvwq','WQFdHSoLa0xcNuOQpmkZvG','WQtdMCo0huJcRKOSnmkXsWhcVaWFWOD2jfDOW7JdSc/cLLrlzmozCYJdLCo5WQG','WPSbW5atWRBdPCoLWRKEDa','WPGeFCoCuG','WP43WPhcHSkKmmkm','D3NdISkV','fSkPdKJcIG','W47dNhC9W45QiCofW7WaW4xdUmkvhYpcGw3cJSkuWRC','W6ypr1JdPWpdLCk1','W77dKNXsoa','bSodW5G9Aa','W6lcKvHHqCkzWPBcS8kWW6xcJCkh','WQZdH8oNhvtcQu4R','W4ZdPIJcKW','WOBKUOlKUQ/OSiVNUj/LJzxPM6BMT5hLIkr4','W4tdKSk4W4e','WQbDgH3cH1RcImktWPdcSeZdMSkj','oeddSq','W4ZdNmkR','WOiuxCo2tr/dPq','WPa7W7uSWRu','cSkJdv7cQq','iCouW7GTwmkP','W4/dHSk4W6yqBSk2','W7LDi1RdHq','pqqXkfW','o1iW','W4q4C8kJlG','xtvUWQlcPCol','W5WbWR93Aa','dwJdGmovW7C','W748WO5I','WQKvWPVcKSkv','s8oaxIGfrmkB','W5Oty8kNrMpdPMSQW6e','W5SswCkLdMBdMgm1W6OdvCo8WQ/cGCo6yHWKW7eCWRy','iw4WWQyq','6AgY5y2c5As46lAxiCoV','WPhcGCo1WPnmnSoJwmkYWPldGSo7ncK','57U55PYA5Pwk6zsTWPyy','mvBcKf8','W7GatuddHG7dNCkJ','sKFdQ27cP8oKd8kbWOpdOt7dOLeCFf3cJSk4W7LkAq','sKpdO28','W5ldLSk7W4eoA8kIimkSWPFdNq','WQKGCw0','b8o0W5u','WPyrW4ipWORdO8ojWRur','frCNcLu','mvqcWO4n','W4CzkNmWvuHhxSorCCoQ','W7ylwMBdTIi','WQbJW5KxW5ZdMa','o1G5WOCjrW','W4uSWQf1zSonWQ4','WRNdOMddOxG','dUENLUwlUgC','eSoeW4rZi8kuw0S2zK0WvG','WPuMWPdcM8kZ','WOFdGXK','emo9fW','WPWusmoEvrFdTSk2','W6KVBuNdHW','W6VdPhCmW78','WOeotG','WQ0ZWPrPxq','jSoJDbe','WR5PW48NW4VdMum','i8khlYv7E8o+nmoh','xt9N','W5/cSddcSmk7','WPVdNtmwW7W','WOaewSodqbNdPW','WQ0+xcdcKq','DKvZlCk1xg/cHW','Bv5+bmkUxa','uHBcN8kwlCkB','vt9jWQVcPCogAIK5W5SsWRXKW4tdKuSYW7CPdmoqoMa','rCofq0aec8kwWQJdGNewjW','C0r3','ugVdPHjeamkBv8ogjsfFW7FdPdxcSw1bBwX0j8ok','W4BdGCkCW6K','W6xdJmoeW7JcRafhWQfpWPldTq','CvNdJI1w','smkMq8o/lfTizx3dTmozW54','Bx3dKmkOwCkHWQ8','W4BcRe8','WRTPj8onda','Bb7dJYtdT8kOWR7cTW','ofJcJG','BsbvW59GW63dIXuWWR03W6idaSo9W7GLg3BcMG','WONcS8kHWO1F','q8oqxIqSzG','fgJdMmo7W6vnigZcSColW6u','WQNcH8kPWOjGWR9pWRS','W6BdMCkeW6JcUa','i8kLkNFcRI0iW7SnB8kGtW','nhxdHq','WP3dUMRdNM7cQX3dIa','4P+KAEAFUoIdU+ATPoEJHowNJ+ErLCos','W63dHhu5W7S','WOCoqmoE','iCoEW7e','aMpdGa','Au3dTgpcMCoTa8obW4dcQK3cRryErvdcQmk4W7GumCojW7BcLMqzgSoOW5pcVCkNW4a3WOrqW77cRgnqz23dPbWdW6RcMXGEWQxdLIfXW5ujzGraW54TWPFdJCo1W4bTgWddPKeFWOdcLY3cMtCHxYFdPYDxWQeuWQFdLq42CCknomkJWQn+rw9dWPJdGbNcHLLKW5K6mZyKW47dKsZcM8ofWPG2tJJcRSktW5BdG8kGsCoSC8oHhepcPwdcQ8ozcSkoWPO3uqHyW7FcRmoErSk+W73dPCoaW67dMrztWRtcU1JdMCoqwmoH','CCkRwq','WQ4BW44CWO4','5lMH6lch6zUT','WQtcImk+WO9fWRPEWQa','WRBdJmoQfwpcQeWXm8kktepcOq','WRhdVSoCofm','fCo8e8kRyaD/Fa','jCkngsrI','WQ5XkCowc3O','seZdVvfN','5B+75yIe5RgZ5PYp5Q2K5z6c6lYq6kcF55M25RAr5yIA772N5lIK5QYE5PwZ54k/5P6e5zc8W6y','h8oZbmkKFq','BhFdHa','h1/dTZddKG','wcddI8k4W55CWOy','WR/dNJekW4zuzq','4PMTyEIhR+wULUs6O+I8S+IGMUMvNEMAPUAuUUMuK+ITM+E8RUMxQEITQa','WOjMW7G','WQddHdu','W7pdQhj/gr/cGq','jvW5WOqsqG','DZ/cNSkggW','kCkMlvFcT3S','mZmLi1a','n8k2lxxcRxC','WRNcKmkZWPC4WPzNW6xcISoVW5WhWQ7cTmoKWRm','W6lcGL9hWRG','WQbPW5GMW73dNLG5wG','W7FdMMyeW74','ntWn','dmoaW5O','kmksdHn+','WQ9Gp8oddg0ZASk4WQS','gmkaD8kUW78','WPOcWQ93vmoCWONcJJD7BSo8ua','W4DjWPLgW6tcQSkBW6Thla','z03dOh7cKmoVfSodWQhdVq3dQa','ldWpjv1xWQm','W4FLPBdOTkdVVidLJBxLMipVVyW','hx/dHSoPbG','cMJdHCoSW4feiq','WQhdMdu','W4hdHSkC','4PIFt+IgQEwUJos4JUI+T+IHH+MxNoMAPoAvGEMvP+ISS+E8O+MvG+ISNG','WPyrW4OCWQ3dVW','e8ocW6jseq','W74QWOnjBG','W4ddGxS','vMddNG','W5maja','WRZdNIeb','W5GOWQb1yG','Dmk6lxBcVgDLW7WxzmkL','rZBdMW','b8oiW5i','xIv0WOpcVCocFW','z33dL8kwxCk1WRNdMs44','WOZdMqy','WPqrW4eFWOVdSSolWRKmDamwW5anW4/cGCoPW4HTC8ob','W5VdJeXJhq','W4hdTerihW','WQhdImoWea'],...(function(){return[...['nviJWPqsqSkmuSobWQm','eCotuW','eUwjPUs/Oa','dCooW40','n2uuWPyLW6ddLeWHWR0xWRqP','WRtcMSkdWQ/dQdr2WRTLWP/dUG','kM/dJmoNjCkD','hhWuWPOU','WPOaqmoeDrFdR8kQ','ymk4qtC','5P625lIL6lcd57Mu5y206zUV','WRJdUWqeW5O','wazTWQ3cGq','WO7dRgtdQhy','W6ddJCox','eHG+','WPVdIaSNW64','W5tdJxqSW480qmklW6ex','WQSKW6eVWPa','gU
// 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"])