2023-08-01 16:47:55 +08:00
|
|
|
|
/*
|
|
|
|
|
活动名称:组队瓜分奖品 · 超级无线/超级会员
|
2023-09-28 08:29:17 +08:00
|
|
|
|
活动链接:https://lzkj-isv.isvjd.com/wxTeam/activity2/activity?activityId=<活动id>
|
|
|
|
|
https://cjhy-isv.isvjcloud.com/wxTeam/activity?activityId=<活动id>
|
2023-08-01 16:47:55 +08:00
|
|
|
|
环境变量:jd_wxTeam_activityUrl // 活动链接(必填)
|
2023-09-28 08:29:17 +08:00
|
|
|
|
jd_wxTeam_joinMember // 是否入会(true/false),默认不入会(并发不支持入会)
|
2023-08-01 16:47:55 +08:00
|
|
|
|
jd_wxTeam_Notify // 是否推送通知(true/false),默认不推送
|
2023-08-05 19:19:49 +08:00
|
|
|
|
jd_wxTeam_Concurrent // 是否启用并发模式(true/false),默认不开启
|
|
|
|
|
jd_wxTeam_maxConcurrency // 控制最大并发线程数,默认3
|
2023-09-28 08:29:17 +08:00
|
|
|
|
jd_wxTeam_blacklist 黑名单 用&隔开 pin值
|
|
|
|
|
JD_LZ_OPEN // 是否开启LZ活动运行,默认运行
|
|
|
|
|
JD_CJ_OPEN // 是否开启CJ活动运行,默认运行
|
|
|
|
|
jd_wxTeam_break // 493后继续执行,默认退出运行(true/false)
|
2023-08-01 16:47:55 +08:00
|
|
|
|
|
2023-10-22 13:28:19 +08:00
|
|
|
|
队长无效或无法创建战队时会退出执行,并发模式下也支持入会
|
2023-08-01 16:47:55 +08:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('组队瓜分奖品(超级无线/超级会员)')
|
2023-10-22 17:32:14 +08:00
|
|
|
|
var version_='jsjiami.com.v7';function l1Iilii(_0xf6e96e,_0x555c93){const _0x23598a=Ii1iIIil();return l1Iilii=function(_0x1c2ed6,_0xfed32a){_0x1c2ed6=_0x1c2ed6-0x17e;let _0xda047d=_0x23598a[_0x1c2ed6];if(l1Iilii['RuOyns']===undefined){var _0x180caa=function(_0x364fae){const _0x598cef='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x180573='',_0x597e59='';for(let _0x277b22=0x0,_0x3fb891,_0x2f8e72,_0xa22dcc=0x0;_0x2f8e72=_0x364fae['charAt'](_0xa22dcc++);~_0x2f8e72&&(_0x3fb891=_0x277b22%0x4?_0x3fb891*0x40+_0x2f8e72:_0x2f8e72,_0x277b22++%0x4)?_0x180573+=String['fromCharCode'](0xff&_0x3fb891>>(-0x2*_0x277b22&0x6)):0x0){_0x2f8e72=_0x598cef['indexOf'](_0x2f8e72);}for(let _0x1bed56=0x0,_0x437fdd=_0x180573['length'];_0x1bed56<_0x437fdd;_0x1bed56++){_0x597e59+='%'+('00'+_0x180573['charCodeAt'](_0x1bed56)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x597e59);};const _0x4c420e=function(_0x29b78f,_0x18e641){let _0x3b49df=[],_0xda4dff=0x0,_0xa9a34f,_0x26ca17='';_0x29b78f=_0x180caa(_0x29b78f);let _0x4ff831;for(_0x4ff831=0x0;_0x4ff831<0x100;_0x4ff831++){_0x3b49df[_0x4ff831]=_0x4ff831;}for(_0x4ff831=0x0;_0x4ff831<0x100;_0x4ff831++){_0xda4dff=(_0xda4dff+_0x3b49df[_0x4ff831]+_0x18e641['charCodeAt'](_0x4ff831%_0x18e641['length']))%0x100,_0xa9a34f=_0x3b49df[_0x4ff831],_0x3b49df[_0x4ff831]=_0x3b49df[_0xda4dff],_0x3b49df[_0xda4dff]=_0xa9a34f;}_0x4ff831=0x0,_0xda4dff=0x0;for(let _0x3e5d6c=0x0;_0x3e5d6c<_0x29b78f['length'];_0x3e5d6c++){_0x4ff831=(_0x4ff831+0x1)%0x100,_0xda4dff=(_0xda4dff+_0x3b49df[_0x4ff831])%0x100,_0xa9a34f=_0x3b49df[_0x4ff831],_0x3b49df[_0x4ff831]=_0x3b49df[_0xda4dff],_0x3b49df[_0xda4dff]=_0xa9a34f,_0x26ca17+=String['fromCharCode'](_0x29b78f['charCodeAt'](_0x3e5d6c)^_0x3b49df[(_0x3b49df[_0x4ff831]+_0x3b49df[_0xda4dff])%0x100]);}return _0x26ca17;};l1Iilii['RvFDcy']=_0x4c420e,_0xf6e96e=arguments,l1Iilii['RuOyns']=!![];}const _0x2d61f8=_0x23598a[0x0],_0x49ee42=_0x1c2ed6+_0x2d61f8,_0x24ddfe=_0xf6e96e[_0x49ee42];return!_0x24ddfe?(l1Iilii['FOwrZl']===undefined&&(l1Iilii['FOwrZl']=!![]),_0xda047d=l1Iilii['RvFDcy'](_0xda047d,_0xfed32a),_0xf6e96e[_0x49ee42]=_0xda047d):_0xda047d=_0x24ddfe,_0xda047d;},l1Iilii(_0xf6e96e,_0x555c93);}const lIIiIlII=l1Iilii;(function(ilIl1II,I111liil,IIIiiIII,il1iIliI,il1Ii1l,I11i1Ili,I1lI1i11){return ilIl1II=ilIl1II>>0x4,I11i1Ili='hs',I1lI1i11='hs',function(liiIil,iIliiilI,l1i1I1Il,il1lliII,l11IlIll){const I1llII1=l1Iilii;il1lliII='tfi',I11i1Ili=il1lliII+I11i1Ili,l11IlIll='up',I1lI1i11+=l11IlIll,I11i1Ili=l1i1I1Il(I11i1Ili),I1lI1i11=l1i1I1Il(I1lI1i11),l1i1I1Il=0x0;const ii1I111I=liiIil();while(!![]&&--il1iIliI+iIliiilI){try{il1lliII=parseInt(I1llII1(0x194,'E*E#'))/0x1*(parseInt(I1llII1(0x591,'doai'))/0x2)+-parseInt(I1llII1(0x392,'@eA]'))/0x3*(parseInt(I1llII1(0x25e,'q0lS'))/0x4)+parseInt(I1llII1(0x524,'coJi'))/0x5*(parseInt(I1llII1(0x3d7,')KGt'))/0x6)+-parseInt(I1llII1(0x3f6,'y]Oi'))/0x7*(-parseInt(I1llII1(0x22a,'OmwE'))/0x8)+-parseInt(I1llII1(0x1cb,'6Yb6'))/0x9*(parseInt(I1llII1(0x239,'WFnE'))/0xa)+-parseInt(I1llII1(0x710,'coJi'))/0xb*(-parseInt(I1llII1(0x5a9,'Y4XE'))/0xc)+-parseInt(I1llII1(0x20e,'B(Qp'))/0xd*(parseInt(I1llII1(0x4e3,'y]Oi'))/0xe);}catch(l1IIl11i){il1lliII=l1i1I1Il;}finally{l11IlIll=ii1I111I[I11i1Ili]();if(ilIl1II<=il1iIliI)l1i1I1Il?il1Ii1l?il1lliII=l11IlIll:il1Ii1l=l11IlIll:l1i1I1Il=l11IlIll;else{if(l1i1I1Il==il1Ii1l['replace'](/[hFXHkAENRdgPDQebMJqlrw=]/g,'')){if(il1lliII===iIliiilI){ii1I111I['un'+I11i1Ili](l11IlIll);break;}ii1I111I[I1lI1i11](l11IlIll);}}}}}(IIIiiIII,I111liil,function(llllllI1,III11Iil,Iii1iI,IlilIIii,li1il11I,i1llIii,l1l1iIil){return III11Iil='\x73\x70\x6c\x69\x74',llllllI1=arguments[0x0],llllllI1=llllllI1[III11Iil](''),Iii1iI=`\x72\x65\x76\x65\x72\x73\x65`,llllllI1=llllllI1[Iii1iI]('\x76'),IlilIIii=`\x6a\x6f\x69\x6e`,(0x143dba,llllllI1[IlilIIii](''));});}(0xc90,0x20ef8,Ii1iIIil,0xcb),Ii1iIIil)&&(version_=Ii1iIIil);const Ilil11ll=$[lIIiIlII(0x302,'G&P2')]()?require('./jdCookie'):'',iIiI1li=require(lIIiIlII(0x6ea,'P$AT')),l1iIl1Il=require(lIIiIlII(0x393,'Ut@s')),I1Ii1iII=require('./function/krgetToken'),I1i1iil=require('crypto-j
|
2023-08-01 16:47:55 +08:00
|
|
|
|
// prettier-ignore
|
2023-09-28 08:29:17 +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"])
|