mirror of https://github.com/KingRan/KR.git
25 lines
111 KiB
JavaScript
25 lines
111 KiB
JavaScript
|
/*
|
|||
|
8.25-9.1 初秋焕新风 品质体验潮
|
|||
|
开卡脚本,一次性脚本
|
|||
|
|
|||
|
//export jd_opencard_blacklist="" // 黑名单 用&隔开 pin值
|
|||
|
//export JD_LZ_OPENCARD="false" //关闭开卡相关活动运行
|
|||
|
//export opencard_draw="3" //抽奖次数 3
|
|||
|
————————————————
|
|||
|
入口:[ 8.25-9.1 初秋焕新风 品质体验潮 ]
|
|||
|
|
|||
|
请求太频繁会被黑ip
|
|||
|
请更换IP后再执行脚本
|
|||
|
cron:11 11 11 11 *
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#8.25-9.1 初秋焕新风 品质体验潮
|
|||
|
11 11 11 11 * jd_opencardL330.js, tag=8.25-9.1 初秋焕新风 品质体验潮, enabled=true
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('8.25-9.1 初秋焕新风 品质体验潮')
|
|||
|
var version_='jsjiami.com.v7';const IlII11=iii1II;function Iii11l(){const i111i1=(function(){return[version_,'JSBjAfVsHjPgiShamyiJY.PXOcfbuoDmK.rv7UIE==','WRpdMSkk','imkHiSkLwG','eZ/cJSkwW50rbGq','WORcTColu8kCzmkEW70','sSoMW60Zuq','5RQi5OQq5PY65l+H','F8oQW5e0rwrrx8ola8oG','tmoXWPbLW6BdPH4','Fmofi8oLm2uVomoj','WP/dSGRdU8kGCdL2W5ujhSknebpdR8kJACo2xrCUW5rwWOHvtapdUSomfwm','WOZdPZtcSW','WRuSrr9rEq','zmo1W6vtW6RcSZvoW5maxCo5WPq','W7FdSYBdMb4','WOpcKmk7W5FcOCo2f8obWPO','W6S6WQlcLmo5','CmoyWOjNlLuSW7nj','ESoGW5y+xhHluSoDgCo2W499W60','y0pdUKVdR2tcSmkFW5zIW6VdGa','AmorlCoWeW','W6ddVXtdR1O','WPGjcuBcSSk9','umk2WPjKW6NdTHPkDem7emk6','W6JdTJ1szG','77+v54cB5yEb5RwX5yIu6zot5O2Z5yMW5B6E5RsI5yUy5P+M55+m5yEa5l+p6ksg5yUI77Y16iMG5PsW5AAu6lsf6k+P5z6p5OMk55Ur5AAw5zov5lIl5AkD5yAW5PwQ6lwT5z6A5z2Z6Aoc5yYm77+CAoIUL+wFV+AuL+wkMoMbGEECHoEzHos6U+wZQUAxSUwgR+I+PoIJI+AtL+s9GU+9MEI1VoI/UowlGEAuUEAZI+wgIowGHoweMowKK+wsGUAxI+I0OEwEP+wENEwpR+EAMoAnQow8M+EwKEAEToAFGUA1LUAaM+++T+s4TownJEIdSUEZN+w6L+MsJ+wUQEADI+wlTos7VEExUEIROoIFREIULowWT+IUQoAoI+wBK++8NGyHWPtcLmkuASoGW5FcUZ4TwJzsWROzrHetytrcWO7cHmkZevP9cmk8crGyi8o4l8owtMNdPWldULPkwtRdTceZW4xcObFcNtaQB8o/WRRdNwadbSo/pw8QmtrvW43dKhBcTr85WQ/cNSkdWOlcSSoSW5u','W7NdVspdNJ3cLhiqsgVcQG','CmkpWQhcVg7dTSk6umk2EG','WRBdKL8KW71bWRO','W5q0WRxcP8oq','WRPRtG','vmoFW6SYzq','WRD3wSk/W7VdReJcKSohfIy','uSkHW4bPW4C','v3RcUmkZDW','W6RdJ27cRtS','WPJcSCorvG','W7ZdJvlcSJe','W6GjWQVcPSoovq','ymodW5VdPvW','WQ5csmkVW4S','WPlcI8o5WOlcLa','eCoDW4ZcL8kvWQ4','W4ldTW3dSCkOzW','EmkfWQhcM3m','W47cUYG','W74IWO5oW7jxWQVcK8krW6RcOSkFjmoKgXPMW4NcRYtcUXtdKcNcGSkc','WQlcQCkRWPddIW','W4/dUZHArW3cGqGc','A8ouWPrJgvST','WRVdOCkcpmoC','WRyMrCk8ua','W4RdGN0GW5ZcP38','pbVcR8kNW6e','WOVcLCoCW41S','ASoEWOa','aXhcLmk0W7W','WRVdLmkznW','6lYe6ko556+b','WRtdKe0TW7O','WR3dUCogbe5qkwG','ECkFWRhcJNJcRCo7mCkQESkWW5X8uc8ICseTWPNdMIpcRgzbBmoXW7tcTdP/WRRdQtdcLxO/WOPaWPeFWOZcQmoMWOO9uSoHWQH8n8kdD8ovWQrUWPqKvNxcOSk4W7itmdxcN0pcNg7cLSksBSkNWOmICbBcN8kAzh48DehcKKnjobBdMspdRetdQmodrSoeW57dTW','B8oFWOf/nL0LW7m','WORcHCo3W7btW7tdU8kVuCk5W4hcLW','WQBcL8kX','FL/cPCkWyq','WRT0smkPW4q','v8kaW7b1W5erWRrJk8obW6jwW50oymkG','W6ldPKBcTwhcPa','bJFcUCkDW4K','ga3cR8knW54','WRXat0xcJq','WRG8e27cTW','s8kaedRdGg3cL8oalCkhmSkh','Ff51WRFdTtpdM8oiWRedrSoqqdBdIa','B8ozkmoT','mstcJSk4WOFcQ8kg','ugnPbxC','WPddLmo/nej8gKa','W4WOWRxcSmoc','W5xcTsBcKq','WOWACa','WPZcGmooWP3cTG','WPhcM8kRW5BcPSoRga','r2rFeM4pW63dNCoJWQvwhCoI','r8o7WOm','yfJdPKxdSuxcRa','A0tcQmkmumov','l8oFjSoZpLG4lCoiga','WO7dKLFcPwy','WQm/sGXTD3OOgG','WPqinuBcPmkvWOKkjmocW550','mmkwc8k0zmke','WRpdVSoufxvBphnuW47cQmo6cG','rCkeWQNcJfm','W4NdNLO1W48','mmkhWRWjWRK','W4FcUJK','W4/dG34aW5BcMG','w8kVWPRcUK7dLCkbwq','5B2v5yM857AN6k6f6iYQ5B6+W7u','W63dVSoh','5P+k6i+c5y+b5yUb5Pwj5O2lgoIVIoMeHoAwT+I+G+IIMq','smo7dUITT+AWL+wKVEI1Po+9KEITMUAJPEADT+E+KEI1HEMhH+ISRG','jCkXWRqAWRRdI2r2W4q','W5hdUGldVCks','WRuOwa5sya','W4CdhvnFgG','5y6F5yQS5ywF772R','WQhdJ8oJW6fy','W5NdUaFdSmk/','WQxdI8o8W6frWOi','W7ddKCkeomoAWQbpWQpdJvCxW77cTGtcN0ybomkpWOFcQYb2WPmBae/cGCkiW5C','q8oNd8oJdW','WRq0WPvpW6DNWQZcK8oqW5pcPCkzoG','W5pdKWTmEW','WROSxmkaya','tCo2WOjtW5q','W7CeWQRcSCoBxN3dG07dU8oCWOBdTYi','vSkdW6FdK8kzW6tdN8kcW4qIFW','WQuvleZcUa','l8ksdmkIya','WQ9dBCkQW6u','ESoFjSo0ih8cmSojqa','W6VdQsVdPdxcHa','xCkbW6pdISkzW6RdG8ksW6GIBtO','W4pdT2/cIZhdPrpcV0qFbYBdUSoW','tSkjbXFdUG','BSkeiHBdGG','5Q+D77+C5B+25yM65P+W','8jg3NU+7SSkE5lQa5lMK5lMO','WQ7cQSkYW4VcVW','WRFdU1ZcQ0ZdTdxdOMy','WQZdHWxcSSkS','zSojlCoLnNG','WRq9rXjk','w8oHWPDP','WRmKz8kgDq','WRpdVSoefx8','WO4uESku','WPPszfJcP8o8','dCoGWOvYW6ZdHGziwbORgSk+WPryW7JcIYdcNSkYW53cQte','ivVcPSkNhW','t1JcP8kGtG','Ee9KWR3dTa3dSSouWQu1smob','W7JdUY95wW','c8kPk8kVuq','WRuIW5v1jKZcPgVcJq','W5pdT2xcMdVdIrFcS1W1eI3dLW','WOBcL8kpW4RcTG','WPxdVt/cRSk7W44','WPj6WQRcKW','8j+GRCkrWOJNQANMS6K','W4NdTJnnrfu','sSkBW4RdS8kE','WRddI8o7W4foWPpdV8kIF8oZW7q','vMLjbgK0','z8oRW5xdPL0','WPDbwq4Fx8oDWP1Tw8k1eSkxW7K','WOxIN711WOhLT6BORRtNVQdLHB/LSl/LHPRPL4pLVkRLJyZNMOFLH5NMTkNLI6VcTG','Fff3WRRdKW','kEs4H+IWGCkG8kQaUG','WPBdPGRdU8o6','WP1IESkyW5O','5BsL5yIh5yIu5yEI5lUR55EE5OQ6','nSkCk8kPz8kaEtNdS8kUWPq','ELHIWOhdRIhdPCocWOqXtmolwHm','WP7dJ8kLn8oK'
|
|||
|
// 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"])
|