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
|
|
|
|
|
|
|
|
|
队长无效或无法创建战队时会退出执行
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('组队瓜分奖品(超级无线/超级会员)')
|
2023-09-28 08:29:17 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const i11IiIlI=l1II111;(function(liIi11,iiII1Ii,Ilill1Il,illl1II1,i111il,I1lIi1I,lIl1iI1i){return liIi11=liIi11>>0x5,I1lIi1I='hs',lIl1iI1i='hs',function(lIl1lI,il1l1i11,llilii1l,I1IIIIIi,ilil1iiI){const i1IillII=l1II111;I1IIIIIi='tfi',I1lIi1I=I1IIIIIi+I1lIi1I,ilil1iiI='up',lIl1iI1i+=ilil1iiI,I1lIi1I=llilii1l(I1lIi1I),lIl1iI1i=llilii1l(lIl1iI1i),llilii1l=0x0;const il1i1i1i=lIl1lI();while(!![]&&--illl1II1+il1l1i11){try{I1IIIIIi=parseInt(i1IillII(0x502,'Cp$h'))/0x1*(-parseInt(i1IillII(0x644,'*541'))/0x2)+-parseInt(i1IillII(0x59b,'Z5on'))/0x3*(-parseInt(i1IillII(0x3d0,'RwOF'))/0x4)+parseInt(i1IillII(0x453,'qD4N'))/0x5*(parseInt(i1IillII(0x46f,'qdKT'))/0x6)+-parseInt(i1IillII(0x369,'TLPn'))/0x7*(parseInt(i1IillII(0x6c0,'ZmH6'))/0x8)+parseInt(i1IillII(0x48a,'n[UW'))/0x9+parseInt(i1IillII(0x571,'7Q97'))/0xa+-parseInt(i1IillII(0x674,'g2qy'))/0xb;}catch(IIIlIlII){I1IIIIIi=llilii1l;}finally{ilil1iiI=il1i1i1i[I1lIi1I]();if(liIi11<=illl1II1)llilii1l?i111il?I1IIIIIi=ilil1iiI:i111il=ilil1iiI:llilii1l=ilil1iiI;else{if(llilii1l==i111il['replace'](/[dLPBerASTpWgGkqVMRly=]/g,'')){if(I1IIIIIi===il1l1i11){il1i1i1i['un'+I1lIi1I](ilil1iiI);break;}il1i1i1i[lIl1iI1i](ilil1iiI);}}}}}(Ilill1Il,iiII1Ii,function(IIliIIIl,l11lli1,Ii11ll1I,Ii1l1llI,iIiiI1I,ll1I1I1,lIliI11I){return l11lli1='\x73\x70\x6c\x69\x74',IIliIIIl=arguments[0x0],IIliIIIl=IIliIIIl[l11lli1](''),Ii11ll1I=`\x72\x65\x76\x65\x72\x73\x65`,IIliIIIl=IIliIIIl[Ii11ll1I]('\x76'),Ii1l1llI=`\x6a\x6f\x69\x6e`,(0x14045f,IIliIIIl[Ii1l1llI](''));});}(0x1880,0xb8c48,i1I1IlI1,0xc6),i1I1IlI1)&&(version_=i1I1IlI1);const ill1Il=$[i11IiIlI(0x1a7,'Vi*i')]()?require('./jdCookie'):'',Iiiiii=require(i11IiIlI(0x301,'X**#')),ll1lIi1l=require(i11IiIlI(0x5dc,'LF&E')),il11I1i1=require(i11IiIlI(0x2df,'7Q97')),lli1l1l=require(i11IiIlI(0x344,'RwOF'));let llIl1l11=[];function l1II111(_0x14d925,_0x4e69c){const _0x87013b=i1I1IlI1();return l1II111=function(_0x3dec7d,_0x4f1215){_0x3dec7d=_0x3dec7d-0x167;let _0x396b55=_0x87013b[_0x3dec7d];if(l1II111['XLCnCz']===undefined){var _0x385fbd=function(_0x49eb4f){const _0x22d35c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30406c='',_0x171136='';for(let _0x44bdb3=0x0,_0x6ce380,_0x40be26,_0xd8d60d=0x0;_0x40be26=_0x49eb4f['charAt'](_0xd8d60d++);~_0x40be26&&(_0x6ce380=_0x44bdb3%0x4?_0x6ce380*0x40+_0x40be26:_0x40be26,_0x44bdb3++%0x4)?_0x30406c+=String['fromCharCode'](0xff&_0x6ce380>>(-0x2*_0x44bdb3&0x6)):0x0){_0x40be26=_0x22d35c['indexOf'](_0x40be26);}for(let _0x25803f=0x0,_0x48c572=_0x30406c['length'];_0x25803f<_0x48c572;_0x25803f++){_0x171136+='%'+('00'+_0x30406c['charCodeAt'](_0x25803f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x171136);};const _0x3ae434=function(_0x4b7c0a,_0x33363e){let _0x2ea8d4=[],_0x3f7b63=0x0,_0x30f361,_0x5bd9fb='';_0x4b7c0a=_0x385fbd(_0x4b7c0a);let _0x581b66;for(_0x581b66=0x0;_0x581b66<0x100;_0x581b66++){_0x2ea8d4[_0x581b66]=_0x581b66;}for(_0x581b66=0x0;_0x581b66<0x100;_0x581b66++){_0x3f7b63=(_0x3f7b63+_0x2ea8d4[_0x581b66]+_0x33363e['charCodeAt'](_0x581b66%_0x33363e['length']))%0x100,_0x30f361=_0x2ea8d4[_0x581b66],_0x2ea8d4[_0x581b66]=_0x2ea8d4[_0x3f7b63],_0x2ea8d4[_0x3f7b63]=_0x30f361;}_0x581b66=0x0,_0x3f7b63=0x0;for(let _0x1c0ae6=0x0;_0x1c0ae6<_0x4b7c0a['length'];_0x1c0ae6++){_0x581b66=(_0x581b66+0x1)%0x100,_0x3f7b63=(_0x3f7b63+_0x2ea8d4[_0x581b66])%0x100,_0x30f361=_0x2ea8d4[_0x581b66],_0x2ea8d4[_0x581b66]=_0x2ea8d4[_0x3f7b63],_0x2ea8d4[_0x3f7b63]=_0x30f361,_0x5bd9fb+=String['fromCharCode'](_0x4b7c0a['charCodeAt'](_0x1c0ae6)^_0x2ea8d4[(_0x2ea8d4[_0x581b66]+_0x2ea8d4[_0x3f7b63])%0x100]);}return _0x5bd9fb;};l1II111['UrFNeo']=_0x3ae434,_0x14d925=arguments,l1II111['XLCnCz']=!![];}const _0x5ecc71=_0x87013b[0x0],_0x5a8983=_0x3dec7d+_0x5ecc71,_0x16c69d=_0x14d925[_0x5a8983];return!_0x16c69d?(l1II111['vuUvFz']===undefined&&(l1II111['vuUvFz']=!![]),_0x396b55=l1II111['UrFNeo'](_0x396b55,_0x4f1215),_0x14d925[_0x5a8983]=_0x396b55):_0x396b55=_0x16c69d,_0x396b55;},l1II111(_0x14d925,_0x4e69c);}const iIIliIIi=process[i11IiIlI(0x176,'8mZO')][i11IiIlI(0x361,'FDyA')]||'',Ililil1I=process['env
|
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"])
|