mirror of https://github.com/6dylan6/jdpro.git
12 lines
188 KiB
JavaScript
12 lines
188 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
0 0 10 9 * jd_dplh0910.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌0910");
|
|||
|
const _0x19dc=['qxSzWPtdGW','W4xdGxVcICkgWORcHSkpWRqO','lCo0WPzakq','h8ozWQv2WPuWWOlcHq','gCklWOddHLe','WRGgW5NdN8oKW5ex','WO/cSdJdPWXDWP8','W5KNaSkW','usBdLCk/ymomWORcJCoy','e8kmWRRcHSkB','jCkXfLVcUq','WOX5oXWWwKNdJmo4tq','W6KMkJ7cUW','6ygC6l6z6isf5P6O5y2X6iY05y2xWOqVcW','omkEawhcNYXtqWFdNa','hSoPW60mcWvlWPavW4m','W5xcQwJdV1PtW5ZdHSku','W5eWbSoFWOfGxrVcNdq','WP3cNJBdQYC','vg8rW5K3','tCk9WRlcQ8k4','W5ideX/cMG','W5TBBLxdQa','W4W9CIFdIG','W6ZcGbtdKqe','W74Kb8oIW7LlWRTaWRGH','sCotExnUWRdcMNVdSLO','tmkZWQe','W6j9lSoYW4bAeW','xmk6W6vWW7m','gmoEWRj4WQK0WPZcLaWb','WR/cQ8kCnW8Te1JdRdC','iCoVBhRcRCoUlSoZxmoX','W4b2vx7dTG','omo5WRj2WPq','WOxcVdJdRqe','p8oDDfNcJq','WRqyW4VdNSoPW7CD','smoeE3HdWRBcGNZdJGq','jeH0WRVdJCk8W40x','W7JcU8kfAbPLuXNdUwG','uJpdLCkL','trqs','WR4pWQvoWO0X','oCkthwtcNJ0','wX3dK2q','qfWpWQZdGdqTaSoo','jmkQWRxdLfC','qmka5yUa6zkc5zov5yEC5OQi6kkS6iwL5P2/','sdVdJ8kIBSoVWO3cQSovW5S','vIaFWO9w','gSoUWPzmW7m','WRTKBSo9WPnbrK/cJq','iZbP','WQNcVZpdKcW','W7pcRJZdKZq','zcLHmmoP','W6tcQd3dRtZcUq','hSoYW7OTiq','W5qTgINcMCk9W54','zI3dNKi2','omo3WOO','cCkLWOBcKmkK','W5O9gHVcM8kUW5lcP8k4WQ8','WPFcIZ3dNCkd','W4O9cJNcNCkPW4G','WP7dRai6W6v2qLpcOmkx','n8o9WO5DW50tmSkLW55x','6yk85l275yQq5yU2WPn5W63cMq','Atr7W47cPCoQW6/cPcew','WQVcKtFdTIi','t2G1W5ig','iIP5WQVcQ8o0W6dcLsqx','qJFdImkZAmoKWPO','vWekWQD9s8oavG','W4ddPHqZkSkAw3KoW78','W57dLgNcVmkxWP3cHSkbWQi5','WQpdLt4+W4y','st3dMW','hSofWQiZWRG+WOldJXu3','ELOuWQZdQa','WQxdJSopEYGPBH12W7W','5lQW5BQj6zoj77Yf6l6l6z+R5B+A5y+x','WPGuE8kXg8k3W5nqb38','tSkeiJldHmk3WQ3cTs4','uq5qfCoG','WPCdWRy','WQZcK2vUaM09jLtcUW','WOBcGs3dHSkVW5a','f8ocW5HUcq','usddICk0iow+GowtJa','iCo8WO5cWPqbWQRcRJWs','WQaPzSoKW5es','WPBcQmkIdaK','WRJcO1BdQCoWW41PymkTda','WQFcVCovDZC','W7exkb7cVmkzW7RcG8oSW7W','WR4JWRLCBq','WO7cGwLO','44k55O6M56s+44g+6k235yse6i+S5y6kW5FdOa','nSoYWR1wcSomtCoYfSkD','WRSsW5BdISoJ','EJz7imocvSk8WPBdUuC','jGrn6k6A5RoX5AwL6lE277616k+E5Qkn','kSkccZ3dKITm','8k+2RCk0','mZNdJmkiaSorhZfwCG','hCkUWQS','W5OzCr3dOYK','W5W6rJpcLSkSW5lcPCk0WPC','lqrxcSohpa','WOhcNthdMXS','WOdcHCoXW5mp','ChChW4C8nKu','W69WFMiR','WQNcUmkTfZaDCa','WPtcOSosW6ez','WO0jWQTkWO8U','x8kLmJRdKW','WRJcUZddOais','44ga5O2i56Ea44cn6k2D5ys66i+35yYxW65D','6k6O5yM+6zM95OsP5z2hW6bHW6SUWOO','WPmdWQe','W658F1WD','ySo2WQXFW40KeG','fmocWRrYWQKBWOdcIrea','vIBdJSk4ACoNWORcMmov','yg8wW6i7iN3dMIy+','C8o4W5FdH1C','ESo5W4BdSe9kWOO','WPKhoNRcOmoZWPVcKmkHWQS','WPJcOcVdICkV','pSo2WPnuc8oXA8o9amk1','WRbGpbqJ','fSoLW7GbgGy1W4HeWPS','CmkwW59cW7vaCW','WPFcGaVdU8kOW5L7','sGZdL2OkW4BdQCoYWO5c','mWvWa8ovo8o1W5Tgkq','v0GrW4y2','W744aW','EcfqoCob','8yweGwNLHjBKVzJOJQdLVRVVVQu','ndTSW7hcPSo3','WP/cHXZdNmkOW5TW','WP3dNszXrLqflvpcRa','nSoGW719','W43cUfabW6dcVa','W4WesYldGG','hmozWRvUWRi+WOhcTayJ','smkOWRlcUmkJwvlcUfbK','W7dcQd/dUJy','mmoYW41jh8ohymomdCkD','W53dGxRcU8kh','WQ01fSk4W69KWROlW7jW','sJ8PWQjD','W4uJvahdPa','WOFcNqRdNCkiW5a','W4BdVKeeW7xcSW','W6JcMgmBW5G','W7FcSt7dVbW','WOBdOGyqmCkwE1mmW6y','FMldVJRdVG','WRhcNCkeeZC','W7NWO4EdjEw3LUISLEE9K+s4N+w9IEwpTCkr','uSohE3jhWRBcNx3dJqi','W4ygyqhdGY0Poa','WQKeW4VdHq','m8oKW7LOiSk0','WQ0xWPFdNSoOW7CdjYdcIW','W4RdVdeYmCkp','WRpcO8kUede0D8owW5O','bmkDWPBcQ8ke','dCoAW5KEoW','WONcLmoRW64g','sHqFWQvqqCow','xCkEmdxdRG','qY5ykSol','dSoSW6BdOmkCcHpdOKi2','WOtdQaimW6zU','WQ7cU8kJuqyZt8kuWOddQW','E8kFAhZcQmoUnCkEFSoc','WQ7dI8kgFM0Oks8SWOy','gCkeWR3cKCkwg8onW4XBbG','rrhdHvCx','WOqgimkObSo5WPKnb2W','WO7cPI/cRqbCWPRdKmodWPq','eSk4WRRdGLb3WPJcJComW7u','BxqsWRq6nvtdNqOJ','nSkpWOxdV3m','z8o0W6DSiSkaB8oWiG','rSoeBNPPWRtcKwZdQHG','eSkcWQK','WOeKWQVcTG','cXOQ','hmodWQe','nCoGWOPvWOqEWR/cPteq','p8oZWPn5WQdNMOBMJ6xKVR7NLQv8','Amo+ANhcSCoKFmk3p8ky','hSk7WQm','qmoSW77cLbyJW4NdN8oBWR8','5QYBW6ldVUw2MUAwJUAYTUw9U+wpGo+8Q+ISHW','cmkuWOBdG2W','W7T9r0a3','WOyDWQXjtCoysq','aSocBxFcNSkYWOZcGGJdUa','WOlcVmorEWG','AIqzWODI','u8k0WQNcUmkXaaNdVKXK','pCovWQ1xW4e','BhubW6CGivtdGa','mSoOWOfvbSonymohhCkj','oY5Pfmoq','WPGjWRi','qmkEpa','W5mSnINcKmk1W4VcJSk8WR4','W5hKUAdOS7xWUPsE','W681sYpdOq','smkqlZy','zmo+wx1fWPZdJsu','W6KZbSo4W6DY','WONcTSkQgW','WPlcScRdTW','ymowgNNcMZOEcKlcJa','WOKRW7RdHSoO','cCkNW7ZcLHaLW4VdNCovWRe','t1axW70m','zJ3dKSkLySoUWPFdK8o4W5i'
|
|||
|
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
|