mirror of https://github.com/6dylan6/jdpro.git
12 lines
180 KiB
JavaScript
12 lines
180 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
0 0 15 9 * jd_dplh0915.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0915");
|
|||
|
const _0x4143=['Ev7dJG','mMpcR8oFvW','nCofWRFdLCoZW6LmW4uJWQa','eCoTWQJcOgddHSoMW6O','vh/cRMPN','W4VcRmkYW7jm','WRVcVYRdI8kqpSo1W6hdSSkT','kSkoW68FWPeLhSk8qMG','W6qfWRRcNmoB','tWyohCoNl37cTmkvBq','yMtcJ8kHamoi','W7CbW5XHW4K','aCkfEfhcOCkY','ix8uqae','dmo6WOlcQa','hWddGSopBmowWRa4rSkR','Be7cHCopBCksaNu2WQG','W77dTgdcVIu','eItdGSoGW40','aSoMW7hdMSoR','hSojlH0T','jrFdGSoXkmoKWQm4wSkT','mmk2W6GaWRiLsmo+zeO','WO41rCofWPG','Bfq5WPNcJa','WPFcJgzrdG','WPtcV3K','W4xdONhdKdy','W5NdHb9fWOm','WOyVdr3cUSk/WP4','vru7WOldJa','WP87zCoJWPC','WOJdVSkNW4C6yIFcJtmw','FGeJa8ok','aZNdV8oTW5uqWPCsWR8e','WONcQSkoWRTPo3VcOI46','W58TWOBcImo2WRzpCG','zvhcLNHG','AMdcTuPq','amkvAeFcQmk1CG','W4NcJCkEhSk/','WOVdMv7dPwC','5AYM54Qr6kYl5OUB5yQm5Ag45z2U5z2o776F','lCoQW7ZcGSk7FW','yCoKWQu','5y+06ikT5Roj5Rc4WPpMJjpKU6hMLkNPLllLHlC','hSoZW4RdS8ofW4quWPa3WRe','q8oFbSkpW4OfWQa','FmowcgBcOa','WRhcRgD3WRW','WO0UWRDM','c8oSpZu7BSkormkWlG','dZ/dLmo6W6m','gSoNWQNdVhBcK8k1WQRcGxW','W4tcVJCXWOeWWRKoAX8','WR1GWP9gW5DKBmoBnSkC','wCoedCkeW4WNWRRcRtK','WRJdPCkQWO0N','W5OYWORcImoSWRPsyGddKG','WOxcHSkykmoC','W6BcVdOWWQC','WR3dML3cH8k7W5/dPCoMWRVdNG','jJZdV8okDW','k8owW7e','E3JcJq','W5RcVYSYWOK8WQm','WOlcS8k1d8oEW7TgvCobDG','W77cSSkDoCkvzCowt8keEq','FXuCsCo2','yCk9W5BcN2CbeCk0WPzT','C8kSW4tdTq','W4VdLL7ORktMSj7LP7NOTkFVV5tORzJMOy0','6you5lYx5yUh5yMrW6tcMchcLa','WRFdNNVdKMO','jaZdR8ogqW','WRpcUvrNjq','WOJcLdpcO8kD','vdmxWQ3dSCkIFrdcImkP','wZCvWQVdQW','WOJdU1JcSHmin8kTW7hdVa','W6/cG8oQbcpcGSoBW74','W4VcNa3dISkTW51bW7DGEW','W7BdOq5ZWQe','wNGnWQNcOCogBa','FZeCBq','W6C4W5boW5f9wSoxamkC','WPldTXD5FG','z8kzW4VcTgG','cmkKWPjiyq','r2qnWQhdUq','eapcRSkbWRldQmocWQFcOHq','qSoBiSkgW4Om','pb3cT8k9WR/dMmomWRO','W6VcUmkFpmkprCoTv8kG','WQFdRfZdSK9A','WR/dTMRdLfW','q8oXEgiVW6C','aGhcMCklWQq','WOZdVfZdUfTl','W53cI8kJhSk3','m2GLkSojevxcN8k6dG','8jQ0NCkj','WRldN1RdNSkY','AL4IWQ7cQW','WOhdO8kYWPSGzsBcQwuv','WRNdTLddSXq','tMGA','k8ouWO/cMgm','W77dH03dHZC','C3BcNSkY','FSkDWQrRFhddKJRcSM8','5yYd5yII5ywE77Y4','mSolW7FdJmo8W75DW540WQO','f8kuBqVcRSkZCSkhtbe','WOaHWRDIWQZcKqDzBr4','BdebEa','uCkvW4NcV1q','xmoQFG','bCoZWPSqWOxcNq','kCoQW5u','xb8oWQ3dOG','bwhdIgFdTrWWAG','kudcQ8oQA8kvl1CLWR4','5A+054M46k2A5OMc5yIr5AcE5z2Z5z2E77+1','Bmk8W6JcOM8bnSk6WOLm','cmoVWPWQWRe','WRBdNelcMmk9W4FdMmonWQhdNq','W7dcHmoI','W6ddK1RdHZRdMCo4','bYRdQmoKW4jVW4edW7Lw','W67cVmkBkq','WPNdKNpcSqTtCmo2WRRdQa','FCo6fKxcVcK','WORcRhDEounNdcDG','dmkAWPfDphC','WPNcR8kndmoEW6CQaSkDia','bSo3WRO','6k6h5yQB6zIO5OAm5zYTW6FcQYv+WQO','ESoRywaV','W4imW49lW4a','h8opW4FcJhK','WRxcUttcLSktomo1W5ldR8kY','WPXXnSovwW','W4tcOJK1WPuG','5P6p57+j6lsY6yAX6kYX','WOtcOMPr','W5RdR8ocB8osg8kve8o/Eq','FXupWQddHG','WO/cPxH8bLv9','u1JdRCkaWR7dLmoxWOdcONO','WPVcOCkihSowW6y','ktNcImkWWQ4','i8okW7NdKSo1','tmkvWPVcIZCwaSkoWQTF','hCkgza','5y+E57UC5A+05P+M5BMt5l6V5zgh77646k2p5yA2','D1JdIbyB','A8kRW4u','W7xcRdS3WQ0','DZeCzCoqh8o0WRdcTSoF','nSoqW7RcMMNdMCkIkG','oCk4WRXxfG','fmoSWQW','hmowWQCsWPi','g085FbS1WRf4W5JcNa','W5dcOSoiesi','WOZcRhK','W7hcMmoI','W7y6W4ncW6L7','WOWXr8oAWPZdMcC','W5JcVr4TWOe0','FsaCgSob','iCkRW74vWO0otmo/AG','DmkOWOddNSoRl8oFzvNcGW','W43cI8kzW7rNEZ9GW6BdNG','8j63KSkc','WRFdLLRcTCkNW4tdO8okWRZdRG','WPldIKJcRmkb','nmkfWRjoyvtdMqRcOhW','WPxcTwLifLXikGfw','5lMC5PUy5l+A5zg5','W7/cG8oKbI7cNW','WPr+gSoDsv3cVa','a8o3pIKGtmkfDmk2pa','A8oRhqVcRYBdHwpcJmkV','WP90b8oNawRdQmk3W5uK','W5tcL8kB','m8oMWQJcQKe','WPddG0JdI8kRW4XC','h8oyW7lcVxq','c8oWoW','fHhcUW','m0xcK8o2zW','W6BdILZdQdBdMCo/','pCoYW7FcImki','WPtcSwTv','l8ocW7xdMq','W5RcSSkDnSkptSoPzSo/','rwij','l8oXhaSy','WQ7cR39HWRRcGa','Ct8bySoPfmkLWRVcO8oi','WOZdGvVdRSk2W5PAW5vSnW','ucFdT8owjComWPq1w8k3','hCksWOPmAW','hmksWRzMFq','W57dIJ0','omkNWPDPqW','DCkWW43cVuOgbSkV','W7VdLYjPWQu','xCo8wge7W6BcRW','WQpcRhbecKH9rrzR','WQFdNgNdSSkv','DSkHWOldG8oNiG','tfWEWRNcGq','gSkoB0hcTq','f8oXW53cNq','WQ3cSwrtcq','WO/cTMP2a0DU','WRNdNuRcKCkQW7/dRq','fWhdK+ITToAXH+wMLoI3OE+9KEIVG+AGMq','W64VW5bxW5qUaCkbpCkv','nJJcUmkDWRS','WQVdTLpdQu5n','gwxdN2ddLXiQEmkw','b3ddMwRdKq','W4RdO1vgWQ9B','WOWhwSomWPG','W5VcUt8','WQpdVCkBoCoo','W77dJ0RdLZBdHCoLFvpdNq','d8o2WQS','q8ouaCky','W6RcQCosiXy','W7hdIJvHWQ5l','W6hdG1tdHtBdHmoBrKpdGW','
|
|||
|
function Env(o,t){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((r,i)=>{s.call(this,t,(t,e,s)=>{t?i(t):r(e)})})}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.logLevels={debug:0,info:1,warn:2,error:3},this.logLevelPrefixs={debug:"[DEBUG] ",info:"[INFO] ",warn:"[WARN] ",error:"[ERROR] "},this.logLevel="info",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.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null,...s){try{return JSON.stringify(t,...s)}catch{return e}}getjson(t,e){let s=e;if(this.getdata(t))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(r=>{this.get({url:t},(t,e,s)=>r(s))})}runScript(a,o){return new Promise(r=>{let t=this.getdata("@chavy_boxjs_userCfgs.httpapi");t=t&&t.replace(/\n/g,"").trim();var e=(e=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"))?+e:20,[s,i]=(e=o&&o.timeout?o.timeout:e,t.split("@"));this.post({url:`http://${i}/v1/scripting/evaluate`,body:{script_text:a,mock_type:"cron",timeout:e},headers:{"X-Key":s,Accept:"*/*"},timeout:e},(t,e,s)=>r(s))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};this.fs=this.fs||require("fs"),this.path=this.path||require("path");var t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),r=!s&&this.fs.existsSync(e);if(!s&&!r)return{};r=s?t:e;try{return JSON.parse(this.fs.readFileSync(r))}catch(t){return{}}}writedata(){var t,e,s,r,i;this.isNode()&&(this.fs=this.fs||require("fs"),this.path=this.path||require("path"),t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),r=!(s=this.fs.existsSync(t))&&this.fs.existsSync(e),i=JSON.stringify(this.data),!s&&r?this.fs.writeFileSync(e,i):this.fs.writeFileSync(t,i))}lodash_get(t,e,s){let r=t;for(const t of e.replace(/\[(\d+)\]/g,".$1").split("."))if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,r,e){return Object(t)===t&&((r=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g)||[]).slice(0,-1).reduce((t,e,s)=>Object(t[e])===t[e]?t[e]:t[e]=Math.abs(r[s+1])>>0==+r[s+1]?[]:{},t)[r[r.length-1]]=e),t}getdata(t){let e=this.getval(t);if(/^@/.test(t)){var[,s,r]=/^@(.*?)\.(.*?)$/.exec(t);if(s=s?this.getval(s):"")try{const t=JSON.parse(s);e=t?this.lodash_get(t,r,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){var[,r,i]=/^@(.*?)\.(.*?)$/.exec(e),a=this.getval(r),a=r?"null"===a?null:a||"{}":"{}";try{const e=JSON.parse(a);this.lodash_set(e,i,t),s=this.setval(JSON.stringify(e),r)}catch(e){this.lodash_set(a={},i,t),s=this.setval(JSON.stringify(a),r)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueF
|