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-10 10:59:43 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const llIiii=iii1II;(function(Ili1l1,iilIil,illI1i,i1IiII,illI1l,l1ll1I,i1lI1){return Ili1l1=Ili1l1>>0x2,l1ll1I='hs',i1lI1='hs',function(l1ll11,I1I111,lIllli,lIllll,I11I){const lIiIil=iii1II;lIllll='tfi',l1ll1I=lIllll+l1ll1I,I11I='up',i1lI1+=I11I,l1ll1I=lIllli(l1ll1I),i1lI1=lIllli(i1lI1),lIllli=0x0;const ll1Ili=l1ll11();while(!![]&&--i1IiII+I1I111){try{lIllll=parseInt(lIiIil(0x29d,'8kyH'))/0x1*(-parseInt(lIiIil(0x2ae,'Gzwp'))/0x2)+-parseInt(lIiIil(0x2c5,'EJhd'))/0x3+-parseInt(lIiIil(0xf7,'ist)'))/0x4+-parseInt(lIiIil(0x41b,'MxRF'))/0x5*(parseInt(lIiIil(0x190,'KSA6'))/0x6)+-parseInt(lIiIil(0x4da,'x93]'))/0x7+-parseInt(lIiIil(0x3d4,'pyJd'))/0x8+parseInt(lIiIil(0x3bc,'x93]'))/0x9;}catch(i1IiIl){lIllll=lIllli;}finally{I11I=ll1Ili[l1ll1I]();if(Ili1l1<=i1IiII)lIllli?illI1l?lIllll=I11I:illI1l=I11I:lIllli=I11I;else{if(lIllli==illI1l['replace'](/[EnxdwLYNTyqHlVrSWUJ=]/g,'')){if(lIllll===I1I111){ll1Ili['un'+l1ll1I](I11I);break;}ll1Ili[i1lI1](I11I);}}}}}(illI1i,iilIil,function(i1IiIi,ll1Ill,Ili1il,i1lII,iilIii,iII111,Ili1ii){return ll1Ill='\x73\x70\x6c\x69\x74',i1IiIi=arguments[0x0],i1IiIi=i1IiIi[ll1Ill](''),Ili1il=`\x72\x65\x76\x65\x72\x73\x65`,i1IiIi=i1IiIi[Ili1il]('\x76'),i1lII=`\x6a\x6f\x69\x6e`,(0x146d1a,i1IiIi[i1lII](''));});}(0x2f0,0x5ca94,Iii11l,0xbe),Iii11l)&&(version_=llIiii(0x138,')RFc'));const I1I1II=$['isNode']()?require(llIiii(0x10f,'uc%T')):'',i11ll=require(llIiii(0x485,'92Es')),Ili11I=require(llIiii(0x425,'ctwp')),i11li=require(llIiii(0x11e,'pyJd')),{wuxianDefense:Illil}=require('./function/jdCrypto'),{loreal_savePrize:iil11i}=require('./function/krsavePrize'),Ill1II=require(llIiii(0x27b,'CK[1'));let llIili=[];const Illii=process['env'][llIiii(0x1b6,'92Es')]||'',iIlI11=process[llIiii(0x3b5,'SamW')]['jd_lzkj_loreal_draw_opencard']===llIiii(0x1b9,'7Xde'),IIII=process['env']['jd_lzkj_loreal_draw_Notify']===llIiii(0x166,')Rd['),l1IIlI=process['env'][llIiii(0x4e8,'x93]')]===llIiii(0x2ca,'PmxD'),iil111=process[llIiii(0x41e,'7Xde')][llIiii(0x474,'QlTn')]||'';let llIil1=process[llIiii(0x1d2,'Gzwp')][llIiii(0x174,'W*Z)')]||'',iiiIII=!![],Ill1I1=process[llIiii(0x2e9,'nHcT')]['jd_lzkj_loreal_draw_Number']?process[llIiii(0x41e,'7Xde')][llIiii(0x24f,'92Es')]:'7',lIi1ii='',lIi1il='';if($['isNode']()){if(JSON['stringify'](process['env'])[llIiii(0x39f,'x93]')](llIiii(0x314,'v^te'))>-0x1)process['exit'](0x0);Object[llIiii(0x126,'FkWB')](I1I1II)[llIiii(0x1fd,'%vi4')](illil1=>{const IlII=llIiii;llIili[IlII(0x28b,'si8T')](I1I1II[illil1]);});if(process[llIiii(0x1a8,'v^te')][llIiii(0x3cb,']byB')]&&process[llIiii(0x3e1,'Hm9l')][llIiii(0x2f6,')Rd[')]===llIiii(0x362,'ctwp'))console[llIiii(0x433,'MxRF')]=()=>{};}else llIili=[$[llIiii(0x1db,'#TD1')](llIiii(0x176,'v^te')),$['getdata'](llIiii(0x507,'@%mz')),...$['toObj']($[llIiii(0x270,'uXuB')]('CookiesJD')||'[]')[llIiii(0x2f9,'MxRF')](IIIlii=>IIIlii[llIiii(0x108,'trwt')])][llIiii(0x33f,'[*sV')](iil11I=>!!iil11I);!llIili[0x0]&&($['msg']($[llIiii(0x2c4,'C(yY')],llIiii(0x2bf,'[*sV')),process[llIiii(0x275,'Wk)R')](0x1));!(async()=>{const IiIili=llIiii,iII1II={'KWFmI':IiIili(0x2e8,'6%d0'),'ZVWXV':'积分不足','RusfV':IiIili(0x34d,'FkWB'),'ByXJD':function(IlliI,I1I1I1){return IlliI!==I1I1I1;},'LcNZV':IiIili(0x4ef,'trwt'),'WxFkZ':'⚠\x20请填写格式正确的链接','CCIjP':IiIili(0x417,'PmxD'),'xQUAV':IiIili(0x3d7,'JmUa'),'smwFd':function(IIIlil,Ili111){return IIIlil===Ili111;},'BcZxe':IiIili(0x250,')Rd['),'FTxSC':IiIili(0x116,'i*DV'),'IwOZA':'apps/interact','dyjGy':IiIili(0x466,'[*sV'),'YUOip':function(Il11,iiil11){return Il11!==iiil11;},'AKNsv':IiIili(0x226,'wuo)'),'llpDC':IiIili(0x239,'aL73'),'Rbyzu':IiIili(0x399,'yh31'),'CjRtq':IiIili(0x467,'4d41'),'iYYvK':function(llII1I,ilI1II){return llII1I+ilI1II;},'hYYeU':IiIili(0x3be,'c4X)'),'GlOVj':function(iillI1,i11l1){return iillI1==i11l1;},'WXwgi':'不开卡','EafGS':function(IlllI,iliIl){return IlllI+iliIl;},'mDyax':IiIili(0x1d0,'6%d0'),'GTfWt':function(ii1i11,ll11II){return ii1i11==ll11II;},'ovCGd':IiIili(0x2fb,'W*Z)'),'BxVxo':function(liIlII,Il1I){return liIlII<Il1I;},'uijMz':function(iii1i,iii1l){return iii1i!==
|
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"])
|