jdpro/jd_opencard0819.js

7 lines
181 KiB
JavaScript
Raw Normal View History

2024-08-19 02:08:01 +00:00
/*
0 0 19 8 * jd_opencard0819.js
*/
const $ = new Env('8.19-8.23 养生要趁热 苦夏也能健康过');
var _0xodI='jsjiami.com.v7';const _0x4a2eee=_0x8464;function _0x501e(){const _0x21d5bb=(function(){return[...[_0xodI,'VLyjdfusPjyViDHaqmhiVE.UcVVPoPhmSl.XLvt7==','t3GGW4JcP8oAeHdcRCkCkbq','kSk2WQRdOCoi','W68jW6TqWRBdVmksomobdwa','WOuUpCkHyq','W5lcICogWOldPW','gMqUW4VcJ8oVgqtcHmoi','iCoyWOH8fW','WQbLWPlcRmkO','k8o+C8k7tG','WRhdSaZdOI8','W6/cMCoBWPJdJG','h14PwCkN','DmoDW4fjqW','dSodWPZcSd0','W5pcGSoWWO3dJ8oYWOyIFmkZ','5l2V6yoA6k2w5lURyCke','W7BdUd11W4S','tCk9C8osW5S','mmkWWO3dLSo5','W6nQW6DeuCoYWQq','y8odvCkY','WPSNjSkYsNZdQCkTW55eWQddKq','lX12ya','d8kkWORdLSoQW6uepIC','k196WOtcPq','BSomsmkN','WQ9gW5L9iq','wSkwWORdL8oKW6qijYyk','W77cP8oXWQVdHG','pN4zWQL2W5DY','BSorB8k8W5lcKq','W5X4C1NdOW','ECk1kWis','p8krWQNdJCk+','cqldKSo4amkCna','dCosWO7cPsW','W6xdLGBdP0G','xComW49/','hCoZW6hdJdtcQW','ASohuSkGW5FcK3m','cMpcOKGH','W5TMESoYwq','6BIp6k6U5lUw5OMt5AAoWQBcRowoS+MgVY5cqJNcPKVdT8o7k8oit0ddMwq5W5PDW70JgCorAepcMEAiJ+EzQ+ATUoAuPq','gSopWPj8dSkDk0PgkCkYWRW','kmobWOZcIbZcSWhcKa','WP1KW7SrWR4','W7y3WR9JW5fWWOVcNHlcQX7dOq','C8kWxmotW6W','qLaSW7/dIa','WPVcTmkjW5BdGW','5lQH6ikQ5yQZ5yIn6isg5BwD','W4GuWRhdR8o/fW','5lMR6lgRWQK','WOC/lmkSANZdQCkTW41oWRldL8kT','W5qkWQzbW4O','kmo0WOhcOJO','W7fjhmoAvq','fSkpWQFdKSoa','W6dcGWhdLhBdTCkyW4a','ehjco8kE','BCocW7rirq','WO4lpSkMqW','WRKyu8o6k30','sSkDEq','Ft/dKHG3W5a','W6/dJr55W63dS2OSn8kFzW','ybpcRahdTq','k8o+WQfucG','cmomW6pdJa4','e8oqW4VdRYi','W4lcIqRdKva','WQHmB8oFW5y','dmo6W7DZtMhdHa','xmkQwmopW4y','ASk0oJu7','nCoqWOFcGHdcVW','hueksmkIWRnn','srqeW4FdQG','W73dNqjIW7S','WOKZqKzDW5/cTXldICoKeMi','W7XoA1RdMa','tmowsSkRW5S','iCk2tCoHsG','WQGKACo+fa','W4xdN2tcJSoI','bxvgWOdcIJ8','g8kQWOhdS8kX','W6fzW6ymWOXKWQu','xmkAWRBcP2TQcfnBgvO+BCkT','WPRcQCkTW7q','pfGDxCkh','WP8aW7HCW6m','q8kCAa','i8owWOZcKG','lCogW6hdTsG','bCklWR7dQ8k+','BqJcJIVdKa','tNu/W5tcHCoybq','kSkgWRJdJmkT','u0mMW7hdJW','f2u+w8kp','ztldHYSF','jCkIWRdcM8oJ','5BsL5yQJ5yMa5yAy5lIo55AI5OQ7','CSoMWQxcIX3cIdK','W5pdRa/dIuG','W6WuW7vwWOxdTmkky8ohexK+amoC','WRGaAhNdLWxdGW','CbK5W4ZdKwn+','fuNcU1yfemoHW4q','WPxcP8kKnbS','c0CezSkL','WQJcJ8kCW4NdNW','zSobvCk6W4dcNwiJyaW','WRdcSSkuotNcMW','WRKlFxJdGbldG8kfW6BdHSoTCNpdPaxcGd8','W6xcLqtdOfNdPSkb','A3qHW6ZcGq','WRZcLmkAW47dRG','W5GuWR/dRCo3bW','B3SpW7ldKYhcHqbkeCkYW74q','56so5yISWRS','W4jWvmofWRe','WOFcV8kenrK','W7T7W6TE','W4jXsL7dTG','W40bvSoUWOm','WPhcQCkGW4tdKW','W4ZdRmkiW4NdTwaGha','F8kOD8ohW4a','BCkvaJG/','W6hdKZDeW7u','W7aOWRLbW4W','guv9dCkulhDZEJW','DHpcLIldMq','c2n8WRRcNt8Uv0niaq','W68tWRxdUSoy','p3ejWPW','WQ7cKCkWfsi','aSoMeSkijq','vSooW4PmrG','WRv4WRtcMCkRW6/dNWmFo0K','WObjW69yomo1leH3WPu','WRKfxSo5hg7dPHzugmowW7u','gSkbWPRdI8kM','WO0JW75yW7K','W6hdRYzPW6K','uSouW5zMFW','d8kwWORdKmo6W4mYocDs','hmoZW7ldLaNcJtFcP0mKyuK','pCkZWRBdQ8kg','lSoFWO3cGWC','WRbVvSooW6i','aKtcRhWqmCo+','WR0Kz8oEeW','W6BdIHLGW63cVrz3p8kgzt/dGcddQ8o7W6ZdVCkFW4xdPCofW41FW6hcQ33dHwRdHN5pCxG+qCkBsmoXWPlcTYxcKmovWRb9W4DHW7/dR8kRW4ldSb0sWObCW4ldRIOYWO3dJ8kyW68dmmopW6RdUCkeW4j1W4CdW5ZcKcjdrqOwk8oWW4tcJSoQWRRdSbxdMWvGWQ8jWORdOKGFxq','tSk9WO/dSSk/DLDsE8ooWOZcK2GHWOaYWRpdK3G2smkhpG','xxm7W5hcKSosfa3cT8kA','qIRdMZO0','vmkRwCoeW48','lv00WOTk','huvG','BmoVW7LOvq','rmkJbZ8+','xZpdJW','WOHeW69Ehmo5kurBWOldJq','WPeYCfbfW4i','W4dcGG3dSvm','cLSet8kIWRO','uCkUkmomcmoWwmkirtddICod','emo7W6RdLda','WRmSzmoKda','umo+W6H/AG','W7iMWRLLW5vuWPRcLcJcRKq','d2D8WOZcHG','BZyjW57dSW','W5ddKvhcLmoo','yCodW7LwFq','WOD+pSo/cG','jXnSBSkY','eSk0WRtcH8oEWQveoW','W7X1B2BdNJOgW4NdNufZ','WRSqFhZdLG','iLOhWOTu','BMGDW4/cIq','W5HZuG','lCokW5NdQY0','Ax8EW47dSa','eCkjWPFcHCoh','jfdcSLm0','WObmWP3cPCkz','amkcD8olWQG','yHpcKda','ACkMWQhcLuC','gSoiWOjwgCkgkW','uh8O','W6NdMrLaW6C','W7ddRrhdGfW','rCkuhZ4Ojdb3eIP7fLS','WRTLWRW','me3cNLS6','bwHSWORcLHu6','WQmEFCoMogBdUG','W5y3bmkFWR3cTwjnh37cGmkewq','m3eoWRn6W41yWPfnjq','W6OiW7H6WPBdQW','WOPHumoo','mCoIW6ZdTce','cSoMWRrrnq','dmkpWRhcRtm','yXZcKG','WOzPu8op','W6vPW4Xfvmo7','W4qQW4LBWOK','u8kgWOldISoOW4OzpMXDbMxdOmkOW75vkeu7WOddHCofWPBdLSo2WROMyW','rXFdHYmZ','cCojWOv6cSkqhfX9jSkR','WQxcSSktasZcRf3cVIeotcm','vXWnsSkfWR1EWRNdQrtdRx9ApmkHmmoO','WOfbuSojW4C','cmkVEmolva','WPKQq3xdGW','f3yIW4VdHhrOW5BcQSkdwN/cR01qbhhdKSoeD0NcIGm5
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