2023-10-02 19:27:13 +08:00
|
|
|
|
/*
|
|
|
|
|
活动名称:组队瓜分奖品(超级无线)
|
|
|
|
|
活动链接:https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=10033&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
|
|
|
|
环境变量:jd_lzkj_loreal_organizeTeam_url // 活动链接
|
|
|
|
|
jd_lzkj_loreal_organizeTeam_opencard // 是否入会(true/false),默认不入会
|
|
|
|
|
jd_lzkj_loreal_organizeTeam_Notify // 是否推送通知(true/false),默认不推送
|
|
|
|
|
jd_lzkj_loreal_organizeTeam_break // 493后继续执行,默认退出运行(true/false)
|
2023-10-06 20:01:31 +08:00
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
|
|
|
|
#组队瓜分奖品(超级无线)
|
|
|
|
|
1 1 1 1 * jd_lzkj_loreal_organizeTeam.js, tag=组队瓜分奖品(超级无线), enabled=true
|
2023-10-02 19:27:13 +08:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('组队瓜分奖品(超级无线)')
|
2023-11-12 16:44:11 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const iill1I=iii1II;(function(l1I1I1,I1Ilii,l1Iii,l1Iil,III1Ii,III1Il,iIIliI){return l1I1I1=l1I1I1>>0x9,III1Il='hs',iIIliI='hs',function(IiIil,IiIii,iill1l,IiIiII,iill1i){const IiIiI=iii1II;IiIiII='tfi',III1Il=IiIiII+III1Il,iill1i='up',iIIliI+=iill1i,III1Il=iill1l(III1Il),iIIliI=iill1l(iIIliI),iill1l=0x0;const l1Il1=IiIil();while(!![]&&--l1Iil+IiIii){try{IiIiII=parseInt(IiIiI(0x153,'1RnH'))/0x1*(-parseInt(IiIiI(0x155,'3OYj'))/0x2)+parseInt(IiIiI(0x2ba,'ph7*'))/0x3*(parseInt(IiIiI(0x39f,'AJIh'))/0x4)+-parseInt(IiIiI(0x2da,'Jnvy'))/0x5*(-parseInt(IiIiI(0x389,'P5rG'))/0x6)+-parseInt(IiIiI(0x176,'TAEE'))/0x7+-parseInt(IiIiI(0x267,'quLx'))/0x8*(-parseInt(IiIiI(0x3bd,'4OIu'))/0x9)+-parseInt(IiIiI(0x28d,'HT5e'))/0xa*(-parseInt(IiIiI(0x1eb,'BOBb'))/0xb)+-parseInt(IiIiI(0x30f,'RiDj'))/0xc*(parseInt(IiIiI(0x281,'HT5e'))/0xd);}catch(iill11){IiIiII=iill1l;}finally{iill1i=l1Il1[III1Il]();if(l1I1I1<=l1Iil)iill1l?III1Ii?IiIiII=iill1i:III1Ii=iill1i:iill1l=iill1i;else{if(iill1l==III1Ii['replace'](/[dGRFWSuEJMgefyDptUBCh=]/g,'')){if(IiIiII===IiIii){l1Il1['un'+III1Il](iill1i);break;}l1Il1[iIIliI](iill1i);}}}}}(l1Iii,I1Ilii,function(I1IliI,III1II,l1I1II,iIIlil,IiIiI1,iIIlii,llIII1){return III1II='\x73\x70\x6c\x69\x74',I1IliI=arguments[0x0],I1IliI=I1IliI[III1II](''),l1I1II=`\x72\x65\x76\x65\x72\x73\x65`,I1IliI=I1IliI[l1I1II]('\x76'),iIIlil=`\x6a\x6f\x69\x6e`,(0x147127,I1IliI[iIIlil](''));});}(0x18c00,0x76922,Iii11l,0xc8),Iii11l)&&(version_=iill1I(0x369,'Kokw'));const i11iII=require('./jdCookie'),lI1Ii1=require('./function/jdCommon'),i1I11=require(iill1I(0x1ab,'3OYj')),I1I1i1=require(iill1I(0x3de,'ZZqi')),{wuxianDefense:i1I1l}=require('./function/jdCrypto'),i1I1i=process[iill1I(0x24b,'BOBb')][iill1I(0x3c3,'mbEG')]||'',IIiiII=process[iill1I(0x45d,'WAO2')][iill1I(0x303,'AJIh')]===iill1I(0x336,'tU7F'),llIiI=process[iill1I(0x340,'hdT%')][iill1I(0x21a,'RiDj')]==='true',Ilill=process['env'][iill1I(0x3d7,'mPWY')]==='true';function iii1II(_0x33fe8a,_0xcf97eb){const _0x56195d=Iii11l();return iii1II=function(_0x4068ba,_0x4ed2e4){_0x4068ba=_0x4068ba-0x13d;let _0x15eb53=_0x56195d[_0x4068ba];if(iii1II['wVFOjY']===undefined){var _0x813c1b=function(_0x1a0d32){const _0x4bd451='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x42095f='',_0x3a8c23='';for(let _0x4203b9=0x0,_0x4656b4,_0x5cb52c,_0x518771=0x0;_0x5cb52c=_0x1a0d32['charAt'](_0x518771++);~_0x5cb52c&&(_0x4656b4=_0x4203b9%0x4?_0x4656b4*0x40+_0x5cb52c:_0x5cb52c,_0x4203b9++%0x4)?_0x42095f+=String['fromCharCode'](0xff&_0x4656b4>>(-0x2*_0x4203b9&0x6)):0x0){_0x5cb52c=_0x4bd451['indexOf'](_0x5cb52c);}for(let _0x532ed3=0x0,_0x8badd0=_0x42095f['length'];_0x532ed3<_0x8badd0;_0x532ed3++){_0x3a8c23+='%'+('00'+_0x42095f['charCodeAt'](_0x532ed3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a8c23);};const _0x229595=function(_0x3b844c,_0x34eec6){let _0x28a540=[],_0x2206f7=0x0,_0x3eedd6,_0x584df7='';_0x3b844c=_0x813c1b(_0x3b844c);let _0x57b8a3;for(_0x57b8a3=0x0;_0x57b8a3<0x100;_0x57b8a3++){_0x28a540[_0x57b8a3]=_0x57b8a3;}for(_0x57b8a3=0x0;_0x57b8a3<0x100;_0x57b8a3++){_0x2206f7=(_0x2206f7+_0x28a540[_0x57b8a3]+_0x34eec6['charCodeAt'](_0x57b8a3%_0x34eec6['length']))%0x100,_0x3eedd6=_0x28a540[_0x57b8a3],_0x28a540[_0x57b8a3]=_0x28a540[_0x2206f7],_0x28a540[_0x2206f7]=_0x3eedd6;}_0x57b8a3=0x0,_0x2206f7=0x0;for(let _0x17a115=0x0;_0x17a115<_0x3b844c['length'];_0x17a115++){_0x57b8a3=(_0x57b8a3+0x1)%0x100,_0x2206f7=(_0x2206f7+_0x28a540[_0x57b8a3])%0x100,_0x3eedd6=_0x28a540[_0x57b8a3],_0x28a540[_0x57b8a3]=_0x28a540[_0x2206f7],_0x28a540[_0x2206f7]=_0x3eedd6,_0x584df7+=String['fromCharCode'](_0x3b844c['charCodeAt'](_0x17a115)^_0x28a540[(_0x28a540[_0x57b8a3]+_0x28a540[_0x2206f7])%0x100]);}return _0x584df7;};iii1II['wgvcdi']=_0x229595,_0x33fe8a=arguments,iii1II['wVFOjY']=!![];}const _0x4f9abf=_0x56195d[0x0],_0x4f65e8=_0x4068ba+_0x4f9abf,_0x367a3c=_0x33fe8a[_0x4f65e8];return!_0x367a3c?(iii1II['bnJIvR']===undefined&&(iii1II['bnJIvR']=!![]),_0x15eb53=iii1II['wgvcdi'](_0x15eb53,_0x4ed2e4),_0x33fe8a[_0x4f65e8]=_0x15eb53):_0x15eb53=_0x367a3c,_0x15eb53;},iii1II(_0x33
|
2023-10-02 19:27:13 +08:00
|
|
|
|
// 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"])
|