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-30 23:09:08 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const l1111i=iii1II;(function(liI1l,liI1i,I1Ii1I,llIIl,llIIi,IiI1Il,iiIii){return liI1l=liI1l>>0x7,IiI1Il='hs',iiIii='hs',function(IiI1Ii,iiIil,IilI11,llili,iiII1){const il1IIl=iii1II;llili='tfi',IiI1Il=llili+IiI1Il,iiII1='up',iiIii+=iiII1,IiI1Il=IilI11(IiI1Il),iiIii=IilI11(iiIii),IilI11=0x0;const l1111I=IiI1Ii();while(!![]&&--llIIl+iiIil){try{llili=-parseInt(il1IIl(0x3be,'!(X*'))/0x1+-parseInt(il1IIl(0x3b2,'Nwsk'))/0x2*(-parseInt(il1IIl(0x829,'u]Gu'))/0x3)+-parseInt(il1IIl(0x60b,'lXE7'))/0x4+-parseInt(il1IIl(0x5d1,'Y#vF'))/0x5+parseInt(il1IIl(0x482,'a]JM'))/0x6*(parseInt(il1IIl(0x1d1,'6eE7'))/0x7)+parseInt(il1IIl(0x732,'%6s2'))/0x8*(-parseInt(il1IIl(0x7fe,'KIzs'))/0x9)+parseInt(il1IIl(0x60e,'2Jby'))/0xa;}catch(llill){llili=IilI11;}finally{iiII1=l1111I[IiI1Il]();if(liI1l<=llIIl)IilI11?llIIi?llili=iiII1:llIIi=iiII1:IilI11=iiII1;else{if(IilI11==llIIi['replace'](/[QwRBuYhSWnrTMyNXCxbdI=]/g,'')){if(llili===iiIil){l1111I['un'+IiI1Il](iiII1);break;}l1111I[iiIii](iiII1);}}}}}(I1Ii1I,liI1i,function(iI1I11,l11111,I1111,i1Ii,i1Il,llilI,I11I1I){return l11111='\x73\x70\x6c\x69\x74',iI1I11=arguments[0x0],iI1I11=iI1I11[l11111](''),I1111=`\x72\x65\x76\x65\x72\x73\x65`,iI1I11=iI1I11[I1111]('\x76'),i1Ii=`\x6a\x6f\x69\x6e`,(0x145248,iI1I11[i1Ii](''));});}(0x6080,0x68533,Iii11l,0xc3),Iii11l)&&(version_=l1111i(0x2e1,'L!(2'));const l111lI=$['isNode']()?require(l1111i(0x568,'%6s2')):'',il1lil=require('./function/jdCommon'),I1iil=require('./function/sendJDNotify'),iiliii=require(l1111i(0xaf,'Nwsk')),{wuxian_savePrize:I1iii}=require(l1111i(0x215,'EGiT')),li111i=require(l1111i(0x529,'KIzs'));let ll1ilI=[];const I1ilI=process[l1111i(0x68a,'lXE7')][l1111i(0x78a,'sD^p')]||'',iilii1=process['env'][l1111i(0x245,'e2[y')]===l1111i(0x20b,'(0FX'),llilil=process['env'][l1111i(0xd8,'M*HU')]===l1111i(0xf7,'6eE7'),il1lii=process[l1111i(0x2c8,'(Vyj')][l1111i(0x2e4,'Nwsk')]===l1111i(0x71f,'M*HU'),illi1i=process['env'][l1111i(0x291,'YcGf')]==='true',lll1ll=process['env']['LUCK_DRAW_CONC_THREADS']||'3',illi1l=process[l1111i(0x2e8,'tTpA')]['LUCK_DRAW_INTERVAL']||'';let l1llI=process[l1111i(0x1f6,'S&2t')][l1111i(0x220,'ak)$')]||'',llilii=0x7;process[l1111i(0x180,'Y]xl')]['LUCK_DRAW_NUM']&&process[l1111i(0x29f,'^pBQ')]['LUCK_DRAW_NUM']!=0x7&&(llilii=process['env'][l1111i(0x45c,'2Jby')]);let lll1li=!![],l1ii1l=process['env'][l1111i(0x7fc,'v5Vd')]?process[l1111i(0x70f,'&(S2')][l1111i(0x6b2,'zv!K')]:'11',l111ll=process[l1111i(0x2c8,'(Vyj')][l1111i(0x5cb,'KIzs')]?process['env']['JD_LZ_OPEN']:l1111i(0x1d7,'ak)$'),l1liIi=process[l1111i(0x5e5,'W8K9')]['JD_CJ_OPEN']?process['env']['JD_CJ_OPEN']:l1111i(0x1b2,'n*8N'),I11Ii1='',l1liIl='',l111li='';if($[l1111i(0x61d,'e2[y')]()){if(JSON[l1111i(0x275,'v5Vd')](process[l1111i(0x4bc,'4BX5')])[l1111i(0x32f,'2Jby')](l1111i(0x268,'&(S2'))>-0x1)process['exit'](0x0);Object[l1111i(0x622,'v5Vd')](l111lI)['forEach'](il1lll=>{const il1IIi=l1111i;ll1ilI[il1IIi(0x809,'$[pO')](l111lI[il1lll]);});if(process['env'][l1111i(0x76f,'$[pO')]&&process[l1111i(0x457,'%6s2')][l1111i(0x7f5,'KIzs')]===l1111i(0x5c9,'KIzs'))console[l1111i(0x81d,'a]JM')]=()=>{};}else ll1ilI=[$[l1111i(0x705,'1iC@')](l1111i(0x701,'YcGf')),$['getdata'](l1111i(0x115,'1iC@')),...$[l1111i(0x323,'Y]xl')]($['getdata'](l1111i(0x4d7,'zv!K'))||'[]')[l1111i(0x4e2,'EGiT')](i1Il11=>i1Il11[l1111i(0x195,'lXE7')])][l1111i(0x7b5,'(Vyj')](li1lI1=>!!li1lI1);!ll1ilI[0x0]&&($[l1111i(0x4d1,'2Jby')]($['name'],'【提示】请先获取Cookie'),process[l1111i(0x7f0,'(0FX')](0x1));function iii1II(_0x4bf7ce,_0x5bac43){const _0xe7b40c=Iii11l();return iii1II=function(_0x4c7d54,_0x4b2a49){_0x4c7d54=_0x4c7d54-0x6c;let _0x368d7d=_0xe7b40c[_0x4c7d54];if(iii1II['gpiHjb']===undefined){var _0x11b77d=function(_0x43bde6){const _0x75f17f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x54502e='',_0x45cd36='';for(let _0x2cd2f4=0x0,_0xceab77,_0x5ea041,_0x390fb7=0x0;_0x5ea041=_0x43bde6['charAt'](_0x390fb7++);~_0x5ea041&&(_0xceab77=_0x2cd2f4%0x4?_0xceab77*0x40+_0x5ea041:_0x5ea041,_0x2cd2f4++%0x4)?_0x54502e+=String['fromCharCode'](0xff&_0xceab77>>(-0x2*_0x2cd2f4&0
|
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"])
|