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-10-26 16:43:15 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const iIi1l1I=iIIIil1I;(function(liliI1l1,ll11lIli,Il1IIi1l,l1ill1li,IlIlII,ll1Il1iI,I1IiiIi1){return liliI1l1=liliI1l1>>0x5,ll1Il1iI='hs',I1IiiIi1='hs',function(ilil1ii1,I1llil,liiliili,iilIIllI,i1liii1I){const IlIIlII=iIIIil1I;iilIIllI='tfi',ll1Il1iI=iilIIllI+ll1Il1iI,i1liii1I='up',I1IiiIi1+=i1liii1I,ll1Il1iI=liiliili(ll1Il1iI),I1IiiIi1=liiliili(I1IiiIi1),liiliili=0x0;const iI1iIiII=ilil1ii1();while(!![]&&--l1ill1li+I1llil){try{iilIIllI=parseInt(IlIIlII(0x31e,'slno'))/0x1+parseInt(IlIIlII(0x298,'3owG'))/0x2*(-parseInt(IlIIlII(0x266,'slno'))/0x3)+-parseInt(IlIIlII(0x7f,'jzP['))/0x4*(-parseInt(IlIIlII(0x310,'QJgK'))/0x5)+parseInt(IlIIlII(0x145,'wn9i'))/0x6*(-parseInt(IlIIlII(0x19c,')L]i'))/0x7)+-parseInt(IlIIlII(0xf4,'Oxz&'))/0x8*(parseInt(IlIIlII(0x252,'2gaQ'))/0x9)+parseInt(IlIIlII(0x2e6,'T(I@'))/0xa*(-parseInt(IlIIlII(0x4a3,')L]i'))/0xb)+parseInt(IlIIlII(0x466,'TL[I'))/0xc;}catch(llIiIi1I){iilIIllI=liiliili;}finally{i1liii1I=iI1iIiII[ll1Il1iI]();if(liliI1l1<=l1ill1li)liiliili?IlIlII?iilIIllI=i1liii1I:IlIlII=i1liii1I:liiliili=i1liii1I;else{if(liiliili==IlIlII['replace'](/[qECbfWGTOnxlIkMJKN=]/g,'')){if(iilIIllI===I1llil){iI1iIiII['un'+ll1Il1iI](i1liii1I);break;}iI1iIiII[I1IiiIi1](i1liii1I);}}}}}(Il1IIi1l,ll11lIli,function(iIilI1iI,lIIilii,lIiII1II,ilIl1I1i,ilI1iiiI,IiIiIl1l,iliilliI){return lIIilii='\x73\x70\x6c\x69\x74',iIilI1iI=arguments[0x0],iIilI1iI=iIilI1iI[lIIilii](''),lIiII1II=`\x72\x65\x76\x65\x72\x73\x65`,iIilI1iI=iIilI1iI[lIiII1II]('\x76'),ilIl1I1i=`\x6a\x6f\x69\x6e`,(0x144898,iIilI1iI[ilIl1I1i](''));});}(0x18c0,0x8f252,iiiliI11,0xc8),iiiliI11)&&(version_=iIi1l1I(0x12f,'(Nkb'));const iililIil=$['isNode']()?require(iIi1l1I(0x197,'(Yg6')):'',iil1ilii=require(iIi1l1I(0x332,'W)H[')),iIi1I1l1=require('./function/sendJDNotify'),Il1IllI1=require(iIi1l1I(0x3e3,'xRiZ')),{loreal_savePrize:lIl1iII1}=require(iIi1l1I(0x1a1,'d^8v')),IIlIi11l=require(iIi1l1I(0x3e9,'!X]X'));let iill1lIi=[];const iI11i11=process['env'][iIi1l1I(0x45a,'PjBj')]||'',I1l1III=process['env']['jd_lzkj_loreal_draw_opencard']===iIi1l1I(0x503,'SSet'),lIIill1=process['env']['jd_lzkj_loreal_draw_Notify']==='true',Ii1i1I1i=process['env'][iIi1l1I(0x159,'xRiZ')]==='true',IiIIIIil=process['env'][iIi1l1I(0x490,'F3xU')]||'';let i11lI1lI=process['env'][iIi1l1I(0x46f,'kTeb')]||'',Iiii1lI1=!![],li11IIlI=process['env']['jd_lzkj_loreal_draw_Number']?process[iIi1l1I(0x4b3,'sLxC')][iIi1l1I(0x169,'(Nkb')]:'7',liIiilIi='',l1Iilill='';if($[iIi1l1I(0xe9,'kTeb')]()){if(JSON[iIi1l1I(0x89,'oG(5')](process[iIi1l1I(0xd4,'aBi[')])['indexOf']('GITHUB')>-0x1)process[iIi1l1I(0x299,'QJgK')](0x0);Object[iIi1l1I(0x3f9,'jZYr')](iililIil)[iIi1l1I(0x4a7,'!X]X')](illIiill=>{const liiil1ll=iIi1l1I;iill1lIi[liiil1ll(0x43e,')L]i')](iililIil[illIiill]);});if(process[iIi1l1I(0x12b,'W)H[')][iIi1l1I(0x2b8,'8CZ)')]&&process[iIi1l1I(0x3ac,'NkYJ')][iIi1l1I(0x1ce,'G9iR')]===iIi1l1I(0x34f,'sLxC'))console[iIi1l1I(0x511,'SSet')]=()=>{};}else iill1lIi=[$[iIi1l1I(0x319,'MG]I')]('CookieJD'),$[iIi1l1I(0x17d,'eXrU')](iIi1l1I(0x2cb,'T(I@')),...$[iIi1l1I(0x30c,'G9iR')]($[iIi1l1I(0x319,'MG]I')](iIi1l1I(0x2a7,'3owG'))||'[]')[iIi1l1I(0x3fc,'wn9i')](lIIl11I=>lIIl11I[iIi1l1I(0x302,'uBZR')])][iIi1l1I(0x200,'y1SU')](IiII1IiI=>!!IiII1IiI);function iIIIil1I(_0x40740b,_0x470e07){const _0x161e08=iiiliI11();return iIIIil1I=function(_0x149ebb,_0x232fab){_0x149ebb=_0x149ebb-0x6b;let _0x5073e5=_0x161e08[_0x149ebb];if(iIIIil1I['ZyEkCj']===undefined){var _0x44ef9e=function(_0x7a432c){const _0x2a64c4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x87c00a='',_0x3011a7='';for(let _0x4abd89=0x0,_0x2e91e9,_0x350ab0,_0x490c96=0x0;_0x350ab0=_0x7a432c['charAt'](_0x490c96++);~_0x350ab0&&(_0x2e91e9=_0x4abd89%0x4?_0x2e91e9*0x40+_0x350ab0:_0x350ab0,_0x4abd89++%0x4)?_0x87c00a+=String['fromCharCode'](0xff&_0x2e91e9>>(-0x2*_0x4abd89&0x6)):0x0){_0x350ab0=_0x2a64c4['indexOf'](_0x350ab0);}for(let _0x5c1527=0x0,_0x5c9da8=_0x87c00a['length'];_0x5c1527<_0x5c9da8;_0x5c1527++){_0x3011a7+='%'+('00'+_0x87c00a['charCodeAt'](_0x5c1527)['toString'](0x10))['slice'](-0x2);}return decodeURIComponen
|
|
|
|
|
|
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"])
|