jdpro/jd_opencard0705.js

7 lines
164 KiB
JavaScript
Raw Normal View History

2024-07-04 23:26:02 +00:00
/*
0 0 5 7 * jd_opencard0621.js
*/
const $ = new Env('7.5-7.12 夏日特惠 大牌联合');
var _0xode='jsjiami.com.v7';const _0x5119f4=_0x2dfb;function _0x4272(){const _0x5ca4ef=(function(){return[...[_0xode,'tTkjsjiyapfmiAyN.LcFobImnd.HIHvEh7bEHnpH==','m8k6WPjhva','W6rpg8od','WRuiW4pcJSkLiSkSW6hcReyCW6yB','s8oIlmoBWRW','W6pdPCoLrCo0W4m','irBdT19BW5Wx','WRdcM8kNW6rk','feFcQ8kiWOK','wrNdOW','vGSqWOGN','WOPlW4ZdTMG','wNtcRCoVWQq','WR3dNColWR9r','WRJcU8ki','D2XMW6W','vSk1ACoTWQG','WQ4WW7FcTwi','5RwO5yQj5AEU54kN54UT77Ys6k2e56Qp5zcw5yww6k+f','W5BdQmkOzmkq','tvnn','hbZdP8oUW5G','WP9FW5NcMKW','BHyVWQCN','W6ddQSk/WQX+','WO7dT8k6jSkpqIi','DSoOW7OlW70','FKfvx8km','mLlcT8kLWPHQW6ddTNNcR3u','W7X8xmkVyxS','smoWWQy6','mZ9zcSkH','gmk0WP7dSvvnu8kgqSoVmNu1cWPoW79XxCkSW57cNmob','W6BdRSoVr8o4W6rJ','W43dQSoVB8oH','W5rrWPu','WOpdKCk+WQqN','WP1iWQSuW5G','eM3dUci/','x8ovWOSXFW','W63dJbTwCW','WOpdUCk/WROnrJvh','W4OTeHHMlG','W6DdxCkIzq','aNDcW5a','vLSLd8kv','wqhdMCkboa','wh4fkCkX','WPRdP2VcU30','W5vfWPjbW5RcTCoYWPldGmoS','WQldPYP6dG','xmoha2KtrCokWPPMoG','WRPAW53cIMC','oZZdPCoD','W5ldGSk2ySkl','mhTHph8','6i6q5B6y772m','zLO4bZi','E8o/hhC6','ymo4hCoGWQXsy3VcV8kSW4P9W7xcQ8kf','W4/dSCkdaw8','W64wr8oiWPG','WPRdSCk1WQu','F8oNW4eOW7S','W7pdQCkMBCkk','rmoLWQyREfOMWOT4W4efWORcS8kUyCo9icJcQHRcVLqolNdcRCkKEW','EYxdVSkxfq','W5ddG8kPsSkX','zmkTWRNdI2a','W6ddVmkfWOfo','wCkEWOldQvy','W4KSrmoeWPe','FfP1vSkE','W5VcIKTMiJ3dLCkwphrOWPJcPq','B2jPW4ldOW','W6ZdISkdy8kD','W5PwWO0','WOT2W6hdQ2O','bmoCbYuw','WP3dTSk9cSkCvbxdJgL4W48','W7FdRSkRWOLrs8obWOO','AcxdGSk6fa','WQfsW6pdPfC','W4VcMSkAm8oK','x1rK','W5VdQmkHiKGO','W4pcRCk0gmo+','W5JdK8k8f0S','cx7dGJ4j','WPbiW4ldSwddISkiBq','ltBcOr5YcmkcW6hdPCo5W5Lo','uWFdSmkDhePsW4JdM8kyWPqP','W6ddOSoHr8oJW58','WO7dV8kYWQixvs1bW5S0xW','W4veWQDWW5a','osVdPSoBW64','W4hdR03dH8of','kdZdUmoi','WPtcH1bNnwxcN8oBAvz0WPRdVr17wg0','zxpcPG','xSojg2q','WOyMW4FcIL8','ubJdSSk2lvK','W5bwi8oKW6G','qCobWR8pCG','ielcQ8k+WO4','WRrHW5tdKKi','pCkKWQTbFG','W4KtxCowWOC','qmk2WPJdQa','zCo/W7iHW70','leJdHs0','oKJdNYGGhq','ANC6kSkN','W7vsfmotW7xcJmoKW55ZBG','b2/dLayB','Ew8LoCk9WQNcPmot','WPJcMNfqiq','jaVdO29S','ubJdSG','rxi0jmkHWQ3cUmodvtbx','wNuLpmkLWQhcRCotxW','hf9QxCkTnConn8oykKVdR1FcOwFdTmoRyCo/smkgDCklqCkpWOa','DCoybha6','Fmk6zSozWQG','tvvBW6JdGW','rZiqWPyw','W7ZdGCkmFCkm','WP3dQCoIWRjo','WRvCW4NdM0u','C2HSW6RdLmoysKJdVG','W5SKBmolWQy','rv1EW5O','pKdcSmkVWOm','W63cN8kweSo1k8oMW58VreTJW7pcN8oZ','B8oRcmooWRW','mCotpGyG','hM0Ika','fComfsOFxCo0WP9Mjmo8CMNcNwxcTCohfexcI8o9aIlcT8oyWRe8AHy','B3H7W57dNConFq','W6tdOvldJmohAMPFD8o9WP4V','WPRdVCk6amkiwtJdHNG','W6KHhq','tKXpW5xdQSomW7vO','W4OmkGbX','W4bVWOHmW5a','oCkZeSoaW6Hhaa','W5/dHLZdKmoP','utiDWOigDhpdMue','W6/cISoLWPuy','B8kbWP7dPMK','yMHUW7BdGG','b0HfW5ddG8olWRS','W6ZcOSoKWPe4','Bw/dTLCkwmk2W7e','W6pcJmkqgCoNnmog','efb4igG','W45ei8olW6i','5y6N6iou5B6X5yYT6BQE5lU2WRNOT5NLHO4','WQxdLSoaWRPMWR8','WQRdQeVcUvu','W7NcSSojWQqvkCkPwK0','uXNdSmkelW','wCorpSoGWPm','x2KIomkhWRO','dNnRch1eyCk1WQ8','tSojhg4Uv8o6WP17lG','WRHVWP0rW7ZdQJeShq','WO/dVSkLWQmN','abVdU8oUW7q','z8kQACo6WRiLW6KQkCojWOldQSkWWOG','mCoeibqp','pvFcG8kIWQW','WOhdV8k7','iXJdVSo8W7a','eXpdVmkDoffiW4xcVCkCWP0VWR5ZWRFdTHeXW6xdMCoXWRFdS8ko','W4NcV8k4a8on','DvhcRCkIW5y','W7DqWPtdICoDFSoVW5q','arBdSLvBW50MWPazWR3dRG','WQBdHmkOWP4H','tbjNamkRWQBdRq9nd8oBWRVcTLFdO3X6W7hcL2VdUZmJWQhcHxXeFhRdUmoUdmoCWO09','x8o0WRePBHrzW41L','EMBdRuy','v1P3uG','WPZdPq16ga','W57dP1u','vmobdg4su8o0WPC','ostdGSoGW7y','eCoxabmU','WONdOmkZWQix','W7SOsSouWP0V','WPRcVKbPpG','WQ3dQIbyiq','twXoW6RdHG','W4L0WRNdR8oH','W7NdVCk6WO5Rs8ogWOFdMmkgW5O','zaKUWQCH','l1pdMdXJumoXtXlcHYiVB8keCcxcNq','W6RdR0/dGW','A8kXy8osWR0OW44Ila','W7jsgCojW4G','DSk+Dmo5WR42W683lCoa','W658WQJdRCoa','WRnRW67cV1TkFSkGW58Pa8ko','W6jTWPXuW4m','wL9mD8k7','WRH+WO0HW5u','5lMA5BQB6zk1772b','bSkMWOPlsvhdUuXfW7W+','idldQW','j8oUhmoGWR4g','tuSfbba','vSkQF8o9WP4','WOzWW7i','W6ThaCoeW6G','WPFdTCkWm8k8','W6yHW6JcONpcG8k+gstcUeeVWOtdMfddJhVcKmkMW5xdM8k5gmk2fYK','lwBdTImU','WRNdPSoLWQz4','5RwN5yIn5Aw+54cC54MH776S6k2J56UW5zgU5ysJ6kYY','qf5IqCkPjW','yx58W7hdGSoysvxdSCowhq','vSo0p8oUWO8','WOddMmk0emke','pfhcOCkIWQH/W4hdPLhcTxBcRa','WRWWW6JcQa','jUw1O+wgUUMcS+wfUoAYIa','W752xmkU','WOJcH0bNiwNcGSokFG','wr/dG8kXnq','kbldHmoJ
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