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-10 11:13:46 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const iill1i=iii1II;(function(l1lill,i1li1,iIIllI,I1Ill1,ili11,IiIiIi,llIIIl){return l1lill=l1lill>>0x4,IiIiIi='hs',llIIIl='hs',function(IIlI1I,llIIIi,IiIiIl,I1Ilil,l1I1I1){const IiIiII=iii1II;I1Ilil='tfi',IiIiIi=I1Ilil+IiIiIi,l1I1I1='up',llIIIl+=l1I1I1,IiIiIi=IiIiIl(IiIiIi),llIIIl=IiIiIl(llIIIl),IiIiIl=0x0;const I1Ilii=IIlI1I();while(!![]&&--I1Ill1+llIIIi){try{I1Ilil=-parseInt(IiIiII(0x17f,'41S@'))/0x1+parseInt(IiIiII(0x220,'0#nT'))/0x2*(-parseInt(IiIiII(0x217,'rceL'))/0x3)+parseInt(IiIiII(0x225,'dCoD'))/0x4+-parseInt(IiIiII(0xe0,'kI@z'))/0x5+-parseInt(IiIiII(0x36a,'B$U^'))/0x6+-parseInt(IiIiII(0x1ba,'TGz7'))/0x7+parseInt(IiIiII(0x268,'V@KH'))/0x8*(parseInt(IiIiII(0x21a,'2F]4'))/0x9);}catch(l1Iii){I1Ilil=IiIiIl;}finally{l1I1I1=I1Ilii[IiIiIi]();if(l1lill<=I1Ill1)IiIiIl?ili11?I1Ilil=l1I1I1:ili11=l1I1I1:IiIiIl=l1I1I1;else{if(IiIiIl==ili11['replace'](/[edSPWRGyUqFtwlDHgJXpQ=]/g,'')){if(I1Ilil===llIIIi){I1Ilii['un'+IiIiIi](l1I1I1);break;}I1Ilii[llIIIl](l1I1I1);}}}}}(iIIllI,i1li1,function(l1Iil,III1Ii,III1Il,iIIliI,IiIil,IiIii,iill1l){return III1Ii='\x73\x70\x6c\x69\x74',l1Iil=arguments[0x0],l1Iil=l1Iil[III1Ii](''),III1Il=`\x72\x65\x76\x65\x72\x73\x65`,l1Iil=l1Iil[III1Il]('\x76'),iIIliI=`\x6a\x6f\x69\x6e`,(0x146d2b,l1Iil[iIIliI](''));});}(0xcb0,0x37e9a,Iii11l,0xcd),Iii11l)&&(version_=iill1i(0x32a,'rceL'));const IIIIi1=require(iill1i(0x19c,'(6F3')),ii1IIl=require('./function/jdCommon'),ii1IIi=require(iill1i(0xdc,'I)%g')),I1ll1l=require(iill1i(0x3a2,'8LYx')),{wuxianDefense:I1ll1i}=require(iill1i(0xf1,'XP0s')),i11iII=process[iill1i(0x2c3,'o6kQ')][iill1i(0x1cf,'t%$1')]||'',lI1Ii1=process[iill1i(0x143,'Od2u')][iill1i(0x2b2,'Vz1H')]===iill1i(0x1d8,'B2gM'),i1I11=process[iill1i(0x1b1,'PuyE')][iill1i(0x395,'(6F3')]===iill1i(0x2da,'wmrS'),I1I1i1=process[iill1i(0x282,'0#nT')]['jd_lzkj_loreal_organizeTeam_break']===iill1i(0x25b,'*wXV');function iii1II(_0x1aa239,_0x312c7f){const _0x1073cf=Iii11l();return iii1II=function(_0x5dfee5,_0x3d6a7a){_0x5dfee5=_0x5dfee5-0xb3;let _0x4cb768=_0x1073cf[_0x5dfee5];if(iii1II['OnEUvn']===undefined){var _0x1a933b=function(_0x16a4aa){const _0x4129fd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3cd5e5='',_0x1d3843='';for(let _0x3bdb1c=0x0,_0xffd213,_0x491ed0,_0x510491=0x0;_0x491ed0=_0x16a4aa['charAt'](_0x510491++);~_0x491ed0&&(_0xffd213=_0x3bdb1c%0x4?_0xffd213*0x40+_0x491ed0:_0x491ed0,_0x3bdb1c++%0x4)?_0x3cd5e5+=String['fromCharCode'](0xff&_0xffd213>>(-0x2*_0x3bdb1c&0x6)):0x0){_0x491ed0=_0x4129fd['indexOf'](_0x491ed0);}for(let _0x452228=0x0,_0x492349=_0x3cd5e5['length'];_0x452228<_0x492349;_0x452228++){_0x1d3843+='%'+('00'+_0x3cd5e5['charCodeAt'](_0x452228)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1d3843);};const _0x9e9fad=function(_0x4246b5,_0x3f94b0){let _0x3ff52d=[],_0x1bf5b4=0x0,_0x28c34a,_0x3292fe='';_0x4246b5=_0x1a933b(_0x4246b5);let _0x3a64cd;for(_0x3a64cd=0x0;_0x3a64cd<0x100;_0x3a64cd++){_0x3ff52d[_0x3a64cd]=_0x3a64cd;}for(_0x3a64cd=0x0;_0x3a64cd<0x100;_0x3a64cd++){_0x1bf5b4=(_0x1bf5b4+_0x3ff52d[_0x3a64cd]+_0x3f94b0['charCodeAt'](_0x3a64cd%_0x3f94b0['length']))%0x100,_0x28c34a=_0x3ff52d[_0x3a64cd],_0x3ff52d[_0x3a64cd]=_0x3ff52d[_0x1bf5b4],_0x3ff52d[_0x1bf5b4]=_0x28c34a;}_0x3a64cd=0x0,_0x1bf5b4=0x0;for(let _0x2646a8=0x0;_0x2646a8<_0x4246b5['length'];_0x2646a8++){_0x3a64cd=(_0x3a64cd+0x1)%0x100,_0x1bf5b4=(_0x1bf5b4+_0x3ff52d[_0x3a64cd])%0x100,_0x28c34a=_0x3ff52d[_0x3a64cd],_0x3ff52d[_0x3a64cd]=_0x3ff52d[_0x1bf5b4],_0x3ff52d[_0x1bf5b4]=_0x28c34a,_0x3292fe+=String['fromCharCode'](_0x4246b5['charCodeAt'](_0x2646a8)^_0x3ff52d[(_0x3ff52d[_0x3a64cd]+_0x3ff52d[_0x1bf5b4])%0x100]);}return _0x3292fe;};iii1II['yVLxLa']=_0x9e9fad,_0x1aa239=arguments,iii1II['OnEUvn']=!![];}const _0x5598a3=_0x1073cf[0x0],_0x49cec7=_0x5dfee5+_0x5598a3,_0x5591fb=_0x1aa239[_0x49cec7];return!_0x5591fb?(iii1II['BWMhNM']===undefined&&(iii1II['BWMhNM']=!![]),_0x4cb768=iii1II['yVLxLa'](_0x4cb768,_0x3d6a7a),_0x1aa239[_0x49cec7]=_0x4cb768):_0x4cb768=_0x5591fb,_0x4cb768;},iii1II(_0x1aa239,_0x312c7f);}function Iii11l(){const l1iiIl=(function(){return[...[versio
|
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"])
|