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('签到有礼(超级无线)')
|
|
|
|
|
var version_='jsjiami.com.v7';function iI1Il1il(_0x1d001b,_0x18630d){const _0x4d0dd3=l1ii1Ill();return iI1Il1il=function(_0xf898f2,_0x1b5341){_0xf898f2=_0xf898f2-0x1eb;let _0x15b952=_0x4d0dd3[_0xf898f2];if(iI1Il1il['EKSooR']===undefined){var _0x1ce930=function(_0x617953){const _0x13125a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x18fff6='',_0x2bf8da='';for(let _0x15a096=0x0,_0x1cb451,_0x8dad5a,_0x32d199=0x0;_0x8dad5a=_0x617953['charAt'](_0x32d199++);~_0x8dad5a&&(_0x1cb451=_0x15a096%0x4?_0x1cb451*0x40+_0x8dad5a:_0x8dad5a,_0x15a096++%0x4)?_0x18fff6+=String['fromCharCode'](0xff&_0x1cb451>>(-0x2*_0x15a096&0x6)):0x0){_0x8dad5a=_0x13125a['indexOf'](_0x8dad5a);}for(let _0x3b3c13=0x0,_0x142620=_0x18fff6['length'];_0x3b3c13<_0x142620;_0x3b3c13++){_0x2bf8da+='%'+('00'+_0x18fff6['charCodeAt'](_0x3b3c13)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2bf8da);};const _0x405464=function(_0x2cbf24,_0x313884){let _0x428b46=[],_0x244ee6=0x0,_0x8456f7,_0x36eef7='';_0x2cbf24=_0x1ce930(_0x2cbf24);let _0x43b3dd;for(_0x43b3dd=0x0;_0x43b3dd<0x100;_0x43b3dd++){_0x428b46[_0x43b3dd]=_0x43b3dd;}for(_0x43b3dd=0x0;_0x43b3dd<0x100;_0x43b3dd++){_0x244ee6=(_0x244ee6+_0x428b46[_0x43b3dd]+_0x313884['charCodeAt'](_0x43b3dd%_0x313884['length']))%0x100,_0x8456f7=_0x428b46[_0x43b3dd],_0x428b46[_0x43b3dd]=_0x428b46[_0x244ee6],_0x428b46[_0x244ee6]=_0x8456f7;}_0x43b3dd=0x0,_0x244ee6=0x0;for(let _0x4fd56a=0x0;_0x4fd56a<_0x2cbf24['length'];_0x4fd56a++){_0x43b3dd=(_0x43b3dd+0x1)%0x100,_0x244ee6=(_0x244ee6+_0x428b46[_0x43b3dd])%0x100,_0x8456f7=_0x428b46[_0x43b3dd],_0x428b46[_0x43b3dd]=_0x428b46[_0x244ee6],_0x428b46[_0x244ee6]=_0x8456f7,_0x36eef7+=String['fromCharCode'](_0x2cbf24['charCodeAt'](_0x4fd56a)^_0x428b46[(_0x428b46[_0x43b3dd]+_0x428b46[_0x244ee6])%0x100]);}return _0x36eef7;};iI1Il1il['JpsacP']=_0x405464,_0x1d001b=arguments,iI1Il1il['EKSooR']=!![];}const _0x7523b6=_0x4d0dd3[0x0],_0x409579=_0xf898f2+_0x7523b6,_0x180e61=_0x1d001b[_0x409579];return!_0x180e61?(iI1Il1il['bzyHUJ']===undefined&&(iI1Il1il['bzyHUJ']=!![]),_0x15b952=iI1Il1il['JpsacP'](_0x15b952,_0x1b5341),_0x1d001b[_0x409579]=_0x15b952):_0x15b952=_0x180e61,_0x15b952;},iI1Il1il(_0x1d001b,_0x18630d);}const llIl1IIl=iI1Il1il;(function(iII1l1li,l111i11i,Iiil11ii,I1Ii1lii,lI11Ii,lIi1llIi,Ililil1i){return iII1l1li=iII1l1li>>0x2,lIi1llIi='hs',Ililil1i='hs',function(l1ll1i1i,lI1i1iI1,IIiIilI1,lIlIi1lI,i1iilil){const ilIliiI=iI1Il1il;lIlIi1lI='tfi',lIi1llIi=lIlIi1lI+lIi1llIi,i1iilil='up',Ililil1i+=i1iilil,lIi1llIi=IIiIilI1(lIi1llIi),Ililil1i=IIiIilI1(Ililil1i),IIiIilI1=0x0;const llil1i1I=l1ll1i1i();while(!![]&&--I1Ii1lii+lI1i1iI1){try{lIlIi1lI=-parseInt(ilIliiI(0x4d9,'Os@v'))/0x1*(parseInt(ilIliiI(0x2d2,'IYNJ'))/0x2)+parseInt(ilIliiI(0x277,'s8]^'))/0x3+parseInt(ilIliiI(0x24b,'@#0t'))/0x4+parseInt(ilIliiI(0x326,'($jT'))/0x5+-parseInt(ilIliiI(0x350,'ki2s'))/0x6+-parseInt(ilIliiI(0x390,'Os@v'))/0x7*(parseInt(ilIliiI(0x308,'WlCS'))/0x8)+-parseInt(ilIliiI(0x3e7,'0L&)'))/0x9*(-parseInt(ilIliiI(0x325,'Nd0U'))/0xa);}catch(l1lllIli){lIlIi1lI=IIiIilI1;}finally{i1iilil=llil1i1I[lIi1llIi]();if(iII1l1li<=I1Ii1lii)IIiIilI1?lI11Ii?lIlIi1lI=i1iilil:lI11Ii=i1iilil:IIiIilI1=i1iilil;else{if(IIiIilI1==lI11Ii['replace'](/[RgDeHKBQrFtxPufUVW=]/g,'')){if(lIlIi1lI===lI1i1iI1){llil1i1I['un'+lIi1llIi](i1iilil);break;}llil1i1I[Ililil1i](i1iilil);}}}}}(Iiil11ii,l111i11i,function(IlllI1II,i1lI1I1l,iI11iill,I11lIIil,i11I1il,IiiiIlIl,Il1IiIl1){return i1lI1I1l='\x73\x70\x6c\x69\x74',IlllI1II=arguments[0x0],IlllI1II=IlllI1II[i1lI1I1l](''),iI11iill=`\x72\x65\x76\x65\x72\x73\x65`,IlllI1II=IlllI1II[iI11iill]('\x76'),I11lIIil=`\x6a\x6f\x69\x6e`,(0x140a7f,IlllI1II[I11lIIil](''));});}(0x32c,0x20734,l1ii1Ill,0xcd),l1ii1Ill)&&(version_=l1ii1Ill);const Ilii1ll=require('./jdCookie'),IllllIlI=require(llIl1IIl(0x498,'($jT')),iI1Iiiii=require(llIl1IIl(0x32d,'26df')),lil1IlIi=require('./function/krgetToken'),{loreal_savePrize:iIiIl}=require(llIl1IIl(0x206,'7JRj')),lI1lIl1I=require(llIl1IIl(0x245,'VHl@')),illlllil=process[llIl1IIl(0x405,'0BOj')]['jd_lzkj_loreal_daySign_url']||'',ll1I1iIl=process['env'][llIl1
|
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"])
|