2023-07-27 16:14:01 +08:00
|
|
|
|
/*
|
2023-10-06 11:59:10 +08:00
|
|
|
|
活动名称:关注店铺有礼(超级无线)
|
|
|
|
|
活动链接:https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=10069&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
|
|
|
|
https://lzkj-isv.isvjcloud.com/prod/cc/interaction/v1/index?activityType=10069&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
|
|
|
|
https://lorealjdcampaign-rc.isvjcloud.com/interact/index?activityType=10069&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
2023-07-27 16:14:01 +08:00
|
|
|
|
环境变量:jd_lzkj_loreal_lkFollowShop_url // 活动链接
|
2023-10-06 11:59:10 +08:00
|
|
|
|
jd_lzkj_loreal_lkFollowShop_opencard // 是否入会(true/false),默认不入会
|
|
|
|
|
jd_lzkj_loreal_lkFollowShop_Notify // 是否推送通知(true/false),默认不推送
|
|
|
|
|
jd_lzkj_loreal_lkFollowShop_break // 493后继续执行,默认退出运行(true/false)
|
2023-11-10 11:11:46 +08:00
|
|
|
|
|
|
|
|
|
请使用本地IP环境 请使用本地IP环境 请使用本地IP环境
|
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
|
|
|
|
#关注店铺有礼(超级无线)
|
|
|
|
|
1 1 1 1 * jd_lzkj_loreal_lkFollowShop.js, tag=关注店铺有礼(超级无线), enabled=true
|
|
|
|
|
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2023-10-06 11:59:10 +08:00
|
|
|
|
const $ = new Env('关注店铺有礼(超级无线)')
|
2023-11-12 16:44:11 +08:00
|
|
|
|
var version_='jsjiami.com.v7';function iii1II(_0xe3512,_0x256fc4){const _0x511feb=Iii11l();return iii1II=function(_0x2db2e9,_0x5b649e){_0x2db2e9=_0x2db2e9-0xc5;let _0xfa3b8b=_0x511feb[_0x2db2e9];if(iii1II['oupHic']===undefined){var _0x327fd2=function(_0x1f681b){const _0x317975='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xb5df9a='',_0x301530='';for(let _0x567baa=0x0,_0x2b611d,_0xc2878d,_0x5a727c=0x0;_0xc2878d=_0x1f681b['charAt'](_0x5a727c++);~_0xc2878d&&(_0x2b611d=_0x567baa%0x4?_0x2b611d*0x40+_0xc2878d:_0xc2878d,_0x567baa++%0x4)?_0xb5df9a+=String['fromCharCode'](0xff&_0x2b611d>>(-0x2*_0x567baa&0x6)):0x0){_0xc2878d=_0x317975['indexOf'](_0xc2878d);}for(let _0x2fc115=0x0,_0x4858d9=_0xb5df9a['length'];_0x2fc115<_0x4858d9;_0x2fc115++){_0x301530+='%'+('00'+_0xb5df9a['charCodeAt'](_0x2fc115)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x301530);};const _0x167e0b=function(_0xcac369,_0x55ca3c){let _0x1ad1a4=[],_0x4ea9db=0x0,_0x3d14dd,_0x2cd9c4='';_0xcac369=_0x327fd2(_0xcac369);let _0x13e921;for(_0x13e921=0x0;_0x13e921<0x100;_0x13e921++){_0x1ad1a4[_0x13e921]=_0x13e921;}for(_0x13e921=0x0;_0x13e921<0x100;_0x13e921++){_0x4ea9db=(_0x4ea9db+_0x1ad1a4[_0x13e921]+_0x55ca3c['charCodeAt'](_0x13e921%_0x55ca3c['length']))%0x100,_0x3d14dd=_0x1ad1a4[_0x13e921],_0x1ad1a4[_0x13e921]=_0x1ad1a4[_0x4ea9db],_0x1ad1a4[_0x4ea9db]=_0x3d14dd;}_0x13e921=0x0,_0x4ea9db=0x0;for(let _0x493aad=0x0;_0x493aad<_0xcac369['length'];_0x493aad++){_0x13e921=(_0x13e921+0x1)%0x100,_0x4ea9db=(_0x4ea9db+_0x1ad1a4[_0x13e921])%0x100,_0x3d14dd=_0x1ad1a4[_0x13e921],_0x1ad1a4[_0x13e921]=_0x1ad1a4[_0x4ea9db],_0x1ad1a4[_0x4ea9db]=_0x3d14dd,_0x2cd9c4+=String['fromCharCode'](_0xcac369['charCodeAt'](_0x493aad)^_0x1ad1a4[(_0x1ad1a4[_0x13e921]+_0x1ad1a4[_0x4ea9db])%0x100]);}return _0x2cd9c4;};iii1II['AgBFjp']=_0x167e0b,_0xe3512=arguments,iii1II['oupHic']=!![];}const _0x258833=_0x511feb[0x0],_0x2f6a28=_0x2db2e9+_0x258833,_0x8e2ac8=_0xe3512[_0x2f6a28];return!_0x8e2ac8?(iii1II['HPmbfE']===undefined&&(iii1II['HPmbfE']=!![]),_0xfa3b8b=iii1II['AgBFjp'](_0xfa3b8b,_0x5b649e),_0xe3512[_0x2f6a28]=_0xfa3b8b):_0xfa3b8b=_0x8e2ac8,_0xfa3b8b;},iii1II(_0xe3512,_0x256fc4);}const l1lilI=iii1II;(function(Ii1l1i,l1lIl,Ii1l1l,i1Iiil,i1Iiii,l1lIi,l1lili){return Ii1l1i=Ii1l1i>>0x5,l1lIi='hs',l1lili='hs',function(IIlI1l,lI1I11,IilIl,IilIi,Ili1Il){const iiiI11=iii1II;IilIi='tfi',l1lIi=IilIi+l1lIi,Ili1Il='up',l1lili+=Ili1Il,l1lIi=IilIl(l1lIi),l1lili=IilIl(l1lili),IilIl=0x0;const i1liI=IIlI1l();while(!![]&&--i1Iiil+lI1I11){try{IilIi=parseInt(iiiI11(0x2c2,'yELm'))/0x1*(-parseInt(iiiI11(0x342,'Bmp2'))/0x2)+-parseInt(iiiI11(0x3c3,'yn(&'))/0x3*(-parseInt(iiiI11(0x165,'X5d['))/0x4)+parseInt(iiiI11(0x380,'$Vpg'))/0x5+-parseInt(iiiI11(0x191,'oW[6'))/0x6*(parseInt(iiiI11(0x1d3,'vXTh'))/0x7)+parseInt(iiiI11(0x3a0,'jibX'))/0x8*(-parseInt(iiiI11(0x323,'yELm'))/0x9)+-parseInt(iiiI11(0x270,'e$k*'))/0xa*(parseInt(iiiI11(0x290,'YjkF'))/0xb)+-parseInt(iiiI11(0x361,'VEGd'))/0xc*(-parseInt(iiiI11(0x1f6,'[(nD'))/0xd);}catch(iilIIi){IilIi=IilIl;}finally{Ili1Il=i1liI[l1lIi]();if(Ii1l1i<=i1Iiil)IilIl?i1Iiii?IilIi=Ili1Il:i1Iiii=Ili1Il:IilIl=Ili1Il;else{if(IilIl==i1Iiii['replace'](/[lrXSdFHQpgnUVRxwCLKJt=]/g,'')){if(IilIi===lI1I11){i1liI['un'+l1lIi](Ili1Il);break;}i1liI[l1lili](Ili1Il);}}}}}(Ii1l1l,l1lIl,function(I1iII,IIlI1i,iiiI1i,iiiI1l,Ili1Ii,Ii1l1I,iilII1){return IIlI1i='\x73\x70\x6c\x69\x74',I1iII=arguments[0x0],I1iII=I1iII[IIlI1i](''),iiiI1i=`\x72\x65\x76\x65\x72\x73\x65`,I1iII=I1iII[iiiI1i]('\x76'),iiiI1l=`\x6a\x6f\x69\x6e`,(0x147126,I1iII[iiiI1l](''));});}(0x1960,0xd8811,Iii11l,0xcd),Iii11l)&&(version_=l1lilI(0x107,'X5d['));const lllII=require(l1lilI(0x378,'X5d[')),l11iII=require(l1lilI(0x14b,'Bmp2')),l1i11i=require('./function/sendJDNotify'),l11iI1=require(l1lilI(0x100,'jibX')),{wuxianDefense:IliiI}=require(l1lilI(0x175,'muCg')),{loreal_savePrize:lI111i}=require('./function/krsavePrize'),I1lIII=process[l1lilI(0x2eb,'iP24')][l1lilI(0x26c,']qHG')]||'',liIlll=process[l1lilI(0x134,'hel4')][l1lilI(0x155,'hel4')]==='true',I1iI1I=process[l1lilI(0x1f3,'X5d[')][l1lilI(0x232,'HodU')]==
|
2023-10-06 11:59:10 +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"])
|