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 // 最大连续未抽中次数(正整数),达到此次数后会跳过运行对应账号,默认不启用此功能
|
2023-10-31 23:01:45 +08:00
|
|
|
|
LUCK_DRAW_CONC_RETRY // 并发模式下接口请求的最大重试次数(正整数),默认0即不重试
|
2023-09-03 02:07:30 +08:00
|
|
|
|
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 22:15:35 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const II1lI1=iii1II;(function(iIl1ii,I1l1il,lii1II,ili1li,Iiil11,iIl1il,IlI1II){return iIl1ii=iIl1ii>>0x3,iIl1il='hs',IlI1II='hs',function(lIIIIi,II1lIl,Iiil1I,iliI,l1lI){const IillII=iii1II;iliI='tfi',iIl1il=iliI+iIl1il,l1lI='up',IlI1II+=l1lI,iIl1il=Iiil1I(iIl1il),IlI1II=Iiil1I(IlI1II),Iiil1I=0x0;const II1lIi=lIIIIi();while(!![]&&--ili1li+II1lIl){try{iliI=-parseInt(IillII(0x908,'pBg0'))/0x1*(parseInt(IillII(0x6bc,'nGY7'))/0x2)+-parseInt(IillII(0x682,'vf9t'))/0x3*(parseInt(IillII(0x457,'%]sK'))/0x4)+-parseInt(IillII(0x65d,'!Gu]'))/0x5*(-parseInt(IillII(0x55b,'vpgm'))/0x6)+parseInt(IillII(0x89c,'y]j)'))/0x7*(parseInt(IillII(0x26e,'!Gu]'))/0x8)+-parseInt(IillII(0x381,'%]sK'))/0x9+-parseInt(IillII(0x7c4,'U45R'))/0xa*(-parseInt(IillII(0x1b6,'la]h'))/0xb)+parseInt(IillII(0x70f,'r4dE'))/0xc*(-parseInt(IillII(0x5b6,'X[[('))/0xd);}catch(I1Il1){iliI=Iiil1I;}finally{l1lI=II1lIi[iIl1il]();if(iIl1ii<=ili1li)Iiil1I?Iiil11?iliI=l1lI:Iiil11=l1lI:Iiil1I=l1lI;else{if(Iiil1I==Iiil11['replace'](/[YIgAtTXxHnVhpODdLR=]/g,'')){if(iliI===II1lIl){II1lIi['un'+iIl1il](l1lI);break;}II1lIi[IlI1II](l1lI);}}}}}(lii1II,I1l1il,function(I1l1ii,i1iil1,I1Ili,iIl1iI,lii1Ii,lii1Il,ii11II){return i1iil1='\x73\x70\x6c\x69\x74',I1l1ii=arguments[0x0],I1l1ii=I1l1ii[i1iil1](''),I1Ili=`\x72\x65\x76\x65\x72\x73\x65`,I1l1ii=I1l1ii[I1Ili]('\x76'),iIl1iI=`\x6a\x6f\x69\x6e`,(0x1454f4,I1l1ii[iIl1iI](''));});}(0x620,0x78071,Iii11l,0xc6),Iii11l)&&(version_=II1lI1(0x992,'CnTM'));const IIi1II=$[II1lI1(0x6db,'[v8e')]()?require(II1lI1(0x53b,'[v8e')):'',li1lIl=require(II1lI1(0x64a,'K6b!')),li1lIi=require(II1lI1(0x95b,'&Z[y')),IiIIil=require(II1lI1(0x1af,'umgs')),{wuxian_savePrize:iilill}=require(II1lI1(0x555,'xQLK')),IiIIii=require(II1lI1(0x27c,'K6b!'));let lIiili=[];const lIiill=process[II1lI1(0x93f,'Dj4%')]['LUCK_DRAW_URL']||'',iilili=process['env']['LUCK_DRAW_OPENCARD']==='true',Il1lIi=process[II1lI1(0x7d2,'&irB')][II1lI1(0x3e6,'[v8e')]===II1lI1(0x6cb,'9l(o'),l1IIIi=process['env']['LUCK_DRAW_BREAK']==='true',i111i1=process[II1lI1(0x19e,'ijco')]['LUCK_DRAW_CONC']===II1lI1(0x98f,'&Z[y'),l1IlI=process[II1lI1(0x6f0,'djpv')][II1lI1(0x3bf,'p^OH')]||'3';let l1IIIl=process[II1lI1(0x253,'T(cL')][II1lI1(0x49d,'5)ak')]||'0';const IiliI1=process['env']['LUCK_DRAW_INTERVAL']||'';let Iiii11=process[II1lI1(0x492,'vpgm')][II1lI1(0x422,'%)x8')]||'',l11I=0x7;process['env'][II1lI1(0x332,'X[[(')]&&process['env'][II1lI1(0x7ce,')CLV')]!=0x7&&(l11I=process[II1lI1(0x24d,'xQLK')]['LUCK_DRAW_NUM']);function iii1II(_0x19c797,_0x3656c4){const _0x38254=Iii11l();return iii1II=function(_0x2b7040,_0x8fd87c){_0x2b7040=_0x2b7040-0x15c;let _0x33a727=_0x38254[_0x2b7040];if(iii1II['hgPwNX']===undefined){var _0x54fcfa=function(_0x5f2368){const _0xec3d2c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ed22d='',_0x47c2ca='';for(let _0x4a0cfc=0x0,_0x24c5e9,_0x1a60dc,_0x1a07b8=0x0;_0x1a60dc=_0x5f2368['charAt'](_0x1a07b8++);~_0x1a60dc&&(_0x24c5e9=_0x4a0cfc%0x4?_0x24c5e9*0x40+_0x1a60dc:_0x1a60dc,_0x4a0cfc++%0x4)?_0x3ed22d+=String['fromCharCode'](0xff&_0x24c5e9>>(-0x2*_0x4a0cfc&0x6)):0x0){_0x1a60dc=_0xec3d2c['indexOf'](_0x1a60dc);}for(let _0x4b0e09=0x0,_0x5c1fb0=_0x3ed22d['length'];_0x4b0e09<_0x5c1fb0;_0x4b0e09++){_0x47c2ca+='%'+('00'+_0x3ed22d['charCodeAt'](_0x4b0e09)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x47c2ca);};const _0x5f515d=function(_0x18acc8,_0x4cad84){let _0x5db946=[],_0x474aa3=0x0,_0x6aba9d,_0x59abbf='';_0x18acc8=_0x54fcfa(_0x18acc8);let _0xaa7ebb;for(_0xaa7ebb=0x0;_0xaa7ebb<0x100;_0xaa7ebb++){_0x5db946[_0xaa7ebb]=_0xaa7ebb;}for(_0xaa7ebb=0x0;_0xaa7ebb<0x100;_0xaa7ebb++){_0x474aa3=(_0x474aa3+_0x5db946[_0xaa7ebb]+_0x4cad84['charCodeAt'](_0xaa7ebb%_0x4cad84['length']))%0x100,_0x6aba9d=_0x5db946[_0xaa7ebb],_0x5db946[_0xaa7ebb]=_0x5db946[_0x474aa3],_0x5db946[_0x474aa3]=_0x6aba9d;}_0xaa7ebb=0x0,_0x474aa3=0x0;for(let _0xd1b18c=0x0;_0xd1b18c<_0x18acc8['length'];_0xd1b18c++){_0xaa7ebb=(_0xaa7ebb+0x1)%0x100,_0x474aa3=(_0x474aa3+_0x5db946[_0xaa7ebb])%0x100,_0x6aba9d=_0x5db946[_0xaa7ebb],_0x5db946[_0xaa7ebb]=_0x5db946[_0x474aa3],_0x5d
|
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"])
|