2023-08-01 16:47:55 +08:00
|
|
|
|
/*
|
|
|
|
|
活动名称:组队瓜分奖品 · 超级无线/超级会员
|
|
|
|
|
活动链接:https://lzkj-isv.isvjd.com/wxTeam/activity/activity?activityId=<活动id>
|
|
|
|
|
https://cjhydz-isv.isvjcloud.com/wxTeam/activity?activityId=<活动id>
|
|
|
|
|
环境变量:jd_wxTeam_activityUrl // 活动链接(必填)
|
|
|
|
|
jd_wxTeam_joinMember // 是否入会(true/false),默认不入会
|
|
|
|
|
jd_wxTeam_Notify // 是否推送通知(true/false),默认不推送
|
2023-08-05 19:19:49 +08:00
|
|
|
|
jd_wxTeam_Concurrent // 是否启用并发模式(true/false),默认不开启
|
|
|
|
|
jd_wxTeam_maxConcurrency // 控制最大并发线程数,默认3
|
2023-08-01 16:47:55 +08:00
|
|
|
|
|
|
|
|
|
队长无效或无法创建战队时会退出执行
|
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
|
|
|
|
#组队瓜分奖品
|
|
|
|
|
1 1 1 1 * jd_wxTeam.js, tag=组队瓜分奖品, enabled=true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('组队瓜分奖品(超级无线/超级会员)')
|
2023-08-06 12:36:27 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const IlillI=iii1II;(function(I1ii1I,Ililli,lii1,iIii1l,iIliIi,IIil1l,i1i1l1){return I1ii1I=I1ii1I>>0x6,IIil1l='hs',i1i1l1='hs',function(iIii1i,IIil1i,IlIl1,II1i1I,iIliI1){const II1i11=iii1II;II1i1I='tfi',IIil1l=II1i1I+IIil1l,iIliI1='up',i1i1l1+=iIliI1,IIil1l=IlIl1(IIil1l),i1i1l1=IlIl1(i1i1l1),IlIl1=0x0;const iIii11=iIii1i();while(!![]&&--iIii1l+IIil1i){try{II1i1I=-parseInt(II1i11(0x376,'LbBd'))/0x1*(-parseInt(II1i11(0x37a,'ABLi'))/0x2)+parseInt(II1i11(0x51b,'r^wm'))/0x3+parseInt(II1i11(0x436,'kTiH'))/0x4*(-parseInt(II1i11(0x220,'s7D&'))/0x5)+parseInt(II1i11(0x1c7,'YG4B'))/0x6*(parseInt(II1i11(0x2f8,'4PFE'))/0x7)+-parseInt(II1i11(0x586,'0YSp'))/0x8*(-parseInt(II1i11(0x2c4,'iBGs'))/0x9)+-parseInt(II1i11(0x1b6,'r^wm'))/0xa+-parseInt(II1i11(0x4bf,')alX'))/0xb;}catch(i1i1lI){II1i1I=IlIl1;}finally{iIliI1=iIii11[IIil1l]();if(I1ii1I<=iIii1l)IlIl1?iIliIi?II1i1I=iIliI1:iIliIi=iIliI1:IlIl1=iIliI1;else{if(IlIl1==iIliIi['replace'](/[xCVNetgrbBXWuhJUwy=]/g,'')){if(II1i1I===IIil1i){iIii11['un'+IIil1l](iIliI1);break;}iIii11[i1i1l1](iIliI1);}}}}}(lii1,Ililli,function(IIllIi,i11l1l,IIllIl,i11l1i,iI11l1,IlIii,iI11lI){return i11l1l='\x73\x70\x6c\x69\x74',IIllIi=arguments[0x0],IIllIi=IIllIi[i11l1l](''),IIllIl='\x72\x65\x76\x65\x72\x73\x65',IIllIi=IIllIi[IIllIl]('\x76'),i11l1i='\x6a\x6f\x69\x6e',(0x137f6e,IIllIi[i11l1i](''));});}(0x3200,0xbc63a,Iii11l,0xca),Iii11l)&&(version_=Iii11l);function iii1II(_0x31c002,_0x4b6005){const _0x3a9f4f=Iii11l();return iii1II=function(_0x466caa,_0x103a1c){_0x466caa=_0x466caa-0x174;let _0x8a1246=_0x3a9f4f[_0x466caa];if(iii1II['SXSOGF']===undefined){var _0x35cf84=function(_0x2c3dce){const _0x5c427b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2ad1b4='',_0x13e75b='';for(let _0x66b864=0x0,_0x358f95,_0x32e3a6,_0x455c56=0x0;_0x32e3a6=_0x2c3dce['charAt'](_0x455c56++);~_0x32e3a6&&(_0x358f95=_0x66b864%0x4?_0x358f95*0x40+_0x32e3a6:_0x32e3a6,_0x66b864++%0x4)?_0x2ad1b4+=String['fromCharCode'](0xff&_0x358f95>>(-0x2*_0x66b864&0x6)):0x0){_0x32e3a6=_0x5c427b['indexOf'](_0x32e3a6);}for(let _0x2f54ab=0x0,_0x36ff6e=_0x2ad1b4['length'];_0x2f54ab<_0x36ff6e;_0x2f54ab++){_0x13e75b+='%'+('00'+_0x2ad1b4['charCodeAt'](_0x2f54ab)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x13e75b);};const _0x1d248c=function(_0xb869cc,_0x233cd8){let _0x615754=[],_0x23231e=0x0,_0x170b16,_0x5dcb70='';_0xb869cc=_0x35cf84(_0xb869cc);let _0x38e9ef;for(_0x38e9ef=0x0;_0x38e9ef<0x100;_0x38e9ef++){_0x615754[_0x38e9ef]=_0x38e9ef;}for(_0x38e9ef=0x0;_0x38e9ef<0x100;_0x38e9ef++){_0x23231e=(_0x23231e+_0x615754[_0x38e9ef]+_0x233cd8['charCodeAt'](_0x38e9ef%_0x233cd8['length']))%0x100,_0x170b16=_0x615754[_0x38e9ef],_0x615754[_0x38e9ef]=_0x615754[_0x23231e],_0x615754[_0x23231e]=_0x170b16;}_0x38e9ef=0x0,_0x23231e=0x0;for(let _0x5f5527=0x0;_0x5f5527<_0xb869cc['length'];_0x5f5527++){_0x38e9ef=(_0x38e9ef+0x1)%0x100,_0x23231e=(_0x23231e+_0x615754[_0x38e9ef])%0x100,_0x170b16=_0x615754[_0x38e9ef],_0x615754[_0x38e9ef]=_0x615754[_0x23231e],_0x615754[_0x23231e]=_0x170b16,_0x5dcb70+=String['fromCharCode'](_0xb869cc['charCodeAt'](_0x5f5527)^_0x615754[(_0x615754[_0x38e9ef]+_0x615754[_0x23231e])%0x100]);}return _0x5dcb70;};iii1II['hfcppA']=_0x1d248c,_0x31c002=arguments,iii1II['SXSOGF']=!![];}const _0x442008=_0x3a9f4f[0x0],_0x173347=_0x466caa+_0x442008,_0x44db19=_0x31c002[_0x173347];return!_0x44db19?(iii1II['BNzvQN']===undefined&&(iii1II['BNzvQN']=!![]),_0x8a1246=iii1II['hfcppA'](_0x8a1246,_0x103a1c),_0x31c002[_0x173347]=_0x8a1246):_0x8a1246=_0x44db19,_0x8a1246;},iii1II(_0x31c002,_0x4b6005);}const iil11l=require(IlillI(0x26b,'LbBd')),IiIi1l=require('./function/jdCommon'),llII1i=require('./function/sendJDNotify'),illI1I=require(IlillI(0x4b7,'0YSp')),ilI1Ii=require(IlillI(0x458,'LbBd')),ilI1Il=process['env']['jd_wxTeam_activityUrl']||'',illI11=process[IlillI(0x1b7,'7k8g')][IlillI(0x431,'r^wm')]===IlillI(0x4fa,'v*MR'),ll11Ii=process['env'][IlillI(0x3ab,'ELU7')]===IlillI(0x464,'9khA'),ll11Il=process['env'][IlillI(0x338,'iBGs')]===IlillI(0x267,'iiyu'),i11lI=process['env']['jd_wxTeam_maxConcurrency']||'3';let Il
|
2023-08-01 16:47:55 +08:00
|
|
|
|
// prettier-ignore
|
|
|
|
|
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.d
|