jdpro/jd_opencard0930.js

7 lines
164 KiB
JavaScript
Raw Normal View History

2024-09-29 22:45:33 +00:00
/*
0 0 30 9 * jd_opencard0930.js
*/
const $ = new Env('9.30-10.7 国潮奇遇 怡悦东方');
function oLYANzu(){}var GxUmGV=Object['defineProperty'],R_vOig,BlC7so,HSfuC6,G5D61uS,gXjAOv3,Ci3Xap,deQcPz,klk_83,yn8_I0,MV4UJR,ierTz3,hlNW9tC,FZ3J69,ZdBQpE,lFmfie,ChNGRz,yZlsN_k,CE4C0I_,su9pEx,LabGORV,whrIuR,R2N3Z3C,zBItfb,mhS526r,Y1mFNj;function I6FGbo(oLYANzu){return R_vOig[oLYANzu<-0x22?oLYANzu-0x41:oLYANzu<-0x22?oLYANzu+0x38:oLYANzu+0x21]}R_vOig=KoSUgV();function PkxfxaU(oLYANzu,GxUmGV){return BlC7so(oLYANzu,I6FGbo(0xf),{value:GxUmGV,configurable:!0x0})}oLYANzu(BlC7so=Object.defineProperty,HSfuC6=QujrHa((oLYANzu,GxUmGV)=>{return GxUmGV(oLYANzu())},0x2)(f74yHkx,GjPgDY));var MBKFkOQ=[],HS01ma3=[KxClVn(I6FGbo(0x15)),KxClVn(0x1),KxClVn(0x2),KxClVn(0x3),'djwNF|ScN',KxClVn(I6FGbo(0x1f)),'|#<iUv3BN',KxClVn(0x5),KxClVn(0x6),KxClVn(0x7),KxClVn(0x8),KxClVn(I6FGbo(-0x20)),'|;%YYR9',KxClVn(I6FGbo(0x4f)),KxClVn(0xb),'LL@>U1Hw|2C<^]lb.v',KxClVn(I6FGbo(0x17)),'+bx|',KxClVn(0xd),KxClVn(0xe),KxClVn(I6FGbo(0x38)),KxClVn(0x10),'KL,|',KxClVn(I6FGbo(0x19)),I6FGbo(-0x21),'=t~|k',KxClVn(0x12),KxClVn(0x13),KxClVn(0x14),KxClVn(0x15),KxClVn(0x16),KxClVn(I6FGbo(0x3a)),KxClVn(0x18),KxClVn(0x19),I6FGbo(-0x21),KxClVn(I6FGbo(0x3d)),I6FGbo(-0x21),'=t~|k',KxClVn(0xe),'KL,|','>L~|k',KxClVn(0x1b),KxClVn(I6FGbo(0xc8)),KxClVn(I6FGbo(0x3e)),KxClVn(0x1e),KxClVn(I6FGbo(0x2f)),KxClVn(0x20),KxClVn(0x21),KxClVn(0x22),'x[,|e)Ff]6aOc]GeSdg7FYeJyHS{Dc]($b,/^/{}DKW7B:!xU3ZYU1XfA55h8cLBY[d`LSeQYQn{Ias(m[e"M<q#{KksIa/dqOA{mxo!#ef_`~5KY[0iN=|KI`,n>NDBO%7;xxeNo0',KxClVn(0x23),KxClVn(0x24),KxClVn(0x25),KxClVn(0x26),KxClVn(0x27),KxClVn(I6FGbo(0x84)),KxClVn(I6FGbo(0x89)),KxClVn(I6FGbo(0x86)),KxClVn(0x2b),KxClVn(0x2c),KxClVn(0x2d),KxClVn(I6FGbo(0x1a)),KxClVn(I6FGbo(0x9)),KxClVn(0x30),KxClVn(I6FGbo(0x47)),KxClVn(I6FGbo(-0x1f)),'3P~|]',KxClVn(0x33),KxClVn(I6FGbo(0x1b)),KxClVn(I6FGbo(-0x1c)),'KL,|+<a6!',KxClVn(I6FGbo(0x103)),KxClVn(I6FGbo(0xb)),KxClVn(I6FGbo(0x1c)),KxClVn(I6FGbo(0x10a)),KxClVn(0x39),KxClVn(I6FGbo(0x7)),KxClVn(0x3b),KxClVn(I6FGbo(-0x20)),KxClVn(I6FGbo(-0x1f)),KxClVn(I6FGbo(0x6e)),KxClVn(I6FGbo(0x48)),KxClVn(I6FGbo(0x49)),KxClVn(0x3f),KxClVn(0x40),'+w2[aCrWz3}_caR)[h*Wz:ocd1YA[r22~~}aEjhxMf~";|#+]t31?S$s[fzjU1Js64I4*gtOrJ2o}gI)l?02(>%_rir5s5?Db#&oDRcG0','x[,|e)Ff]6QEiRkaQb.0[YElA5&D5LSmpQR/s1BoPqkX]~lB`]j`Z',KxClVn(I6FGbo(0x4b)),KxClVn(0x12),KxClVn(I6FGbo(0x37)),KxClVn(0x43),KxClVn(0x44),KxClVn(0x45),KxClVn(0x46),KxClVn(0x47),KxClVn(0x48),KxClVn(0x49),KxClVn(0x4a),KxClVn(I6FGbo(-0x1e)),KxClVn(0x4b),KxClVn(0x4c),'x[,|e)Ff]6QEiRkaQb.0[YElA5&D5LSmpQR/s1BoPqkX]~lB`]j`Z',KxClVn(0x4d),KxClVn(I6FGbo(0x5d)),KxClVn(I6FGbo(-0x7)),'IC|=?iA^Kbvv;|?{G)XBaC8xRnr7N5noG{qW}LiX|6^5ww',KxClVn(I6FGbo(-0x17)),KxClVn(0x50),KxClVn(0x51),KxClVn(0x52),KxClVn(I6FGbo(0x32)),KxClVn(I6FGbo(-0x1e)),KxClVn(0x40),KxClVn(0x3f),KxClVn(I6FGbo(-0x8)),KxClVn(I6FGbo(0x189)),KxClVn(0x55),KxClVn(0x56),KxClVn(0x57),KxClVn(I6FGbo(0x30)),KxClVn(0x59),KxClVn(I6FGbo(0x63)),KxClVn(I6FGbo(0x24)),'R|#A_e>Gp$rS@pO_ouPX>9_J,*o{B@p}Zn#Q4Qa',KxClVn(I6FGbo(-0x1d)),'f(smaCSdQ5[E|FV[(#xm(',KxClVn(0x5d),KxClVn(0x5e),KxClVn(0x5f),KxClVn(I6FGbo(-0x14)),KxClVn(0x4f),KxClVn(I6FGbo(-0x1d)),KxClVn(0x61),KxClVn(0x12),';WjO%)&Z&~;{1ILKs]`|NmdceGwm.2HTVyx*K`Mrgbf5B7WTWIE)Kbgc!n(RxX?dAa',I6FGbo(-0x16),KxClVn(0x5c),KxClVn(0x62),KxClVn(I6FGbo(-0x15)),KxClVn(0x64),KxClVn(0x65),KxClVn(0x66),'KLuY|)Hw',KxClVn(I6FGbo(0x4a)),'Y;l9u@o+iH/Hm{>M/|<',KxClVn(I6FGbo(-0x13)),KxClVn(0x69),KxClVn(0x6a),KxClVn(0x12),KxClVn(0x6b),'xt+|',KxClVn(I6FGbo(-0x1d)),KxClVn(0x6c),KxClVn(I6FGbo(-0x18)),KxClVn(0x5c),KxClVn(I6FGbo(0x34)),KxClVn(0x6f),KxClVn(I6FGbo(0x177)),KxClVn(0x71),'$`d"4|;JUJ+N^',KxClVn(I6FGbo(-0x1d)),'IC}aKS%OMfWi)tkUPy/M9gXO|6}',KxClVn(0x4f),KxClVn(0x72),KxClVn(I6FGbo(-0x1c)),KxClVn(0x73),KxClVn(I6FGbo(-0x1b)),KxClVn(0x50),KxClVn(I6FGbo(0x29)),KxClVn(0x5c),KxClVn(I6FGbo(0x6a)),KxClVn(0x77),KxClVn(I6FGbo(0x27)),KxClVn(0x79),KxClVn(0x7a),KxClVn(I6FGbo(-0x3)),KxClVn(0x7c),KxClVn(I6FGbo(0x70)),KxClVn(0x7e),KxClVn(0x7f),I6FGbo(-0x1a),KxClVn(0x80),KxClVn(I6FGbo(-0x1b)),KxClVn(0x72),I6FGbo(-0x1a),KxClVn(I6FGbo(0x13)),KxClVn(I6FGbo(0x12)),KxClVn(0x82),KxClVn(0x83),KxClVn(I6FGbo(0x72)),KxClVn(0x4f),KxClVn(I6FGbo(-0x19)),KxClVn(I6FGbo(0x
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