mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
35 lines
121 KiB
JavaScript
35 lines
121 KiB
JavaScript
|
/*
|
|||
|
活动名称:邀请好友入会(超级无线)
|
|||
|
活动链接:https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=<类型id>&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
|||
|
https://lzkj-isv.isvjcloud.com/prod/cc/interaction/v1/index?activityType=<类型id>&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
|||
|
https://lorealjdcampaign-rc.isvjcloud.com/interact/index?activityType=<类型id>&activityId=<活动id>&templateId=<模板id>&prd=crm
|
|||
|
环境变量:jd_lzkj_invite_url // 活动链接
|
|||
|
jd_lzkj_invite_notify // 是否推送通知(true/false),默认不推送
|
|||
|
jd_lzkj_invite_pin // 指定助力账号,多个用英文逗号进行分隔,不填默认助力账号1
|
|||
|
jd_lzkj_invite_helpnum // 助力账号数,默认助力前1账号,需要助力其他请自行设置变量
|
|||
|
jd_lzkj_invite_num // 指定助力次数,不填默认为最高助力人数
|
|||
|
jd_lzkj_invite_forbiddenQuit // IP被限制后继续执行,默认退出运行(true/false)
|
|||
|
jd_lzkj_invite_concThreads // 控制并发线程数(正整数),默认1 (注意:此参数过大会导致助力刹不住车)
|
|||
|
jd_lzkj_invite_concRetry // 最大重试次数(正整数),默认0即不重试
|
|||
|
jd_lzkj_invite_concTimeout // 最大超时时间(正整数,单位毫秒),默认 '60000' 即1分钟
|
|||
|
jd_lzkj_invite_pinFilter_interactsaas // 账号pin过滤,多个@链接
|
|||
|
jd_lzkj_invite_pinFilter_interaction_v1 // 账号pin过滤,多个@链接
|
|||
|
|
|||
|
支持的活动类型:
|
|||
|
10070 邀请好友入会 10006 邀请好友入会
|
|||
|
|
|||
|
注释:
|
|||
|
需要链接中的三个必要参数才能正常访问活动页,运行脚本至少需要提供 activityId 参数
|
|||
|
官方后端性能较差并且写的很烂,同一时间冲的人较多会导致服务器抽风返回 500 即 Internal Server Error
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('邀请好友入会(超级无线)')
|
|||
|
|
|||
|
var iil='jsjiami.com.v7';function I1ll1I1l(){const l11lI1i=(function(){return[...[iil,'MAgjsbjkrieHamLpixT.McoQfmQg.fHevx7yMXhO==','6i6y5y2AW5hdVSkXW7mqpCovumoQWPVLP7ZOTkG','W4RcPKRdHmo2zsNdKtuc','W4FcKmko','s8k4WOf8hfBcOSk6','kr/cPmoIjG','WRekcmk4aG','WOpdH8oOsv7dGxaIkW','sY3dQq','W5xcKCoHW6jf','W7lcPL89Es9aW5FdPG','nIhcQmo5lG','wCksW7dcQhf3ySobxW7dTmov','W4RdNfZcV0tcQCoHW516WR9OWRJdRba','q8oPW6tdQCkSW7u','FUIUPEAZSowLJEI2Vx3INA7cMa','56Uc5RkTd/gjSP4','W4ldV20SWR/dHmoA','nCo2W6aAqa','y8kTW6JcKvm','iSkTvJmQW6BdQq','WPqHe8kSW7JdPSoRW45A','p8k9udqDW7ddT0ZcV8o4W60tW7VcIw4RWQGMWROrWQ0','WR00WRSxWRJdRqqFcHT5','WPv3WOJcMq','zSogWRldNxG','5P6O5B+p5AE6','WQZdKdi8W4FdGmk3WQbHv1ZcQmo9cMS','WQRdLJiNW5tdGCkc','cmkadd5iW7/dQq','jCk/A8obia','pCouW5W2rW','44gkE+AkPUs7OowTH+EjTcy','nmk2vIi2W6xdRNpcOmoZ','vrxdJ2Op','oGxcG8osaq','W4BdTwS','zLuvxt5D','kmkyDCodia','rM3dUqzWWO/cNmkVWR5BW7ruW5dcO8kyW74','xmoKW6xdVSkrW7K','5BEr6k2D57Ya6lEs6l6y6l276kcE5BYz5yQn6lEJ5y2z','W5q1W5hdKSoKp8ktW6NcNW','W4JcRuFdO8oo','W73cIwFdLCo4','W4ynvH8m','WPddSmoVvCk3W6JcNa','s8kLWQz1d1FcQCk6gSkAcCkt','BCoEW7JdT8kv','fd3cGmo8ba','W5BcPgFdNSoO','cCkHWP3cG8o3W6JdRq/dNL/dV8kJESomW53dVCkcWPDm','WPCLhSkk','qCodW4DZuSo/','W7uaCX04W5/cVwldLW4','W6Xromka','h8kVvaGn','CsldGbpdVhlcKCoBWPTwuXSdzCk/WOXFWONcR8oYW7VcIxvK','44kt5lUc5A2P5z2t77YC5BAX6iEE5yIA6lwN6l24W4u','6i2k5yYOkWGtrh5un+wMTUI3MG','WQ7cL8o8DSofuq','WONdMSoJqxNdMMC+nSkJW7pdV8oFw07dQJ9DWQ7cUea4W4CHhCkAx8k4pmkrW7JcVtzPWP/cIMayqvC','WPiNe8kqW73dQSoTW75RxgO','WPtdHCoAFuS','WQz7dCosWPi','W7lcSSo9W7m','gJZcV8oYmW','fb0CW6JdIa','qCkphxSW','iSkSvcq6W6y','WRJdNsKzW7VdJCkkWQq','WRJdMISm','ndKMifGxmq','nI48p08Ommk9zhvgWOpcT2FcV8ov','xCoPW7RdOSk5W74H','naKaW7FdQCkFWQ41','5RwE5yML57cS5z+q772a','W5NcMSkAWOlcSWpdVXLw','WQhdMI8hW7hdICku','WQmIjCkQ','WRpdT1GWxqzTW5C','krrOWQJcQ2TJW7vvyGTNAwe','WRhdGxlcReK','W6NdVCkaW5OUW7/dI1lcVW','W7y5rvO0vq','ASoUW4ldQSkG','WRuvWPGgWOa','smk5WOT+oLRcQmk5mSk+fmkyWORcPW','WQVdOCoFu2m','W7C/ta','W7JdMCoAD8ox','WRCiaq','WOtWRPwF','5lQC5lIr5lMOhVc8T7NVUl4','v3VdSWSZWQpcVmoN','W6vtlCk4mq','rCkZWPzfgLFcTCkagW','W67dMCoRv8o4quxdQfud','uCofW61aDW','WRSYWRS7WRZdTH8ueXfUdG','vSokW5XI','uY3dPueK','WOJdOCoxFSkD','W4xcP0ddMmomEJNdPa','WPtcI3xcMCk5','EmoJWPldT0m','y0m/xYXqW67cJtvUWQJcJW','5PYz6ica6iYU5yYq55sA5OIV5Rs95yIm54QG5OgH','W4BcQSoyW71A','dc7cS8kuW6i','zCkhW7lcGh8','W6RdLmoP','WP7dUg4','W5ZcOeBdHSogCq','WQnjfSoCWPO','W4nzhmk7aG','gCo/W70wqa','W6O/tfKVsWbBWPe','FSopW5ldN8kS','WOOehSk5sG','W6nrlq','W6vri8kDfJToW7jZyqKAl38','CMytDaW','nH0uW6ldNa','WQlcO8oNvColWPbkl8oGv8k4zftcHvRcNSoHW6NcUmkiW5u','aCkSiZO','vCk8WPTEaG','W6dcQCo4W5O','5yIl5yAA5BM+6zci5l+25zc45AAH6lwy77Y/5RAD5yMU5lQ46zQw5BUA6zkd5lYV5zkR5y6B5lMd5zgoW6O','hcJcMmkfW4K','WPtdJmo4s3JdKMS','W4NcOve','rmk/WO5Kdea','W4RcPL8','WPNcJbeRlf1Yqa8','WRi0WQ42WQ/dRrG','WOZcICoru8ob','zCkAWOnXoG','WPpdKqugW6e','WOtWRRYN77QN','kav6WR/cRuLVW51E','a8kKlW','W47dU3GP','W7RdLCoUE8o+','WPBcIK/cHmk8','nSk9qru9W6FdTvhcHmoUW4K','s2BdQri','etaWW4BdGa','W4VcNw3dRSoA','nZZdGrNdQIK','5Ogc5zsq6iY95BYz5A2g54U0oN7LP6JLK7tLKONNPlBVV5C','aSkRWO4','w+odIow8TEwMM+wlPUwiJUocI++8Uq','l8kzBSoFc0LsWP0','oCk9vdqQW6FdQq','W6/cVmo6vSokW55h','t2BdQqu4WOZcSmoVWR8','5lMr5A6P5zYP','bCkVWQhcPCo4','5lQB5A6l5z6H','W4NcP0xdMSoGyG7dQtmC','W4uKW4ZdGCo3gmkgW73cRSkXfCo4','omodW40Hta','WRmgfCkzFXOlW7RdSSkBeZmyW7KI','WOGLWR40WQW','mGiBo3i','qSozW4f5FSovW7WxWRW','WPBcNMNcTSkpc8odWR0XW4SP','W5qMW4ZdGmoVemkFW6e','kXJdMIVdUW','W6TFpSks','A0alvInwW6hcIJLaWRBdIxnfW4xdRKvXWRBcG2BcOa40l8kfW6nOWO9z','kmoYW601zaNdHbfkydW','vsFdVue4kaOeWR7cN2ddImo0emooja','W6RcTSoHB8oDW5n5lCk9x8k7DuxcKKK','6k245Rg85Aw76lEwzEkFJWhMLAlLK7pLUPdMLjtMJjy','W7WcDdmRW4lcI3RdRqpcNmoSW4Dliq','qcFdUNyVlr8HWQpcUMddUCoOfSoki8ol','WRCOWRW3WQBdUq','fchcHa','zmoGW6NdHCkF','WO/cMXm5fvL+DGpdTmkl','jSkVEZCa','wmoxwWfbW6hdMhrK','WQOKWRW6','kZmh','BCo0nmoIW4C','FdChW4fn','W6pcReu1Cs5r','W6VcOvixzsDrW4e','z+E4VEACSoAwUUMxHE++Lq','d8k0WPNcO8o/W7/dQqJdG3hdOCo8rSoAW4ddOmoqWPTkWO/cUKKyW7pdRM/dOWHxW4a','WQVcMgJcVSk3','x8oLW6tdImkXW7eWn8om','lSo5W646zG','W5tcVxG+vq','rSoiWQBdOxW','W7qxfmkMAvWgW63cNmkrcq4tW60SeWTnWQdcRgG','rCoiWPBdSvK','W6hcO8o5W55Td8
|
|||
|
|
|||
|
// 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"])
|