2023-09-08 09:56:36 +08:00
|
|
|
|
/*
|
|
|
|
|
活动名称:幸运抽奖(超级无线)
|
2023-10-02 19:16:18 +08:00
|
|
|
|
活动链接:https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=<10001/10004/10020/10021/10026/10041/10042/10046/10054/10062/10063/10073/10080>&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
2023-09-08 09:56:36 +08:00
|
|
|
|
环境变量:jd_lzkj_loreal_draw_url // 活动链接
|
|
|
|
|
jd_lzkj_loreal_draw_Notify // 是否推送通知(true/false),默认不推送
|
|
|
|
|
jd_lzkj_loreal_draw_opencard // 是否入会(true/false),默认不入会
|
|
|
|
|
jd_lzkj_loreal_draw_break // 493后继续执行,默认退出运行(true/false)
|
|
|
|
|
jd_lzkj_loreal_draw_Interval // 自定义抽奖间隔(正整数),默认1秒
|
|
|
|
|
jd_lzkj_loreal_draw_Number // 连续无次数跳出,默认 7 次,火爆账号请设置黑名单,否则也会占用次数
|
|
|
|
|
jd_lzkj_loreal_draw_MaxMiss // 最大连续未抽中次数(正整数),达到此次数后会跳过运行对应账号,默认不启用此功能
|
|
|
|
|
|
|
|
|
|
注释:
|
2023-07-28 21:29:02 +08:00
|
|
|
|
请使用本地IP环境 请使用本地IP环境 请使用本地IP环境
|
2023-09-08 09:56:36 +08:00
|
|
|
|
需要链接中的三个必要参数才能正常访问活动页,运行脚本至少需要提供 activityId 参数
|
|
|
|
|
只有在没有抽奖次数的前提下才会做任务,做任务静默运行没有打印日志
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
2023-09-08 09:56:36 +08:00
|
|
|
|
#幸运抽奖(超级无线)
|
|
|
|
|
1 1 1 1 * jd_lzkj_loreal_draw.js, tag=幸运抽奖(超级无线), enabled=true
|
2023-07-28 23:36:10 +08:00
|
|
|
|
|
2023-09-08 09:56:36 +08:00
|
|
|
|
*/
|
|
|
|
|
const $ = new Env('幸运抽奖(超级无线)');
|
2023-11-12 16:44:11 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const ll1IlI=iii1II;(function(l1iI1l,III1ll,l1lIIi,iII11I,IiIii1,l1lIIl,i1lIl){return l1iI1l=l1iI1l>>0x4,l1lIIl='hs',i1lIl='hs',function(i1lIi,iilIiI,III1li,Ili1iI,lIlll1){const I11i=iii1II;Ili1iI='tfi',l1lIIl=Ili1iI+l1lIIl,lIlll1='up',i1lIl+=lIlll1,l1lIIl=III1li(l1lIIl),i1lIl=III1li(i1lIl),III1li=0x0;const Ili1i1=i1lIi();while(!![]&&--iII11I+iilIiI){try{Ili1iI=-parseInt(I11i(0x458,'pmN['))/0x1+parseInt(I11i(0x2fa,'k6QK'))/0x2+parseInt(I11i(0x4f8,'fyZs'))/0x3*(parseInt(I11i(0x37c,'cA&d'))/0x4)+parseInt(I11i(0x5dd,'nI8G'))/0x5+-parseInt(I11i(0x29f,'qi5]'))/0x6+-parseInt(I11i(0x350,'#i3('))/0x7+-parseInt(I11i(0x411,'By2['))/0x8*(-parseInt(I11i(0x382,'NbtH'))/0x9);}catch(I1I11I){Ili1iI=III1li;}finally{lIlll1=Ili1i1[l1lIIl]();if(l1iI1l<=iII11I)III1li?IiIii1?Ili1iI=lIlll1:IiIii1=lIlll1:III1li=lIlll1;else{if(III1li==IiIii1['replace'](/[EIFRdDPMTGJLuKngVNbBhk=]/g,'')){if(Ili1iI===iilIiI){Ili1i1['un'+l1lIIl](lIlll1);break;}Ili1i1[i1lIl](lIlll1);}}}}}(l1lIIi,III1ll,function(iII11l,i1IiI1,l1lIII,iII11i,l1iI1i,lIlllI,III1lI){return i1IiI1='\x73\x70\x6c\x69\x74',iII11l=arguments[0x0],iII11l=iII11l[i1IiI1](''),l1lIII=`\x72\x65\x76\x65\x72\x73\x65`,iII11l=iII11l[l1lIII]('\x76'),iII11i=`\x6a\x6f\x69\x6e`,(0x147122,iII11l[iII11i](''));});}(0xc30,0x8dec5,Iii11l,0xc5),Iii11l)&&(version_=ll1IlI(0x498,'nI#e'));const l1l1i=$[ll1IlI(0x544,'5Gxm')]()?require(ll1IlI(0x57c,'yZIF')):'',I1I1II=require('./function/jdCommon'),i11ll=require('./function/sendJDNotify'),Ili11I=require(ll1IlI(0x263,']%TW')),{wuxianDefense:i11li}=require('./function/jdCrypto'),{loreal_savePrize:Illil}=require(ll1IlI(0x463,'xhqZ')),iil11i=require(ll1IlI(0x330,'hHM('));let Ill1II=[];const llIili=process[ll1IlI(0x398,'5Gxm')][ll1IlI(0x39e,'yZIF')]||'',Illii=process[ll1IlI(0x2a6,'OpEG')][ll1IlI(0x2b9,'cM4Y')]===ll1IlI(0x22a,'fyZs'),iIlI11=process['env'][ll1IlI(0x3f1,'x(3j')]==='true',IIII=process['env'][ll1IlI(0x372,'i5B7')]==='true',l1IIlI=process['env'][ll1IlI(0x52a,'x(3j')]||'';let iil111=process[ll1IlI(0x4aa,'NbtH')][ll1IlI(0x322,'5kZs')]||'',llIil1=!![],iiiIII=process[ll1IlI(0x543,'3loh')]['jd_lzkj_loreal_draw_Number']?process[ll1IlI(0x5e2,'@6Z0')]['jd_lzkj_loreal_draw_Number']:'7',Ill1I1='',lIi1ii='';function iii1II(_0x345f11,_0xcc6940){const _0x49af98=Iii11l();return iii1II=function(_0x181dae,_0x47e195){_0x181dae=_0x181dae-0x1bd;let _0x27037a=_0x49af98[_0x181dae];if(iii1II['YBixwy']===undefined){var _0x238267=function(_0x50ce10){const _0x3250f5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d03b0='',_0x23afbf='';for(let _0x32b9ee=0x0,_0x3dfae6,_0x5ab083,_0x23597a=0x0;_0x5ab083=_0x50ce10['charAt'](_0x23597a++);~_0x5ab083&&(_0x3dfae6=_0x32b9ee%0x4?_0x3dfae6*0x40+_0x5ab083:_0x5ab083,_0x32b9ee++%0x4)?_0x5d03b0+=String['fromCharCode'](0xff&_0x3dfae6>>(-0x2*_0x32b9ee&0x6)):0x0){_0x5ab083=_0x3250f5['indexOf'](_0x5ab083);}for(let _0x49209c=0x0,_0x336a1f=_0x5d03b0['length'];_0x49209c<_0x336a1f;_0x49209c++){_0x23afbf+='%'+('00'+_0x5d03b0['charCodeAt'](_0x49209c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23afbf);};const _0x21efec=function(_0x3ab613,_0x1996f2){let _0x2558fd=[],_0x5a04ab=0x0,_0x5f1f1a,_0x502640='';_0x3ab613=_0x238267(_0x3ab613);let _0x30198a;for(_0x30198a=0x0;_0x30198a<0x100;_0x30198a++){_0x2558fd[_0x30198a]=_0x30198a;}for(_0x30198a=0x0;_0x30198a<0x100;_0x30198a++){_0x5a04ab=(_0x5a04ab+_0x2558fd[_0x30198a]+_0x1996f2['charCodeAt'](_0x30198a%_0x1996f2['length']))%0x100,_0x5f1f1a=_0x2558fd[_0x30198a],_0x2558fd[_0x30198a]=_0x2558fd[_0x5a04ab],_0x2558fd[_0x5a04ab]=_0x5f1f1a;}_0x30198a=0x0,_0x5a04ab=0x0;for(let _0x333f6d=0x0;_0x333f6d<_0x3ab613['length'];_0x333f6d++){_0x30198a=(_0x30198a+0x1)%0x100,_0x5a04ab=(_0x5a04ab+_0x2558fd[_0x30198a])%0x100,_0x5f1f1a=_0x2558fd[_0x30198a],_0x2558fd[_0x30198a]=_0x2558fd[_0x5a04ab],_0x2558fd[_0x5a04ab]=_0x5f1f1a,_0x502640+=String['fromCharCode'](_0x3ab613['charCodeAt'](_0x333f6d)^_0x2558fd[(_0x2558fd[_0x30198a]+_0x2558fd[_0x5a04ab])%0x100]);}return _0x502640;};iii1II['MVecoF']=_0x21efec,_0x345f11=arguments,iii1II['YBixwy']=!![];}const _0xa63d1f=_0x49af98
|
2023-10-26 16:43:15 +08:00
|
|
|
|
|
2023-07-27 16:14:01 +08:00
|
|
|
|
// prettier-ignore
|
2023-10-26 16:43:15 +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"])
|