KR/jd_opencardL331.js

25 lines
119 KiB
JavaScript
Raw Normal View History

2023-09-04 00:43:24 +08:00
/*
9.4-9.11 感恩有你 99聚惠
开卡脚本,一次性脚本
//export jd_opencard_blacklist="" // 黑名单 用&隔开 pin值
//export JD_LZ_OPENCARD="false" //关闭开卡相关活动运行
//export opencard_draw="3" //抽奖次数 3
入口[ 9.4-9.11 感恩有你 99聚惠 ]
请求太频繁会被黑ip
请更换IP后再执行脚本
cron:11 11 11 11 *
============Quantumultx===============
[task_local]
#9.4-9.11 感恩有你 99聚惠
11 11 11 11 * jd_opencardL331.js, tag=9.4-9.11 感恩有你 99聚惠, enabled=true
*/
const $ = new Env('9.4-9.11 感恩有你 99聚惠')
2023-09-04 00:56:03 +08:00
var version_='jsjiami.com.v7';function lll11iI(){const I1lilIII=(function(){return['version_','bBkjqHGsSjViEagHImdPKiHe.CLOcfyEoXmrS.v7==','WRHsW4NdUCo0WO3dU8ogWPi','W6ebW5W','ucexqru','ESofW7q/ac7cTrlcMSkmWPxcGsW','WRRdPCkeDqpdPvhdLrOjWOBdS8omWQJcTvyCW6S','W73dRSkzpmk3','e2ddN8kzW44','EWNcHIVLHytKVyBOJ6tLVBtVVyC','W7ldOSoHkam','zttdVSoSxG','WO0qWRKjWRW','tH82sXa','WPldOCkFqcC','W4qkW63cU0K','WOXLW7aeWPS','W6zlWQDJWQi','W7TPpfm4','cLxdQ2be','W6ZcN8k1W5ZdUG','lSogW6u/hX7cJW3cISoFWQa','yrlcHmoMW4C','f8o5W6GxoW','W6lcGCk0W5VdKG','iY8EWQ/dIbi','DWtdT8o1W6i','l8oaW6KIca','ymoBW6hdImo0','tJJdHddcSa','W5BdQCozW47dMG','W4/dS8kBW51ZWRaaWPTQqCoRW7VcGCo1','W5BdKCk4W5e','5REP5yIO57Ia5P2f','nmoWW7rBW6ZcHM7dRCoVhSk+bSo6W71wghddNa3dHab9hq','4PY9C+wfLEwKGUwWVEE5HtjXW4JcVa','raqxWORdJW','WR/dPCkrsbK','WQNdV8kEnSoLWR0','W7WNW6/cPg8','WQVdR8kczY8','W6FcOSkaeqRdQ8o1','W4lcTSk8WRhcNq','W4dWRyoM','mqOLWRZdGa','W7ZdHmo3kItcLIL/W4FcUMC','W6ylW4lcHG','kuxdGwP1','W4tcV8k+WRdcMq','bX89WO7dQa','jhRdOflcL8oTW6FcI8oyWQC','W7xcNCkJsca','EbvHg11hW73dSCosAwxdO2W','W74lW5xcKvFdSCkZtCkhka','yd3dKCo/mHNcJ8o5mG','WR5FW4ldRSo3W5u','WPBdMqlcJCox','mM3dOKRcT8oSW4FcI8oFWQ3dNG','WRRdOComzYldNmoNWR/dSwm','W7ONW40fiG','raxdJYtcJG','zdrtph8','ysJdGINcQq','sCoZtSo7W6moW6xcOCkCWPm2','WRRdVCkeo8o8WRNcQf3dGmkD','WORdN8oE','WP9YW4FdSCoH','WOVdT8kE','5Rs/5yI45AAr54oh54Q+77Y06kY856Qj5zgl5yEZ6kY+','WOBdT8kqDre','6iYL5yYqWOhcNCkdWQNcJwNdVEwMQUI3J++9HW','WPRdTmkemmkp','W4JdTmkNW4v9WQm','44cT5OUR5lQk','W4tdQSoVW5RcGW','WQtdTCkEAWpdRgJdLb4VWOddKSo3WQO','kwBdPudcVCohW6i','W5jqWOzgWQy','WPddVCogW6RdLdddULRcNmoXWQRcJ2D7wGDCWQ1jWOZdRmoFvw3dShK','oLtdJgjxnsFcMHr6ya','eNxdRSk9WQNdI3JcKIzDk8kOW7dcOW','W7JdTCoZdWe','qCoXvSorW6eoW7JcLSkoWRmNgHRcGdT+Ea','W6RcJCkIW5ZdPG','W4ZdRSorW5tcHa4pW7rK','vqtdJCo5W64','zCoZW4/dHCoouCk/W70aemkp','W4pdRmoiW54','brHyd8ooqmk2zeVdRKOL','amkdW5a','ohVdISk3WPe','gJJdJSoLEI8','iwVdTuZcS8oHW7dcNCoJWQC','qGuNWR7dNuZdNsXzESkxWQddT8kv','kvBdLM9omq','f0xdTwXT','e3JdSSk4WQtdNa','W57dUCoeW4/cGYG5W7jKDq','5BAo57QG5yIJ5yQF6l675lIQ5zcSkq','WRxdR8keyaBdQuy','CWlcSXShWPxcS8k3BW','WRXzWONdHcRdTmknyCkRh0e','WQNdNCkCemoV','W4FdHmk1W5BdNG','rWuYWOpdHG','D8o4W5tdNmozw8k/W60Zf8kFzCkPW7a','5Q2bcspLTj/MLzxMS7JLVQ/LJkJVViFOR6JMMidMJQ3dJmkH5zoE5ywe5OMk6kck6isn5P6qvq','8lcySmou5Q+jE8kJ5BAg6kgz6zMm5yIE776t6k215PI85O+ZWR0F5zop5ys55OUY6koD6iwq5P+aaG','Db3dJ8okdW','mYvpiSo0','WPZdJmksrau','AXldGCoXeW','8yw8UmoZ5Ocf5zwr6i+Q5B+d','lhNdPwNcKq','DraTEX8','bq0GWO3dLG','W4y9WOtcRrm','W4RcMr4OW4O','WOmHWRuBWQjJW43cNmkNW4bvW61Q','dMldMw/cLa','vcueWRxdTW','WRBdSHVcLCoiWRW','iZ5RiSoQ','W6FdQNTDAgO6EtD5WOC','WPVdHmkGaa','W5JdM8k+','44gq5lQK5lQD6lsd5yYY','c3ldQmkJWP7dJwlcNZvgfSk1','d0xdLmkcW4nv','pSkOW7fyaa','W5P/ah04','dSkvW6PNj8k4','WQ5iW44xWQC','lGhdSfa1','W6VdUMG','FX/dGYZcIa','W6WkW5/cTNJdRmkZ','WQVdV8kciCoV','zbddI8oYqW','W4nlWOndW68jWOXjvsldQurIWQJdGSkwuq','44kS6lA95yYd','W5aHW6ePhq','v8okW6/dV8o7','W44KW6CjmG','ah7dTCkKWR7dGxJcGHLq','WOtdGCk2bSkBodOFW5i0txy','WRtdISkeBt8','E8owW4fKW5a','zYpcNCoSW7xcQKhcJsNcPa','W5NcKSkvpa4','W5ddIgv1tG','W4/cQmkVW6pdRmkbgvdcVW','W6tdPw5xDw8NCWO','W5ddLCkTW54','rs7dQZhcPW0','uXldHmoica','omorW6CNpHNcOXdcMG','W5pdKCkTW6ZdG8obtdZdH8oEW4ldJ8k6W4lcK8o+wCky','W6FdQNTDAgO6EtD5','kSk/W4JdICowxmkfW6SXf8knzq','WPddTmkbb8oq','W4ldVCoaW5xcOd4uW7LLySkXuq','kdi5WPpdOG','W49sWRnRWPu','W7NdHSo3iG','aXa6WOpcIa','D8o1W5JdNSoDtmkBW60R','zCoNwSoWW7y','fmksW4v8nSkUvh0KEa','a2FdKhBcVW','W4ZdSCoaW7tdKINdPLRdHCoYWRhcN0bC','W7iBW6Kejq4','aLNdKCkqW7q','wZVcMCoWW5pcIfZcNa7cVI/cUa','W7ZdHmo3lcdcTJnGW6e','Cd/dGmo0W6ZcH8khcYRdQG','WQJdVCkFimoVW6i','tWJcGtaX','W6RcSSkvoru','hYRdO2a','k8o0W5ldGSoFqSkJW61QfmkeDCkoW5FdIZxdG8kBy1/dGXeCuComW7VcGNDDDCo9drOcsG','W4FdGCk6W5ZdJ8oFtW','WQxdTaVcHCoxWRT8W4JdTCkQWOlcUxqBWRi','W7emW7WxcXfH','bZZdTa','l1JdQ39t','5BYr5yY96iYd5BYk5lIC','WOddQ8kbuGu','W7m5WQxcHq','WP/dOCkfsrm','mKtdTMrfoq','W6JcMCkkW4xdKa','W4n1WOFcRSoY','WQTvW4hdQmo3WPy','kepcSqSpWP/cQCk7zbCcW7FcIcVcI23dNI7dMSkHWPe','W6iEW57cM3RdV8k1qmk+mgGhkSonW4VcHG','W7ZdHCoGjZFcMw03WRZdRw7dRbDJFve','lmoXW4uFfW','W5GlWOCrWQhcSSk4a8oSWRNdJCoyWOqkW4u6WR/cQSkuW5RdPmoCW7u9r8kYW4a4WOldHCk1WQrw','AdddG
2023-09-04 00:43:24 +08:00
// 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"])