KR/jd_zmlyq.js

30 lines
87 KiB
JavaScript
Raw Normal View History

2023-08-11 01:03:32 +08:00
/*
8.10-8.31 祖玛珑邀请有礼
1.邀请满3人30豆,5人50豆10人100豆
2.开1张卡
3.已开卡的不算有效人数
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
入口[ 8.10-8.31 祖玛珑邀请有礼 ]
请求太频繁会被黑ip
过10分钟再执行
cron:1 1 1 1 *
============Quantumultx===============
[task_local]
#8.10-8.31 祖玛珑邀请有礼
1 1 1 1 * jd_zmlyq.js, tag=8.10-8.31 祖玛珑邀请有礼, enabled=true
*/
const $ = new Env('8.10-8.31 祖玛珑邀请有礼');
2023-08-11 22:33:07 +08:00
var version_='jsjiami.com.v7';function Iii11l(){const ll1I1l=(function(){return[version_,'RjsgJjGSQiDaQhumCQiP.wCHckgotGmh.KeuvCS7==','zMnRdSo8W6ddQvW','WRSWBmktsa','EmoBAaVcHG','WRFcR8o7W7m+','a8kDWQNcQtPwW4G','zhGgCmkT','l8o0W7DuthldOW/cJSoHWQytWOZdIqpdU8kwo8kDW41zrCosW6arbwNcUSk3z8oRs3PQW4VdLCk1i8kCweLnaGJdUvGQ','WQJcGmo0W6eK','W53cRvJdQgbbEW','WO4qgtXf','WO8uWQRcOwJcMmknx1C','i8kbWOHWECkZWRBdKCog','CMjScmovW5ZdR0fB','yIyQW7PrWPS','WOVdSCoy','cqOTBNK','DKmMFCkz','rt58WOiWW7ldLmo8W54QWOGBW4fHl8o7WOtdGCoSiCkcWPtcHNpcGtKbW5hcUahcLCoj','gqj4fmo0','WQizWPxcPMy','uwnJ','5y2r5yI25ysx776s','W6uqhcPJk8oGW4JcImk2zSkDW4JdTW/cSmo8WO7dMN8JWQnOlsBdQSontComW6CAsSkSW7mDWO4','W5jmnCoRea','BwvQ','WRjgBt8','DM4H','eJz+WOu4W7pcSmofWRyfW5LG','WPVcQSozW5NcLCkeW6FcTvu','WOCvgGPp','eW/dM8o7ja','W5RcS0RcUCokrCoZW63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VdG8oBncRcVIpdTXVdK8ooWRBcSb3cGa','t8ouW7rpxq','W7vIW4BdUSoF','WQRdRLWLc1BdTG','WORdIe0ccq','WR/cGNnJDq8','q3u9W556WO7cGSoSWPuVW5Xk','l8k0WQG','ssldNY4','ygLUh8odW7RdLKDygZtdSCkfmKO','ACoiwcdcLq','xCoMxZVcLSk6W4HyyG','vxOAsSkt','rK85v8k2','nGFdJmo8aa','WR/dPrFdUKpcV8oUW7S','vSkpWQpcRcTSW5/cPW','W6eSW7m7FW','yMicW4jy','AmkXWQHMWRdcISoY','W4ZdTXhdVglcRmowW6TSrSod','vJpdOsRcRW','W7zKW6RdKCoSgCkgWPWFW4fT','kmkdW4rCia','kJO4B8kcWRWk','lYS/BmkqW6faW4nnW7FdU8oZWRldJIhdSZTlWRJcICo4v0ZcHqBcQCkqW5X9W4BcK8ox','WP7cN3H/W4a','cb9HhSoOhmoplCkHW71IwW','k8k+WQpdS39zWQaBua','W5TEAe7cHWzOnmoH','W6rVW7hdImo7e8kgWOWGW4WKWO7cOdy','seaRW4Dd','q8kwEb8','cmk5WRxdMCof','WORdKYZdKtG','5RE+5yIZ5Asc54ci54MH77Y76k2M56Ix5zoF5yw56k6H','cSkyWQmGWR8','BSoAwCkNW5e','5Q2AqUMgLoAwHUw8VownIa','u8owW4PCFa','WQJcJmoEW7CBga','abCkwmkz','W5ztkmoWcG','s8ouW4pcHCkOaSoZDgy','yM45W4jl','jGxdMmoYnuCHD3evWOCt','WOpdJq/dIaS','kZaS','hmkhWQ0','WP3dVGNdStK','WQldVLW','i0e4W4RcHCkhWPqQtmojnSkTWPTvjSoboSosWRCaW4VdT8opWQSrWQhdMwpcVCkXCGrAWO3dTSoUn1G5W6xdNg7cTd4sugKYWOZdQSoYWPvYCrPeheGByaT3W451bLBcK8ooj8ogbXRcU37dLSo1WRJdLHrgW6NcRG0QW6FcRCkXWPvoWQNdJ17cGCo3W4TMAmohdcddNCo6W58VW4ddHe/dR8kFhfNcOmo4WO3cSYr+WQX2aa','W6dcRfFdQhy','WR/dSWuGkrVdQ3ldQSkfsCohW5XEksTExCkzneaqnYy2td0WWRVcRSkjrCkvW6Hj','44ov5yMa5yIR5lIQ5PsF772Q','W7lcHCoVW4qW','WQxcP8oDW5em','E8oYx8kaW7K','lIqKW6vXWOmuW5ddRsbLWQNdRslcPtiTCsVdU3ncbfJcPCkSjJ3cTh4XW7K','WOddObxdUg4','WQ5gEq','5B685y2A5AsT6lsM4P6YDU+8JEMgL+AuTUAjGoIGUEIgNEAEVG','WRO5WQJcSKC','iSoYW75dWRtcISo7x2yNamklzCocW4X+W4tcJ8k4C8kSW6S3WO/dH8ogWQRdQSkyWR8GE8of','WQRcImoDW7u','w8kZySogWRlcTG','WRBdVCofhvqVW6u','W5bcW7hdGmoW','DM5Kcmo6','WQKsgGRdMq','WOVdTbhdRgJcUmkZWQ83eCokeSk9n8opha','hSkqWRqaWOxcJ1mt','WP/dJxeVlq','WQq2WQVcMxu','WQJdQe8','c8k6WRW5WOC','W4mZWQvkW5O','b8kAxG','WQhdULWc','rmouW5VcUSkBcmoOwxnOWOXSW6BcOJT5WPRdMHGKWQT4iSkAq8o9h8kP','DgmzqCk2','W6aOW7ayFa','xfLvpSoiamo6oa','Cu8AW4Tq','C8krWPjhWQO','W5aTtWj4','W5dcSv3dULfQ','WOm4WOJcJua','WRBcJmodW6udba','W4LAjSo0fq','WRKCgq/dOG','wSkVyG','WRBdS0CtkLldVhJcTmkgn8kwWOadtcbwhW','WQuZoGVdVG','5P6U6i+J5y+05yMd5Pwl5O+oWPlOROtPHPpMLzZOV6ROOiS','W51iB2RcJsjcnCoZsqe','qCoVW4DzDG','wLqMqSkRW7lcLCojWRCIW5y0iCk
2023-08-11 01:03:32 +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"])