mirror of https://github.com/6dylan6/jdpro.git
12 lines
153 KiB
JavaScript
12 lines
153 KiB
JavaScript
|
/*
|
|||
|
一次性,手动执行
|
|||
|
自行运行,有水无水自测。
|
|||
|
|
|||
|
第一个账号助力作者 其他依次助力CK1
|
|||
|
注意:第一个CK黑号会全部助力所填写的助力码
|
|||
|
1 1 1 1 * jd_dplh1120.js
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env("大牌1120");
|
|||
|
function b6kS3z(){}var TXfM2m=Object['defineProperty'],PXsWS1I,O3OrNY,t8jQH1P,iEFF9h4,jStrD7W,Ze8cz5,_VbXpE,xivggJ,kYFOKk1,dEj9afj,Cm_jOnj,FIwn_mO,HFcUM5j,MnfyVO,Xncng8f,iyOUMwp,OQwtK8,uw_eX8,ZSV5VJm,DtHlZW;function EfW8kL(b6kS3z){return PXsWS1I[b6kS3z<0x4e?b6kS3z-0x3a:b6kS3z-0x4f]}PXsWS1I=lvHUSD();function O_OZpm(b6kS3z,TXfM2m){var t8jQH1P=QPIiOR(b6kS3z=>{return PXsWS1I[b6kS3z<0x324?b6kS3z<0x324?b6kS3z-0x52:b6kS3z+0x1a:b6kS3z-0x24]},0x1);O3OrNY(b6kS3z,t8jQH1P(0xb8),{value:TXfM2m,configurable:EfW8kL(0x147)});return b6kS3z}b6kS3z(O3OrNY=Object.defineProperty,t8jQH1P=QPIiOR((b6kS3z,TXfM2m)=>{return TXfM2m(b6kS3z())},0x2)(cFYZJ7,htyCYfg));var BVpEKQE=[],vIXIkdH=[q1JsmJq(EfW8kL(0xbe)),q1JsmJq(EfW8kL(0xbd)),q1JsmJq(EfW8kL(0xbf)),q1JsmJq(EfW8kL(0xba)),q1JsmJq(EfW8kL(0xbb)),q1JsmJq(EfW8kL(0xb6)),q1JsmJq(EfW8kL(0xca)),q1JsmJq(EfW8kL(0xa2)),q1JsmJq(EfW8kL(0xeb)),q1JsmJq(EfW8kL(0xf3)),q1JsmJq(EfW8kL(0xff)),q1JsmJq(EfW8kL(0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q1JsmJq(EfW8kL(0xfc)),q1JsmJq(EfW8kL(0x111)),q1JsmJq(EfW8kL(0x100)),q1JsmJq(EfW8kL(0xd8)),q1JsmJq(EfW8kL(0x113)),q1JsmJq(EfW8kL(0x114)),q1JsmJq(EfW8kL(0x11a)),q1JsmJq(EfW8kL(0xfd)),q1JsmJq(EfW8kL(0xed)),q1JsmJq(EfW8kL(0x11c)),q1JsmJq(EfW8kL(0x11d)),q1JsmJq(EfW8kL(0x11e)),q1JsmJq(EfW8kL(0x123)),q1JsmJq(EfW8kL(0x5a)),q1JsmJq(EfW8kL(0x59)),q1JsmJq(EfW8kL(0xdf)),q1JsmJq(EfW8kL(0x122)),q1JsmJq(EfW8kL(0x124)),q1JsmJq(EfW8kL(0xcb)),q1JsmJq(EfW8kL(0x125)),q1JsmJq(EfW8kL(0x121)),q1JsmJq(EfW8kL(0x126)),q1JsmJq(EfW8kL(0x127)),q1JsmJq(EfW8kL(0x56)),q1JsmJq(EfW8kL(0x129)),q1JsmJq(EfW8kL(0x12a)),q1JsmJq(EfW8kL(0x128)),q1JsmJq(EfW8kL(0x12b)),EfW8kL(0x8d),q1JsmJq(EfW8kL(0x12c)),q1JsmJq(EfW8kL(0x12e)),q1JsmJq(EfW8kL(0xa9)),'9T$|0*3=l','D!$|F',EfW8kL(0x65),q1JsmJq(EfW8kL(0x75)),q1JsmJq(EfW8kL(0x5b)),q1JsmJq(EfW8kL(0x130)),q1JsmJq(EfW8kL(0x132)),q1JsmJq(EfW8kL(0x68)),q1JsmJq(EfW8kL(0x50)),q1JsmJq(EfW8kL(0x133)),q1JsmJq(EfW8kL(0x134)),q1JsmJq(EfW8kL(0x131)),q1JsmJq(EfW8kL(0x64)),q1JsmJq(EfW8kL(0x50)),q1JsmJq(EfW8kL(0x136)),q1JsmJq(EfW8kL(0x137)),q1JsmJq(EfW8kL(0x88)),q1JsmJq(EfW8kL(0x51)),q1JsmJq(EfW8kL(0x139)),q1JsmJq(EfW8kL(0x76)),q1JsmJq(EfW8kL(0x51)),q1JsmJq(EfW8kL(0xf5)),q1JsmJq(EfW8kL(0xfa)),q1JsmJq(EfW8kL(0x51)),q1JsmJq(EfW8kL(0x13a)),q1JsmJq(EfW8kL(0x13b)),q1JsmJq(EfW8kL(0x69)),q1JsmJq(EfW8kL(0x51)),q1JsmJq(EfW8kL(0x13c)),q1JsmJq(EfW8kL(0x54)),q1JsmJq(EfW8kL(0x13d)),q1JsmJq(EfW8kL(0xc6)),q1JsmJq(EfW8kL(0x6b)),q1JsmJq(EfW8kL(0x79)),q1JsmJq(EfW8kL(0xc5)),q1JsmJq(EfW8kL(0x5e)),q1JsmJq(EfW8kL(0x13f)),q1JsmJq(EfW8kL(0x52)),q1JsmJq(EfW8kL(0x116)),q1JsmJq(EfW8kL(0x53)),q1JsmJq(EfW8kL(0xee)),q1JsmJq(EfW8kL(0x141)),q1JsmJq(EfW8kL(0x142)),q1JsmJq(EfW8kL(0x140)),q1JsmJq(EfW8kL(0xdb)),q1JsmJq(EfW8kL(0xf9)),q1JsmJq(EfW8kL(0x8e)),'4=r.X|b7+t,{.iOH#<','W!^f"a(+[z`w5_|1rSa',q1JsmJq(EfW8kL(0xf1)),q1JsmJq(EfW8kL(0x143)),q1JsmJq(EfW8kL(0x144)),q1JsmJq(EfW8kL(0x145)),q1JsmJq(EfW8kL(0x146)),q1JsmJq(EfW8kL(0xc4)),q1JsmJq(EfW8kL(0x51)),'X6b4|Y%Zl""zb6MNq<',q1JsmJq(EfW8kL(0x6e)),q1JsmJq(EfW8kL(0x62)),'R9rc|Ad[%$<aQnZfZ!^c',q1JsmJq(EfW8kL(0x52)),q1JsmJq(EfW8kL(0x55)),q1JsmJq(EfW8kL(0x5
|
|||
|
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
|