KR/jd_gacj.js

13 lines
28 KiB
JavaScript
Raw Normal View History

2023-08-11 23:07:55 +08:00
/*
国安抽奖(一次性)
cron:15 0 12-13 8 *
============Quantumultx===============
[task_local]
#国安抽奖
15 0 12-13 8 * jd_gacj.js, tag=国安抽奖, enabled=true
*/
2023-08-11 23:08:39 +08:00
const $ = new Env('国安抽奖一次性');
2023-08-11 23:07:55 +08:00
var version_='jsjiami.com.v7';function Iii11l(){const iii1ii=(function(){return[version_,'JrbjhLsDTbjdliCaCmViTR.fDcwxyogmXJ.dv7Ht==','W4SnwqjJ','BCksxcbDFGZcMSkCbtThh3CLEwfHcCo4nSocwCo1zCo9rCkzW6fJW53cVIzHW6hcSbHHfYCfg8oW','WOPNmanTWOBdMW','B8ouigzP','iCoLW4G','WQG1eCksW4u','WPVcO8kpCCkxi2FcO8oHyee7ExGFkchdKmonFeBdSqVcRX0UW45CW508WOjAW4ddV8ktBLVcS8kJW67dNGFdKq','WOGibSkCDW','CH8Hc8oy','5yYL5lQ55OUV5AAW','smo6dCo5W4C','p8oxW4lcHuZcO8o7mexdHmo5WRaB','WQFcQmkH','WPZdG8oormo3','nEIVT+MgGoAwOUEzIUw+TEImQowpT8kEWPNcVHG2E2ldU8oNW6jjW48lA8opchDBzKrsqSkSmu8QW7hdVhaFWQFcGmotzmoVpCktcmkeW5qqAmkjWPG','p1ldT0dcMJj/vW','tIf+','CSkour1V','i8onWPJdLZRdU8o1fMldOSk9WRi','tdO1A8oZe8oWaa','5lUH5lQw6lAj5y+y','ndPFW7O','wwddI8ohtW','tSoJDui9W7ZcS8kc','bcnyW7XC','pmoeWPS','lSoLW4Tk','iSoeWPBdMSkDWRvtW5RcTcNcJCkXwq','o8keWPC','W4akAGD6','A8khrtu','EfveW7irWO/dJG','a1NdOSkwCG','WO5IW7ldTSod','W4GZW6FdS2K','qq3dUa','W71FwSk0WPfUbbC','iSocWPBdMCkCWR89W6/cLa/cUSkh','W7NdPH/dGmoQF3VdVKmFfmks','zmktW5FcRSoj','E1rvW5GuWOK','44cv5OY256ss44gb6k+z5ysm6i6u5y2J5lMs5lM86lw85y+E5lIXEwr8BIypWP3NMQ/MJyJKVytNLRHkW7WiWPpdJgxNMlFKUzVKUztNRBVLIRtOJB/LJ6a','W7tdVSolhSkOWQpdNCkYqq','W7tdUre','xSo4y04xW74','aSkX5Awz6lAeWOtcKEwpVowAT8koWPq','WOSrkCkZEa','l8oczmkF','WQiaaCkwWQT7iYtdQa','yIaZA8kp','mKhcImknW7VcNL8','FCk6ACkbja','tMHiW7/dRa','mSkfWOy','WQXHWR/cICko','DuqsvNtcOSokzG','lamdWOrfW5VcLdNdR25QWPVdHW','saZdQq','EUIVP+MeQUAvI+EAKEw/N+InMUwpPIRdS8oOWO7dLCkB','z2LFW6f1i8k5WOC','e3/cG8kE','d8oWW4T7kW','hh/cGa','sSkUW6PrwSo+a8ktWRnrW5S0qbNcUmosdCkLkY8TW4VcKHHxd8oUW7m6pLWJBhfkAKzpbGjWWRhdMtJdO25Xh8kjmCkZxhW4WO3dUZ13EGT6W6BcT8kvW5SMW57dQ8kBcCkHFt3cHSo/','j8kmdCkiWO4','WOdcN8kzWRFcNd7cV8oO','pr/cVNq','WQNcPdFcNCojj3ddJG','EdyL','WOijbSkC','Bv9yW5m+WOpdKJBdULS','DSkswJLai0RdK8kh','WROPiCko','wsKDemoBW47cISoUdq'].concat((function(){return['WOpcSmkDW50GWO3dGCoui8kjF8kKWPGImbtcUSotFG/dTmoesKv9jCkGBIRcGSocW54Uzgu','C8ktlmkGWQWNlaLTs8k8W5DXhgi6dW16Ch1qWP3dPCkSDCkGf8o2CYpdKveCWOZdQaldOuBdNqZdGYr4o8k0W4FcJHfTW77dVuePW4FdUWu/WOb6lJWXWOq7W4ZdIGfAWQ/dIeRcGw4+W5LHBaXyWRlcVu1DW43cKXxcLSorW4pdVCkxW6bBW6lcP8kDkSklE2a2W4C9C8kNWPFcILFdPSoGqMuVemktWRvrW5rCWOlcQHq3sCoiW5tcMciUWR9BkCkZW4BdVNPkW51sW63cM8o6xvddJ8k8dSk7lq7cTcWAyHddMSoZWQRcG3vhW4BdTxrdWPb/ztxcKmk9W64zWOz+W5FcQqRcRbKvWRVcMvxdQ8k9gq','FhrF','h8oAWRidoG','WP5DWR3cS8ki','WP/dGSkOWRDZC8oa','WQq1mCknW6efCtS','g8kMWQWshSk/ymoDWRTH','c2KZySop','tgLmW4hdHSoBW448','W43dRSkIWPi','h244ECoh','WOf7jq','CSoJW6LtxCoWamkZWQm','W7ZdTWlcJW','WQ9FWOxcUCkWumoAhmk8','W5bzvSk0WRzQiZy','W77dRSotfmk5WPq','zIK7mmoy','xCoCa8olW6m','44gC5OYL56wJ44oF6kY45ysB6i+Y5y6W5lQV5lIE6lE+5yYD5lIccN0WfIH6g+EBRUAoGos+H+EwHCknD8kNsmoqFEEBG+s4Hos5SoESMEwkNUImS+woVq','WOdcSSkvzCkQDJZdPCoLFa','uweGDW','W7xcVCkZWP3cUGJcG8oaW57dIColWQm9bCkUWQTKWPvZpSkTEmkvW4zFa8oLW7FcUCoMWQ1cycvoWRNdK8offY3dU8ofW4DcW5WojZrqW4XjdCoyvCo+WQhdSCkTW7yLxutcRCkgW6ddNuGsD1qhfYNcHKFdOCopW6S4dcjlWPZcL8opswdcVCoEtmkSrmo6rmkLfGdcJSoeW5iBaSo/zXj0i8kWWQj/pmkpc1a3WQq2rYtdR0zJnHrmW7L3mgRdHmkcrXFcVh97l1ddGSkPW5VcPSkrm8onCwBdGMixWRe','DSkkW43cNmkgWQWdW5RcSsZcLmkrwSkrW48sfG','W6DZW68CWR0','twuGC1JcJSolsmo5WPtcUq','dquyy8omwSktW6XXl8o0','wCoaz2OS','W7VdRCo+W4ddQqVcP8oHW5pdKSoG','nfdcOCkkW5m','WRvyWRNcV8k6uG','qd19uG','WQLhyXDp','W6CUsq','mMldImk6vCkI','oCoyWRa8dCkXWRq','BLTeW4qv','eNSpFSoofW','tSocy2u9','x8oTW6TD','iSomWPRdLZJdTCkGpK/dImkVWO4o','WQL9W4m','ySkmW5RcIghcQ8o9pvu','W7PKW4O4WPFdP8oayCkgW5HtWRj3e1WmomofW591W7qmW5FcP8k5W4T+gCoGjCkBkmoXELinWR4tm8oZWRrkFa','xG4Dq8oz','vmoKW6rrzW','nCkeWQyTW5u','rI0m','W6vXW5C8','xg8JFftcG8oRtSoM','jhCdqCkvDSkiWRG','j3X3aCoUn8oBWORdQxdcVvZcQq','WQtcPCkAtCka','W6L9tmkzWOG','vSkiW7lcS24','c2FcL8k1W7G','WONcV8owsCkfDZVcOCoasXSKAIq','gCk8s1COW6JcRSkW','WRTLWPtcImkZ','wXinwCkC','W4tdV8oCa8kuWOhdN8kZ','WQ05jSkcW44qFq','rdDTuYiMbq','WP8Vn8kuW6efCtS','y8kzW45MxmoRWObHuCkNW77cSq','emkqg05PnJTgxSkUa8ku','WQiOjSkwW5XEm3fyW5bpwh80W6hdRSkRdrTh','44cR5OYn56sl44g4hmkyxtm+cEw3JEwLLoAuMq','qCkEymka','W71xvmk6','W7DxtCk+','fMKX','d8kbWQKbW4W','W57dImkTWQPn','xslcGq'].concat((function(){return['ENvgW5JdOCoF','WRrFWOpcOmkTdCkCvCk1W4aLW7TsB30DfwKOWQRcUmoHEmoThSoTWOHvAmooyNrylJRcV8k2WOLdpL
// prettier-ignore
function Env(t,e){"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0);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((e,i)=>{s.call(this,t,(t,s,r)=>{t?i(t):e(s)})})}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.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.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const i=this.getdata(t);if(i)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(e=>{this.get({url:t},(t,s,i)=>e(i))})}runScript(t,e){return new Promise(s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[o,h]=i.split("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(t,e,i)=>s(i))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):i?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of i)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,r]=/^@(.*?)\.(.*?)$/.exec(e),o=this.getval(i),h=i?"null"===o?null:o||"{}":"{}";try{const e=JSON.parse(h);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),i)}catch(e){const o={};this.lodash_set(o,r,t),s=this.setval(JSON.stringify(o),i)}}else s=this.setval(t,e);return s}getval(t){return this.isSurge()||this.isLoon()?$persistentStore.read(t):this.isQuanX()?$prefs.valueForKey(t):this.isNode()?(this.data=this.loaddata(),this.data[t]):this.data&&this.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"])