KR/jd_lzkj_loreal_daySign.js

21 lines
65 KiB
JavaScript
Raw Normal View History

2023-10-02 19:21:40 +08:00
/*
活动名称签到有礼超级无线
活动链接https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=<10023/10040>&templateId=<模板id>&activityId=<活动id>&prd=cjwx
2023-07-27 16:14:01 +08:00
环境变量jd_lzkj_loreal_daySign_url // 活动链接
2023-10-02 19:21:40 +08:00
jd_lzkj_loreal_daySign_opencard // 是否入会true/false默认不入会
jd_lzkj_loreal_daySign_Notify // 是否推送通知true/false默认不推送
jd_lzkj_loreal_daySign_break // 493后继续执行默认退出运行true/false
2023-07-27 16:14:01 +08:00
cron:1 1 1 1 *
============Quantumultx===============
[task_local]
2023-10-02 19:21:40 +08:00
#签到有礼超级无线
1 1 1 1 * jd_lzkj_loreal_daySign.js, tag=签到有礼超级无线, enabled=true
2023-07-27 16:14:01 +08:00
2023-10-02 19:21:40 +08:00
*/
2023-07-27 16:14:01 +08:00
2023-10-02 19:21:40 +08:00
const $ = new Env('签到有礼(超级无线)')
2023-10-28 08:28:03 +08:00
var version_='jsjiami.com.v7';const llIlIlii=lliliii;function lliliii(_0x306c94,_0x5097bb){const _0x23fa2d=IIlIi1l();return lliliii=function(_0x311bee,_0x581bfc){_0x311bee=_0x311bee-0x6b;let _0x480c1a=_0x23fa2d[_0x311bee];if(lliliii['DZVxSF']===undefined){var _0x4ad912=function(_0x13dfbb){const _0x518731='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14e4e1='',_0x2d2d1a='';for(let _0x2edca8=0x0,_0x2ac224,_0x560167,_0x965f8b=0x0;_0x560167=_0x13dfbb['charAt'](_0x965f8b++);~_0x560167&&(_0x2ac224=_0x2edca8%0x4?_0x2ac224*0x40+_0x560167:_0x560167,_0x2edca8++%0x4)?_0x14e4e1+=String['fromCharCode'](0xff&_0x2ac224>>(-0x2*_0x2edca8&0x6)):0x0){_0x560167=_0x518731['indexOf'](_0x560167);}for(let _0x423d8f=0x0,_0x4f9f92=_0x14e4e1['length'];_0x423d8f<_0x4f9f92;_0x423d8f++){_0x2d2d1a+='%'+('00'+_0x14e4e1['charCodeAt'](_0x423d8f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d2d1a);};const _0x803d2d=function(_0x57b3b3,_0x166d4e){let _0x327939=[],_0x24c430=0x0,_0x1e1334,_0xab0119='';_0x57b3b3=_0x4ad912(_0x57b3b3);let _0x12ef1b;for(_0x12ef1b=0x0;_0x12ef1b<0x100;_0x12ef1b++){_0x327939[_0x12ef1b]=_0x12ef1b;}for(_0x12ef1b=0x0;_0x12ef1b<0x100;_0x12ef1b++){_0x24c430=(_0x24c430+_0x327939[_0x12ef1b]+_0x166d4e['charCodeAt'](_0x12ef1b%_0x166d4e['length']))%0x100,_0x1e1334=_0x327939[_0x12ef1b],_0x327939[_0x12ef1b]=_0x327939[_0x24c430],_0x327939[_0x24c430]=_0x1e1334;}_0x12ef1b=0x0,_0x24c430=0x0;for(let _0xa40def=0x0;_0xa40def<_0x57b3b3['length'];_0xa40def++){_0x12ef1b=(_0x12ef1b+0x1)%0x100,_0x24c430=(_0x24c430+_0x327939[_0x12ef1b])%0x100,_0x1e1334=_0x327939[_0x12ef1b],_0x327939[_0x12ef1b]=_0x327939[_0x24c430],_0x327939[_0x24c430]=_0x1e1334,_0xab0119+=String['fromCharCode'](_0x57b3b3['charCodeAt'](_0xa40def)^_0x327939[(_0x327939[_0x12ef1b]+_0x327939[_0x24c430])%0x100]);}return _0xab0119;};lliliii['GepVpt']=_0x803d2d,_0x306c94=arguments,lliliii['DZVxSF']=!![];}const _0x3bd4ef=_0x23fa2d[0x0],_0x2ce7ca=_0x311bee+_0x3bd4ef,_0x2ad5e5=_0x306c94[_0x2ce7ca];return!_0x2ad5e5?(lliliii['uuPhqy']===undefined&&(lliliii['uuPhqy']=!![]),_0x480c1a=lliliii['GepVpt'](_0x480c1a,_0x581bfc),_0x306c94[_0x2ce7ca]=_0x480c1a):_0x480c1a=_0x2ad5e5,_0x480c1a;},lliliii(_0x306c94,_0x5097bb);}function IIlIi1l(){const illlll1I=(function(){return[...[version_,'hPUjHhIsTjgiVafmHin.RRcyTOokKmCe.qFIvY7L==','WR4YoXNcKq','W6WUpWNcJCoBv8oyW5tdU8orCmkhWPbiuYJdPSk9W6JcHXW3','luZcOmkWWRSkASoZ','W7fUoa','Caz/C8o5za','yuVcKa','mmkj566+5yUC','dmksB1C+W6S','F+IVNUAYKEwNSEI3GE+9Q1ddHoIGMEMAN+wiTo+8MaVdRfNcQIlcN8oEESkVuxVdMuBdGa','q17cNG','W7fwW4NcTSoycNi','WR9DW7FcUr0NWPZdIq','W5ZcUSk+mLVcTCoPWQa','5BMF6zoD5zog56sZ776O','W7fbWP1ZfG','lmoTW4tdRCok','BZdcTX7dKfhcQ8osha','ySk7W6zrW5hdUIGobG','oCkruwKT','WQDsWR/cHCoED8kG','W6ddHM3dQgZdJmo8W4S','lWiO','WPWNWQK','BeVdV8o4WOG/','5lQX5PEL5O2U55I56k6p5RgF5Ps85Rg+','AfVdV8ozWOmPW7/cUW','lCk+WO4BWQqjcSoJWPm','W4RdLCkgiwSn','6i6P5y+OW4RdJCkpnCoIWRddGCkqhahLPA7OTO8','amkuW71B','q17cNSkOba','WOVdOSkAWO7dMeVcSJm','FKVcMH0','bCotW6i','zMNdPW8u','nmk0W5FcOrldLW9+W4q','FttcTqtcKv/cRmoaady7amo5','WRHgWR/cQ8oCD8kQW5S','5RAj5yQx5BE357IP5P2g772557Qy5P6k5Pwb6zsB77+i','p8k2WPm4WOiDea','fYucWPZdUq','WPhdOmk+aKZdTrG','imkYWP0','vEISTEAXQEwmP+AxSq','WQaYorlcVmoxvSka','5lQN5Aww6ycv55+Q','BSojW4BdKSkb','5PYX5Aou5z6G5z+0','5PYf6iom6i2o5yYx55wc5OMt5RE15yIV54US5Ogp','W5ldHmk8c24mWR4','8ygCJSoj','gSkIwvu/','W4uDWR1pWQu','WRdcJSkHj8oR','W63dTCkHia','FCoyWQ7cRLu','zCkOW6zF','5BwU5y+I5AY2','W4ldT8k9WPhdRepcR2K','jKZcNmkrWQW','m1pcUmkQ','5yUS5yA45BMT6zkY5l+k5zcW5Awp6lAZ77+S5RAQ5yMh5lQk6zMV5BIp6zcN5l2+5zkL5y+i5lQl5zgHrW','xH9yrCoP','b8kNwmkvW558W5ddRG','W5XqCG','WP59W5NcMHO','pSkRsN0A','uGVcHZVdNW','l8kCsgq9','5P6o556E5REu5yQP54MK5OoQWQq','qaKkWRhcLYxdMSoKW79ywYBdT8oCnCotaGBcVmot','ja4JCcddHYu','eSodW5rvW6fXWQK','DfRdJSorWPWWW5ZcGmogWPOaot7dHLtcUSoAt8kiaxSdoCkGW4nmWPRcUq','WQrLW4m','WQ0dWORdSa','W5VcKZldGCoIqwVdT8ojpYpcM8kmtCosqq','lWq8BY7dLW','5BMH6zo46zg65O2F77Y4vCoCW6xcMSouWQ3cICkSarzIW4CXhSoPiMOxpYmkCqRdISozw8k+W6pcM3tdQMe','hGhdICo1','uwqWW7HbW7r3hW','ESkSW5DXW5i','f+IVLUAWPowMQEI0OU+9V8oaWQhOOOpPMQBLIiVVVitcQ8kgjdBcMSouW7H8WQ/cRWld
2023-07-27 16:14:01 +08:00
// prettier-ignore
2023-10-02 19:21:40 +08:00
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"])