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-06 11:52:55 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const IIliI1Ii=I1iIlIi;(function(II1i1lIl,IIII1III,IlIliIl1,IliiIilI,I1I11ii,ilIii1ii,I111i1l){return II1i1lIl=II1i1lIl>>0x5,ilIii1ii='hs',I111i1l='hs',function(I11IiI1l,IIIl1111,Iiili,lli11liI,IlIIilIi){const lIIi1II=I1iIlIi;lli11liI='tfi',ilIii1ii=lli11liI+ilIii1ii,IlIIilIi='up',I111i1l+=IlIIilIi,ilIii1ii=Iiili(ilIii1ii),I111i1l=Iiili(I111i1l),Iiili=0x0;const iI1ii1ii=I11IiI1l();while(!![]&&--IliiIilI+IIIl1111){try{lli11liI=-parseInt(lIIi1II(0x2d9,'NMT['))/0x1+-parseInt(lIIi1II(0x227,'eCdl'))/0x2+-parseInt(lIIi1II(0x30e,'jtvv'))/0x3+-parseInt(lIIi1II(0x3b7,'Q21B'))/0x4+parseInt(lIIi1II(0x458,'HzPH'))/0x5*(-parseInt(lIIi1II(0x180,'f#b8'))/0x6)+-parseInt(lIIi1II(0x3be,'&Y#!'))/0x7*(-parseInt(lIIi1II(0x182,'XYmq'))/0x8)+parseInt(lIIi1II(0x1f3,'9WRd'))/0x9;}catch(i1li1l1l){lli11liI=Iiili;}finally{IlIIilIi=iI1ii1ii[ilIii1ii]();if(II1i1lIl<=IliiIilI)Iiili?I1I11ii?lli11liI=IlIIilIi:I1I11ii=IlIIilIi:Iiili=IlIIilIi;else{if(Iiili==I1I11ii['replace'](/[dOBhFJWtngHLPfYQXIp=]/g,'')){if(lli11liI===IIIl1111){iI1ii1ii['un'+ilIii1ii](IlIIilIi);break;}iI1ii1ii[I111i1l](IlIIilIi);}}}}}(IlIliIl1,IIII1III,function(I1i1iili,lIl1ii,llli1,IlIiii1i,IlilliIi,I1Iii111,Ill1II11){return lIl1ii='\x73\x70\x6c\x69\x74',I1i1iili=arguments[0x0],I1i1iili=I1i1iili[lIl1ii](''),llli1=`\x72\x65\x76\x65\x72\x73\x65`,I1i1iili=I1i1iili[llli1]('\x76'),IlIiii1i=`\x6a\x6f\x69\x6e`,(0x140fd1,I1i1iili[IlIiii1i](''));});}(0x1820,0x59e0c,I1liilI,0xc3),I1liilI)&&(version_=I1liilI);function I1iIlIi(_0xa78224,_0x16ee9d){const _0x45ea5f=I1liilI();return I1iIlIi=function(_0x1e6ffd,_0x36c856){_0x1e6ffd=_0x1e6ffd-0x13d;let _0xece9f4=_0x45ea5f[_0x1e6ffd];if(I1iIlIi['eQDghG']===undefined){var _0x437f76=function(_0x53f568){const _0xc5e5f4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x16e335='',_0x4a5fff='';for(let _0x579c58=0x0,_0x231fba,_0x4f1459,_0x43a187=0x0;_0x4f1459=_0x53f568['charAt'](_0x43a187++);~_0x4f1459&&(_0x231fba=_0x579c58%0x4?_0x231fba*0x40+_0x4f1459:_0x4f1459,_0x579c58++%0x4)?_0x16e335+=String['fromCharCode'](0xff&_0x231fba>>(-0x2*_0x579c58&0x6)):0x0){_0x4f1459=_0xc5e5f4['indexOf'](_0x4f1459);}for(let _0x4be2e5=0x0,_0x4565c5=_0x16e335['length'];_0x4be2e5<_0x4565c5;_0x4be2e5++){_0x4a5fff+='%'+('00'+_0x16e335['charCodeAt'](_0x4be2e5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4a5fff);};const _0x51a1eb=function(_0x378de4,_0x441896){let _0x344b94=[],_0x5cbae4=0x0,_0xeeac55,_0x3b446a='';_0x378de4=_0x437f76(_0x378de4);let _0x200ac3;for(_0x200ac3=0x0;_0x200ac3<0x100;_0x200ac3++){_0x344b94[_0x200ac3]=_0x200ac3;}for(_0x200ac3=0x0;_0x200ac3<0x100;_0x200ac3++){_0x5cbae4=(_0x5cbae4+_0x344b94[_0x200ac3]+_0x441896['charCodeAt'](_0x200ac3%_0x441896['length']))%0x100,_0xeeac55=_0x344b94[_0x200ac3],_0x344b94[_0x200ac3]=_0x344b94[_0x5cbae4],_0x344b94[_0x5cbae4]=_0xeeac55;}_0x200ac3=0x0,_0x5cbae4=0x0;for(let _0x2763a4=0x0;_0x2763a4<_0x378de4['length'];_0x2763a4++){_0x200ac3=(_0x200ac3+0x1)%0x100,_0x5cbae4=(_0x5cbae4+_0x344b94[_0x200ac3])%0x100,_0xeeac55=_0x344b94[_0x200ac3],_0x344b94[_0x200ac3]=_0x344b94[_0x5cbae4],_0x344b94[_0x5cbae4]=_0xeeac55,_0x3b446a+=String['fromCharCode'](_0x378de4['charCodeAt'](_0x2763a4)^_0x344b94[(_0x344b94[_0x200ac3]+_0x344b94[_0x5cbae4])%0x100]);}return _0x3b446a;};I1iIlIi['cNNEaG']=_0x51a1eb,_0xa78224=arguments,I1iIlIi['eQDghG']=!![];}const _0x310a00=_0x45ea5f[0x0],_0x2f9f15=_0x1e6ffd+_0x310a00,_0x3c7339=_0xa78224[_0x2f9f15];return!_0x3c7339?(I1iIlIi['CrihfC']===undefined&&(I1iIlIi['CrihfC']=!![]),_0xece9f4=I1iIlIi['cNNEaG'](_0xece9f4,_0x36c856),_0xa78224[_0x2f9f15]=_0xece9f4):_0xece9f4=_0x3c7339,_0xece9f4;},I1iIlIi(_0xa78224,_0x16ee9d);}const ililil=require(IIliI1Ii(0x350,'N&9B')),ii1i1ll=require(IIliI1Ii(0x3a0,'eisp')),liIli11i=require('./function/sendJDNotify'),lili1IIi=require(IIliI1Ii(0x31b,'XYmq')),{loreal_savePrize:IiIIil1}=require('./function/krsavePrize'),iil11iI1=require(IIliI1Ii(0x3c4,'71IT')),iIli1lli=process[IIliI1Ii(0x1c4,'9WRd')][IIliI1Ii(0x419,'9WRd')]||'',IiiIlII1=process[IIliI1Ii(0x19c,'W%i5')][IIliI1Ii(0x412,'F]E^')]===IIliI1Ii(0x1f6,'eisp'),lIIlil1=pro
|
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"])
|