mirror of
https://github.com/shufflewzc/faker3.git
synced 2025-01-10 16:29:13 +08:00
17 lines
58 KiB
JavaScript
17 lines
58 KiB
JavaScript
|
/*
|
|||
|
活动名称:2.28 年在一起助力
|
|||
|
活动链接:https://pro.m.jd.com/mall/active/2SPD9SANqEbYq9zMfivnHsSjgpBR/index.html
|
|||
|
环境变量:jd_nzyq_interval // 自定义运行间隔时长(整数,单位毫秒),默认2500
|
|||
|
jd_nzyq_notify // 是否推送通知(true/false),默认不推送
|
|||
|
jd_nzyq_pinFilter // 账号pin过滤,多个用@进行分割
|
|||
|
jd_nzyq_num // 指定人数 非必须,不填默认跑全部账号
|
|||
|
jd_nzyq_inviterId // 指定助力码 非必须,不填默认助力账号一
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('年在一起助力')
|
|||
|
function fakermnrqjf(){}var faker9etxyv=Object['defineProperty'],fakeriqpayb,fakermr9a2m,fakerufmtug,fakerislumu,fakerymof3l,fakerjkv6xj,faker59qg0r,fakerrxl0ud,faker51dk2s,fakerkd6rj,fakerhfo62,fakerjh565,fakerlqnbs,fakerr3cv4q,faker89sig,fakerr9lva,fakeru95jcm,fakerpfvb4f,fakerbgg51b;function fakersi9a8n(fakermnrqjf){return fakeriqpayb[fakermnrqjf>-0x2c?fakermnrqjf+0x3b:fakermnrqjf>-0x2c?fakermnrqjf-0x44:fakermnrqjf+0x63]}fakeriqpayb=faker2no99.call(this);var fakera33dc=[],fakerqo9rin=['NH$nd);Bn(Fy~i','Tq0]9KIx','EDhu$`lP','_kdJ;','Cq,J',']D=3EUbH$~e7bT@<tMN',']D=3EUbH)T/h<T[qJn.E','BkPnD',']D=3EUbH$~h^&~I=LI',']D=3EUbH$~l^&~I=LI','S52m/',']D=3EUbH$~b8&)I,iBZ3{','/#Nm_0y',']D=3EUbH)T/hi~uqG5if/',']D=3EUbH$~F2:n','rb+E','9M(:0YviI^ZAJtp,:we2!s+Lm^q','@Vw*{','In"E','qb.Em$#p','kMHE','pndm/','CphB~d54>{|tS~$0B^v4>o"S/!m@<qd%VmAs/','BGjE;','b?hMd6jp','MbPJL$y','pndm/','cVam@$,Q1g}xI','{`1Jb','eNG!,:y','9?Ms&"#p','qbQm[YI3R','W?Qm/',',BPJw0TuW3FG`VZq<B]sZY,uWhZv_$(VON[!RUgU8[T#I~v4Tq|Y`mxU@+O+B~e%8{`!`!y','1`PJm*9Q5QMxI','|V[!*0bp','dnjE=ki22w','!sqeb8,31t@.2','9a28','D|CrT.xJ5[_yYTb_<{KVds=e?%0ISvmaBGl(Kc7H_:ZnOj#q*3{M(','Xvqd(7F','D|Cr|w(uz[_y!zkJJ$`g;U:yz%TDj|cauUh4~*+{a|?iRZ:`ajyrE&I}B[,=ECqIQN;`9"2ze||','DX3o)',fakersi9a8n(-0x63),'QlLz]','cVPJ="ir&^M:blWijI','&?/MW','^5]s!0[p','kL,,`R:4W:+','b?[!skIQ0c','[%eC','cVam@$,Q1g}xI',')"7o8Xf$Z','Xo(1u@y','9?HE','L`Qmt!cp','cVG!@*L+lvCsblbiJI','CB9HF6]p','SNam]MIQev/hln','_5/M"0txkwe7I','^5]s!0[p','|V[!*0bp','lqaH3eLLb[','an!U','mFM45@I;iBmoTPC1gA++2|FUFN9+#k<`9,{3<pR"|','+]0V}arY{n(o4qQGvJ','},:HRdrD?','/oFe','qb3J','ks2bxK:bn4R(5?7','+]lz)~.','9?HE',fakersi9a8n(-0x62),fakersi9a8n(-0x61),fakersi9a8n(-0x63),'q"%zCm6yjM;:W%t{:2j8,D0jYnsYJ','dnjE;','KZvHWBGtt7','lqSm_0X9rv&)=S2]>4dm/','lqSm_0?1R','A|x3s$R02hh:ObF','JnNmm$C9f','b?L}"00u>[a{0``9','(4Kz}','`$~&XsY6ORw5]I]/Q,BMN0.p',fakersi9a8n(-0x62),'*FY5>dTmtPPo=42',fakersi9a8n(-0x61),'KZvHL','dnjE=ki22w','q"%zCm6yjM;:W%t{l]#Hc','b?Ls/','>SF8QdblT','%<Xzv','QV.EXBEQk[a:I','9?HE',fakersi9a8n(-0x60),'9?HE','+]Xz;Dr)KP2:qZ','y,$H','lqSm_0X9rv&)=S2]QV.E{','SNamj','cVam&"eUdhF)ln','y,$H','cVam&"eUdhF)ln',fakersi9a8n(-0x63),fakersi9a8n(-0x5f),'SNamj',fakersi9a8n(-0x60),fakersi9a8n(-0x63),fakersi9a8n(-0x60),'9?HE','q"%zCm6yjM;:W%t{e@Kz}',fakersi9a8n(-0x63),'jV`!.G=Lf','R?;RP','R#9m.Ay','V`Cn@qy','c`[!!0+U]+N5I','q"%zCm6yjM;:W%t{l]#Hc','|p][jxe','uHXz}%kv`M4:7Z9{R^j8,DWh','`ax?V`JT)u<9T8oP','cVPJ%GgLb[npun=LG5kmm*]p','!<As8!tp','m?1J','},R>R','ptD`ks0l','7EGQr.Kl|','GY8[U&!^|','N(?{','pt,[v,oUVv:)e',',,)>s|HT,7iYJ','+]0V,b<}T',',BPJEi%uRwb8W8;~]DM$L*)U%wj8($uq;NaHV6Q0f','ZZEz[8<}H7wjJ','V5XHzAy',fakersi9a8n(-0x5f),',QB9Q+e','q"%zCm6yjM;:W%t{e@Kz}',fakersi9a8n(-0x63),'rMkm^)]p','j(Bzf:{h',fakersi9a8n(-0x5e),'v]0Vza+h','QV5H{$9QR','FE@sn_tp','TuDHNkoT,PIfi%Rb@,nH^pIR]0gf!qFAq"r<^LQ^h','2Hp>ZCMt298qrqwbr&<','X)Zw@?$@ouAMtGb]pr)tN','2Hp>ZCMtWs0PoSvA+]<','`@pgk`e','u4hML$gjtv{hI','@VSHOskK.cvxI','=K%w[g*Zr|Vn0bR','R#"E16:R?hg^7S|4chI*(s8Udh0vkWD]Cq|YBA^jf','qbfLgCnR4&IY_SBR{^xH','qbn?dm`huB,3{_Y"}J','=KJ`R)Dl',';Np?An!^|','b^0V7m_!4$)*b:y{sc85g35tR$&EJx!"c,w8|m?W|I5*.W1y}g[T=~}LW^^Ds2b{wL0Vqg3Fl(.tZ[6W@9%$Iz:vpl(','l,^;I)?1YwZvAFm=JI','#5$Yd6]p',',BPJw0TubHUA,)9]8{Y3GK32f','&}Oc6?d+Gd@Ic1','D(U#q[oUKv','y([5=>k"t7goJ','ZZEz[8#h','8O,[Z','EtS[?m|X|','!F,R',';V?mm$N/R','s`|YW$,QR','G5x!?"y',';V?mm$N/R',fakersi9a8n(-0x5e),'jVPJm*cp','!F,R','QV5H{$9QR','9Au#5y={*WL$1','UHn%0x2Fy#^j7N7hG@QxKd7j+Vw0L:}>9`$A/"D_,hD61ZjW<A*Nm=S/jVx@%U*B_^;G3;R<vD/"U/3Qz,v8U)Xt&4Sp)lKaYGWoWBA~*Nm=S/jVrI;!srH^UKC{#4$Ap%5W;F}j0N;Bd(nD/"K(%AB64N/;R:@y{vjeEDT$qml;1?Xx@rcwfF>$iN5sNL_U','w&ODr_2','VVFsK)y','A4;pyPzqz','8:gpn','"<{!?"y','fn+Es*=p','HDb)}ZZU/w/8boyw1nDJ@xex1gL_Lt/{=6:Mj','ZhU$<*y"NE;[I','Lh#sM7!K!d%:n$~Wu.sM`<88dk~e~WU{j5=!Yt|irPj_l`ki','e{${y=qquQrFjr<,1?":4:)LI^g/vA.b4,#{W','YC>oJ0pHyD%9jrc<r50mNg48_3LR%Fw[^,NoF','7<Xf!C5QlVSAO9=sy#IMPuG#dku3h)/{[DY660v9{P','vs,sg`i2#7&w2]z%GG!x*.,9.cOD"WT9','^C%l00DxY3wKg0{4CgY!t2m=:8A/zS<c^{Yb#Gcp','GCAssuf=sDY!ct~b,bd;jYOwaQU;:n',':dMx58y','CGlH<T2v*7av2FR/?B|fJY{x6w+9t/:c*[Gb[xT;"BTd(N{|','P$g:G.T;}+Yv$8ncZ%OntAXug7I5
|
|||
|
|
|||
|
// 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"])
|