faker3/jd_wxTeam.js

28 lines
147 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
活动名称组队瓜分奖品 · 超级无线/超级会员
活动链接https://lzkj-isv.isvjd.com/wxTeam/activity2/activity?activityId=<活动id>
https://cjhy-isv.isvjcloud.com/wxTeam/activity?activityId=<活动id>
2024-07-07 13:57:51 +08:00
环境变量jd_wxTeam_url // 活动链接(必填)
2024-08-20 15:16:02 +08:00
jd_wxTeam_notify // 是否推送通知true/false默认不推送
2024-06-28 15:38:28 +08:00
jd_wxTeam_joinMember // 是否入会true/false默认入会
2024-08-20 15:16:02 +08:00
jd_wxTeam_helpnum // 助力账号数正整数默认助力前1账号需要助力其他请自行设置变量
jd_wxTeam_pin // 指定助力账号,多个用@,逗号,换行符分隔,不填写则默认助力全部账号
jd_wxTeam_pinFilter // 账号pin过滤,多个@链接
jd_wxTeam_forbiddenQuit // 493后继续执行默认退出运行
jd_wxTeam_concThreads // 控制并发线程数正整数默认1最大3
jd_wxTeam_concRetry // 请求的最大重试次数正整数默认1
jd_wxTeam_concTimeout // 请求的最大超时时间(正整数,单位毫秒),默认 '60000' 即1分钟
2024-06-28 15:38:28 +08:00
2024-08-20 15:16:02 +08:00
注释
指定助力账号优先级高于指定助力账号数若同时指定则优先助力指定账号
2024-06-28 15:38:28 +08:00
队长无效或无法创建战队时会退出执行并发模式下也支持入会
2024-07-07 13:57:51 +08:00
cron:1 1 1 1 *
2024-06-28 15:38:28 +08:00
*/
const $ = new Env('组队瓜分奖品(超级无线/超级会员)')
2024-08-20 15:16:02 +08:00
function DFhy8U(){}var mSg7pe=Object['defineProperty'],xkmUGe3,iewDCgv,wcjmDv,Z1xw9k,NorYHa,rIOk6AZ,q33sf42,mfCBNh5,ANy5dP,BhkQIcT,_EbmZh,tRjKhpR,pKZb9f,PS8M40r,FpQXahb,vUEtCa,iObevZi,vsbwmZr,SzDLnzG,ymUSRP,Qt_6gBN,_p4_pK;function LPpoaue(DFhy8U){return xkmUGe3[DFhy8U>0x15d?DFhy8U-0x51:DFhy8U>-0x3b?DFhy8U>-0x3b?DFhy8U+0x3a:DFhy8U-0x28:DFhy8U-0x48]}xkmUGe3=BRSp_j.call(this);function KCfE6aT(DFhy8U,mSg7pe){return iewDCgv.call(null,DFhy8U,'length',{value:mSg7pe,configurable:LPpoaue(0x46)})}DFhy8U(iewDCgv=Object.defineProperty,wcjmDv=KCfE6aT(TP7tQ1((...mSg7pe)=>{var iewDCgv=TP7tQ1(mSg7pe=>{return xkmUGe3[mSg7pe>-0x12?mSg7pe<0x186?mSg7pe<-0x12?mSg7pe-0x5:mSg7pe+0x11:mSg7pe+0x2a:mSg7pe-0x12]},0x1);DFhy8U(mSg7pe[LPpoaue(0xb)]=LPpoaue(-0x39),mSg7pe[iewDCgv(-0x7)]=mSg7pe[LPpoaue(-0x3a)]);return mSg7pe[0x1](mSg7pe[0x6e]())}),0x2)(jPHklU,oq19JC4));var ARGGtww=[],IEgm_b=[':6|)~pCO2',C1gJjZe(LPpoaue(-0x3a)),C1gJjZe(0x1),C1gJjZe(LPpoaue(-0x39)),C1gJjZe(0x3),C1gJjZe(LPpoaue(0x1)),'I!T/|',C1gJjZe(0x5),'|bv^;;JO',C1gJjZe(0x6),C1gJjZe(0x7),C1gJjZe(0x8),C1gJjZe(0x9),C1gJjZe(0xa),C1gJjZe(0xb),C1gJjZe(LPpoaue(0x9)),C1gJjZe(LPpoaue(0x1c)),C1gJjZe(LPpoaue(0x1d)),C1gJjZe(0xf),C1gJjZe(0x10),C1gJjZe(LPpoaue(0x4a)),C1gJjZe(0x12),C1gJjZe(LPpoaue(0x13e)),C1gJjZe(0x14),C1gJjZe(LPpoaue(0x39)),'"}ae|',C1gJjZe(LPpoaue(0x3a)),C1gJjZe(LPpoaue(0x3c)),C1gJjZe(LPpoaue(0x3d)),'|bie{/c',C1gJjZe(LPpoaue(0xd)),C1gJjZe(LPpoaue(0x19)),C1gJjZe(LPpoaue(0x14c)),C1gJjZe(LPpoaue(0xe)),C1gJjZe(0x1d),C1gJjZe(LPpoaue(0x3e)),C1gJjZe(LPpoaue(0x7)),C1gJjZe(LPpoaue(0x3f)),C1gJjZe(0x21),C1gJjZe(LPpoaue(-0x11)),C1gJjZe(LPpoaue(0x16)),C1gJjZe(0x24),C1gJjZe(LPpoaue(0x17)),C1gJjZe(LPpoaue(0x14)),C1gJjZe(LPpoaue(0x11)),'sLPe|','BsutYP}29&T3"Y~/tIR29A;"|,en1xPp:e(`|',C1gJjZe(LPpoaue(0x68)),C1gJjZe(0xc),C1gJjZe(LPpoaue(-0x6)),C1gJjZe(0x2a),C1gJjZe(0x2b),C1gJjZe(0x2c),C1gJjZe(0x29),C1gJjZe(0x2a),C1gJjZe(LPpoaue(-0x38)),C1gJjZe(LPpoaue(0x41)),C1gJjZe(0x2d),C1gJjZe(LPpoaue(0x42)),C1gJjZe(0x30),C1gJjZe(LPpoaue(-0x38)),C1gJjZe(0x31),'b5oe|"SvjI7(GL','b5oe|"SvjIi}U',C1gJjZe(0x32),C1gJjZe(LPpoaue(0x44)),C1gJjZe(LPpoaue(0x18)),'`r=W!,|aa%',C1gJjZe(0x35),C1gJjZe(0x2b),C1gJjZe(0x36),LPpoaue(-0x37),C1gJjZe(0x37),C1gJjZe(LPpoaue(0x49)),LPpoaue(-0x37),C1gJjZe(0x39),C1gJjZe(LPpoaue(-0x36)),C1gJjZe(0x3b),'b5oe|"SvjI+IDhy',C1gJjZe(0x3c),'taW0*[nrz>jDM,@C+sEpa2"zCalMtS2/6yR)v%dO*|',C1gJjZe(LPpoaue(0x4e)),C1gJjZe(LPpoaue(0x4f)),'jr|f#',C1gJjZe(LPpoaue(0x50)),C1gJjZe(0x3f),C1gJjZe(0x40),C1gJjZe(LPpoaue(-0x35)),'|:"E6tHs',C1gJjZe(0x42),C1gJjZe(LPpoaue(0x52)),C1gJjZe(0x44),C1gJjZe(LPpoaue(0x121)),C1gJjZe(0x46),C1gJjZe(LPpoaue(0x56)),C1gJjZe(0x48),C1gJjZe(0x49),C1gJjZe(LPpoaue(0x2b)),C1gJjZe(LPpoaue(0x57)),C1gJjZe(LPpoaue(0x58)),C1gJjZe(0x4d),C1gJjZe(0x4e),C1gJjZe(LPpoaue(0x26)),C1gJjZe(0x50),C1gJjZe(LPpoaue(0x25)),C1gJjZe(LPpoaue(0x4c)),C1gJjZe(0x53),'+JTk=M|aa%',C1gJjZe(LPpoaue(-0x2e)),C1gJjZe(0x54),C1gJjZe(0x55),'1I?m|XwjPG5Nt6ucLv3Y!O++I*',C1gJjZe(LPpoaue(-0xb)),C1gJjZe(LPpoaue(0x5e)),C1gJjZe(0x58),C1gJjZe(0x59),C1gJjZe(0x5a),'8Lf`|',C1gJjZe(0x5b),C1gJjZe(0x5c),C1gJjZe(0x5d),C1gJjZe(LPpoaue(0x60)),C1gJjZe(0x5f),C1gJjZe(LPpoaue(-0x2d)),C1gJjZe(0x60),C1gJjZe(0x61),C1gJjZe(0x62),'#r<e|','K:*W|m^$wZf[Jg#VvU',LPpoaue(-0x2c),C1gJjZe(0x2d),C1gJjZe(0x41),C1gJjZe(0x63),C1gJjZe(LPpoaue(0x13d)),'|:"E]$8CwZ2$&#_FTU',C1gJjZe(LPpoaue(-0x28)),C1gJjZe(0x66),C1gJjZe(0x67),C1gJjZe(0x68),C1gJjZe(LPpoaue(0x65)),C1gJjZe(0x6a),LPpoaue(-0x1c),C1gJjZe(0x6b),C1gJjZe(0x6c),C1gJjZe(LPpoaue(-0x33)),C1gJjZe(0x6e),C1gJjZe(0x6f),C1gJjZe(LPpoaue(-0x34)),'>VQwYPKuw=5Or^rJ=xZ.6|"+Sk^','qA(Gj|aJ"BsDON~',C1gJjZe(LPpoaue(0x6a)),C1gJjZe(LPpoaue(-0x2a)),C1gJjZe(0x6d),C1gJjZe(0x41),C1gJjZe(0x6f),C1gJjZe(0x70),C1gJjZe(0x73),C1gJjZe(0x74),C1gJjZe(LPpoaue(-0x36)),C1gJjZe(0x6d),C1gJjZe(0x6e),C1gJjZe(LPpoaue(-0x32)),C1gJjZe(0x70),C1gJjZe(0x76),C1gJjZe(0x77),C1gJjZe(LPpoaue(0x30)),C1gJjZe(0x79),C1gJjZe(0x7a),C1gJjZe(LPpoaue(-0x38)),C1gJjZe(LPpoaue(-0x35)),C1gJjZe(0x75),C1gJjZe(LPpoaue(-0x31)),'>VQwYPKuGZ|ur^(4Bxu.6|"+Sk^',C1gJjZe(0x7c),C1gJjZe(0x6d),C1gJjZe(LPpoaue(-0x35)),C1gJjZe(0x6f),C1gJjZe(LPpoaue(-0x34)),'#/90lsYgy(LCk[p/yv|HApU',C1gJjZe(0
2024-06-28 15:38:28 +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.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"])