2023-07-27 16:14:01 +08:00
|
|
|
|
/*
|
2023-09-03 02:07:30 +08:00
|
|
|
|
活动名称:店铺抽奖 · 超级无线/超级会员
|
|
|
|
|
活动链接:https://lzkj-isv.isvjd.com/lzclient/<活动id>/cjwx/common/entry.html?activityId=<活动id>&gameType=<玩法类型>
|
|
|
|
|
https://lzkj-isv.isvjd.com/wxDrawActivity/activity/activity?activityId=<活动id>
|
2023-07-27 16:14:01 +08:00
|
|
|
|
https://cjhy-isv.isvjcloud.com/wxDrawActivity/activity/activity?activityId=<活动id>
|
|
|
|
|
环境变量:LUCK_DRAW_URL // 活动链接
|
2023-09-03 02:07:30 +08:00
|
|
|
|
LUCK_DRAW_NOTIFY // 是否推送通知(true/false),默认不推送
|
|
|
|
|
LUCK_DRAW_OPENCARD // 是否入会(true/false),默认不入会
|
2023-09-03 17:41:54 +08:00
|
|
|
|
LUCK_DRAW_BREAK // 493后继续执行,默认退出运行(true/false)
|
2023-09-03 02:07:30 +08:00
|
|
|
|
LUCK_DRAW_INTERVAL // 自定义抽奖间隔(正整数),默认1秒
|
2023-10-29 10:39:53 +08:00
|
|
|
|
LUCK_DRAW_CONC // 是否启用并发模式(true/false),默认不开启
|
|
|
|
|
LUCK_DRAW_CONC_THREADS // 控制并发线程数(正整数),默认3
|
2023-09-03 02:07:30 +08:00
|
|
|
|
LUCK_DRAW_MAX_MISS // 最大连续未抽中次数(正整数),达到此次数后会跳过运行对应账号,默认不启用此功能
|
|
|
|
|
LUCK_DRAW_NUM //运行账号数量,默认运行前7
|
|
|
|
|
LUCK_DRAW_Number // 连续无次数跳出,默认 7 次,火爆账号请设置黑名单,否则也会占用次数
|
2023-07-27 16:14:01 +08:00
|
|
|
|
LUCK_DRAW_BLACKLIST 黑名单 用&隔开 pin值
|
2023-09-03 02:36:30 +08:00
|
|
|
|
JD_LZ_OPEN // 是否开启LZ活动运行(true/false),默认运行
|
|
|
|
|
JD_CJ_OPEN // 是否开启CJ活动运行(true/false),默认运行
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
2023-09-03 10:16:18 +08:00
|
|
|
|
注:只有在没有抽奖次数的情况下才会去做任务获取,部分活动涉及定制接口会导致请求响应非法操作
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
2023-10-29 10:39:53 +08:00
|
|
|
|
2023/9/6 修复 500错误 修复黑名单无效
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
2023-10-29 10:39:53 +08:00
|
|
|
|
#店铺抽奖通用活动-加密
|
|
|
|
|
1 1 1 1 * jd_luck_draw.js, tag=店铺抽奖通用活动-加密, enabled=true
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
2023-09-03 02:07:30 +08:00
|
|
|
|
*/
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
2023-09-03 02:07:30 +08:00
|
|
|
|
const $ = new Env('店铺抽奖(超级无线/超级会员)');
|
2023-10-31 19:52:18 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const I11iii=iii1II;(function(ilil,I11ill,I1illI,IiiII1,lIli1,I1ill1,lIIl1l){return ilil=ilil>>0x2,I1ill1='hs',lIIl1l='hs',function(Ii1i11,lIIl1i,lll111,iIill1,Illili){const IIii1=iii1II;iIill1='tfi',I1ill1=iIill1+I1ill1,Illili='up',lIIl1l+=Illili,I1ill1=lll111(I1ill1),lIIl1l=lll111(lIIl1l),lll111=0x0;const il1III=Ii1i11();while(!![]&&--IiiII1+lIIl1i){try{iIill1=-parseInt(IIii1(0x748,'8nb0'))/0x1*(parseInt(IIii1(0x2f7,'[ro&'))/0x2)+parseInt(IIii1(0x3f1,'VCDO'))/0x3*(-parseInt(IIii1(0x76b,'D)1T'))/0x4)+-parseInt(IIii1(0x86f,'[ro&'))/0x5+-parseInt(IIii1(0x776,'bgJ@'))/0x6*(-parseInt(IIii1(0x7e2,'][j^'))/0x7)+parseInt(IIii1(0x524,'NM6X'))/0x8+parseInt(IIii1(0x679,'38CQ'))/0x9*(parseInt(IIii1(0x5aa,'VCDO'))/0xa)+-parseInt(IIii1(0x992,'D)1T'))/0xb;}catch(II1111){iIill1=lll111;}finally{Illili=il1III[I1ill1]();if(ilil<=IiiII1)lll111?lIli1?iIill1=Illili:lIli1=Illili:lll111=Illili;else{if(lll111==lIli1['replace'](/[pDWSVMlOYqbANEtkUwTdC=]/g,'')){if(iIill1===lIIl1i){il1III['un'+I1ill1](Illili);break;}il1III[lIIl1l](Illili);}}}}}(I1illI,I11ill,function(lliIII,illi,illl,lll11I,iI1il1,il1II1,II111I){return illi='\x73\x70\x6c\x69\x74',lliIII=arguments[0x0],lliIII=lliIII[illi](''),illl=`\x72\x65\x76\x65\x72\x73\x65`,lliIII=lliIII[illl]('\x76'),lll11I=`\x6a\x6f\x69\x6e`,(0x145466,lliIII[lll11I](''));});}(0x300,0x8e38d,Iii11l,0xc2),Iii11l)&&(version_=I11iii(0x34a,'*hc3'));const Il1lIl=$[I11iii(0x625,'[CJE')]()?require(I11iii(0x432,'oG02')):'',I1111I=require(I11iii(0x588,'dk#I')),I1I11=require(I11iii(0x682,'bgJ@')),il11l1=require(I11iii(0x7dd,'YZ)t')),{wuxian_savePrize:I1I1l}=require('./function/krsavePrize'),i1II1I=require('crypto-js');let IIiliI=[];const I1I1i=process[I11iii(0x77d,'5%Lv')][I11iii(0x6e8,'Df65')]||'',iiiiii=process['env'][I11iii(0x67d,'skt%')]===I11iii(0x998,'[ro&'),iiiiil=process[I11iii(0x3b1,'bgJ@')][I11iii(0x826,'h9DY')]===I11iii(0x39e,'kX6m'),l1Il11=process['env'][I11iii(0x444,'dk#I')]===I11iii(0x882,'YZ)t'),IIl1lI=process[I11iii(0x7bc,'jo9p')][I11iii(0x425,'g1XB')]===I11iii(0x44c,'skt%'),ilii1i=process[I11iii(0x11c,'oG02')]['LUCK_DRAW_CONC_THREADS']||'3';let IiliIl=process[I11iii(0x97d,'m1$m')][I11iii(0x1e3,'38CQ')]||'0';const ilii1l=process[I11iii(0x39c,'][j^')][I11iii(0x1d5,'Kf0p')]||'';let llllii=process[I11iii(0x8b2,'*c7m')][I11iii(0x521,'RJkf')]||'',l11l=0x7;process['env'][I11iii(0x1f9,'C51(')]&&process[I11iii(0x39c,'][j^')][I11iii(0x52a,'DZH3')]!=0x7&&(l11l=process[I11iii(0x1c8,'iGcb')][I11iii(0x17f,'(M&D')]);let illiII=!![],li1IIl=process[I11iii(0x959,'C51(')]['LUCK_DRAW_Number']?process[I11iii(0x581,'*hc3')]['LUCK_DRAW_Number']:'11',llllil=process[I11iii(0x35d,'7M4V')][I11iii(0x38c,'[zyr')]?process[I11iii(0x1c8,'iGcb')]['JD_LZ_OPEN']:I11iii(0x77c,'D)1T'),II1ill=process['env'][I11iii(0x8bd,'[CJE')]?process[I11iii(0x97d,'m1$m')][I11iii(0x6ec,'ZLvN')]:I11iii(0x882,'YZ)t'),ilili='',iII1iI='',II1ili='';if($[I11iii(0x481,'y0Nn')]()){if(JSON[I11iii(0x4c1,'ZLvN')](process['env'])[I11iii(0x794,'!Gtm')](I11iii(0x433,'C51('))>-0x1)process['exit'](0x0);Object[I11iii(0x193,'D!$!')](Il1lIl)[I11iii(0x5f8,'M11Z')](IIl1ll=>{const iI1l1=I11iii;IIiliI[iI1l1(0x42e,'jo9p')](Il1lIl[IIl1ll]);});if(process[I11iii(0x77d,'5%Lv')]['JD_DEBUG']&&process['env'][I11iii(0x77e,'h9DY')]==='false')console[I11iii(0x331,'KFjn')]=()=>{};}else IIiliI=[$[I11iii(0x34f,'NM6X')](I11iii(0x7ed,'r8Gc')),$[I11iii(0x4da,'RJkf')](I11iii(0x315,'][j^')),...$[I11iii(0x7be,'*c7m')]($[I11iii(0x34f,'NM6X')](I11iii(0x81b,'[ro&'))||'[]')[I11iii(0x4de,'vJqW')](lliIll=>lliIll[I11iii(0x491,'Kf0p')])][I11iii(0x60d,'*c7m')](iIIi=>!!iIIi);!IIiliI[0x0]&&($[I11iii(0x40e,'[CJE')]($[I11iii(0x71b,'Df65')],'【提示】请先获取Cookie'),process['exit'](0x1));let ilill='',li1IIi='';$[I11iii(0x7ad,'*hc3')]=process[I11iii(0x360,'skt%')][I11iii(0x304,'YZ)t')]||ilill,$[I11iii(0x3ae,'[L0@')]=process[I11iii(0x35d,'7M4V')][I11iii(0x6a1,'eFtH')]||li1IIi,l11i(),IiIl1i(),!(async()=>{const I11iil=I11iii,lllliI={'wOSwH':I11iil(0x608,'*je1'),'BpVcE':function(illiIl,iIIl){return illiIl%iIIl;},'NEjLr':function(il11li,il11ll,iII1il){return il11li(il11ll,iII1il
|
2023-07-27 16:14:01 +08:00
|
|
|
|
// prettier-ignore
|
2023-10-30 23:09:08 +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"])
|