mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
21 lines
59 KiB
JavaScript
21 lines
59 KiB
JavaScript
|
/*
|
|||
|
活动名称:伊利会员勋章馆
|
|||
|
活动链接:https://lzkjdz-isv.isvjd.com/wx/dingzhi/yili/medal/index?activityId=2103200001340201
|
|||
|
|
|||
|
7 7 7 7 *
|
|||
|
|
|||
|
大部分号都没有成长值
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('伊利会员勋章馆')
|
|||
|
const jdCookie = require('./jdCookie')
|
|||
|
const common = require('./function/jdCommon')
|
|||
|
const notify = require('./function/sendJDNotify')
|
|||
|
const getToken = require('./function/getToken')
|
|||
|
|
|||
|
var iil='jsjiami.com.v7';const Ii1IlI1i=I1l1I1i1;(function(II1ilIi,I1Ililll,IiI1lliI,liII1111,II1li1II,i1i11III,Iliili1i){return II1ilIi=II1ilIi>>0x2,i1i11III='hs',Iliili1i='hs',function(IIiIi1i1,l1IiliI,il1liIi1,liiil1II,lIlI1II){const iiI1ii1I=I1l1I1i1;liiil1II='tfi',i1i11III=liiil1II+i1i11III,lIlI1II='up',Iliili1i+=lIlI1II,i1i11III=il1liIi1(i1i11III),Iliili1i=il1liIi1(Iliili1i),il1liIi1=0x0;const i1IiiiIi=IIiIi1i1();while(!![]&&--liII1111+l1IiliI){try{liiil1II=-parseInt(iiI1ii1I(0xef,'EQV6'))/0x1*(parseInt(iiI1ii1I(0x21b,'ktmT'))/0x2)+parseInt(iiI1ii1I(0x256,'6]i@'))/0x3*(-parseInt(iiI1ii1I(0x1c1,'KfcJ'))/0x4)+-parseInt(iiI1ii1I(0xd0,'KfcJ'))/0x5+-parseInt(iiI1ii1I(0x2b8,'EQV6'))/0x6+parseInt(iiI1ii1I(0x323,'fvFY'))/0x7*(parseInt(iiI1ii1I(0x2f4,'4tdi'))/0x8)+-parseInt(iiI1ii1I(0x1fb,'i[vm'))/0x9+parseInt(iiI1ii1I(0x157,'qGLJ'))/0xa*(parseInt(iiI1ii1I(0x116,'3We3'))/0xb);}catch(IIl1i1Ii){liiil1II=il1liIi1;}finally{lIlI1II=i1IiiiIi[i1i11III]();if(II1ilIi<=liII1111)il1liIi1?II1li1II?liiil1II=lIlI1II:II1li1II=lIlI1II:il1liIi1=lIlI1II;else{if(il1liIi1==II1li1II['replace'](/[EPSuAIMJHtXkOhpUbKg=]/g,'')){if(liiil1II===l1IiliI){i1IiiiIi['un'+i1i11III](lIlI1II);break;}i1IiiiIi[Iliili1i](lIlI1II);}}}}}(IiI1lliI,I1Ililll,function(il11illi,iIl1Il1l,lIIl1lI1,lI1I1I1,iiII1li1,ll1IIll1,i11Ili){return iIl1Il1l='\x73\x70\x6c\x69\x74',il11illi=arguments[0x0],il11illi=il11illi[iIl1Il1l](''),lIIl1lI1=`\x72\x65\x76\x65\x72\x73\x65`,il11illi=il11illi[lIIl1lI1]('\x76'),lI1I1I1=`\x6a\x6f\x69\x6e`,(0x16f353,il11illi[lI1I1I1](''));});}(0x308,0x7e386,IIli1i1i,0xc4),IIli1i1i)&&(iil=IIli1i1i);function I1l1I1i1(_0x36d180,_0x15a169){const _0x1a151b=IIli1i1i();return I1l1I1i1=function(_0x500d21,_0xfb609b){_0x500d21=_0x500d21-0x72;let _0x10b46d=_0x1a151b[_0x500d21];if(I1l1I1i1['XzFyNB']===undefined){var _0x2785dd=function(_0x61be0){const _0x2dc9c9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5da987='',_0x3cffc7='';for(let _0x3acd00=0x0,_0x18c0cf,_0x31f579,_0x5cc313=0x0;_0x31f579=_0x61be0['charAt'](_0x5cc313++);~_0x31f579&&(_0x18c0cf=_0x3acd00%0x4?_0x18c0cf*0x40+_0x31f579:_0x31f579,_0x3acd00++%0x4)?_0x5da987+=String['fromCharCode'](0xff&_0x18c0cf>>(-0x2*_0x3acd00&0x6)):0x0){_0x31f579=_0x2dc9c9['indexOf'](_0x31f579);}for(let _0x28fb5e=0x0,_0x37eba1=_0x5da987['length'];_0x28fb5e<_0x37eba1;_0x28fb5e++){_0x3cffc7+='%'+('00'+_0x5da987['charCodeAt'](_0x28fb5e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3cffc7);};const _0x520421=function(_0x37b753,_0x2d32b8){let _0x207bda=[],_0x2a11c0=0x0,_0x1461ec,_0x518ab6='';_0x37b753=_0x2785dd(_0x37b753);let _0x97f625;for(_0x97f625=0x0;_0x97f625<0x100;_0x97f625++){_0x207bda[_0x97f625]=_0x97f625;}for(_0x97f625=0x0;_0x97f625<0x100;_0x97f625++){_0x2a11c0=(_0x2a11c0+_0x207bda[_0x97f625]+_0x2d32b8['charCodeAt'](_0x97f625%_0x2d32b8['length']))%0x100,_0x1461ec=_0x207bda[_0x97f625],_0x207bda[_0x97f625]=_0x207bda[_0x2a11c0],_0x207bda[_0x2a11c0]=_0x1461ec;}_0x97f625=0x0,_0x2a11c0=0x0;for(let _0x1b8b89=0x0;_0x1b8b89<_0x37b753['length'];_0x1b8b89++){_0x97f625=(_0x97f625+0x1)%0x100,_0x2a11c0=(_0x2a11c0+_0x207bda[_0x97f625])%0x100,_0x1461ec=_0x207bda[_0x97f625],_0x207bda[_0x97f625]=_0x207bda[_0x2a11c0],_0x207bda[_0x2a11c0]=_0x1461ec,_0x518ab6+=String['fromCharCode'](_0x37b753['charCodeAt'](_0x1b8b89)^_0x207bda[(_0x207bda[_0x97f625]+_0x207bda[_0x2a11c0])%0x100]);}return _0x518ab6;};I1l1I1i1['ApnjdJ']=_0x520421,_0x36d180=arguments,I1l1I1i1['XzFyNB']=!![];}const _0x489f43=_0x1a151b[0x0],_0x1a920f=_0x500d21+_0x489f43,_0x1da088=_0x36d180[_0x1a920f];return!_0x1da088?(I1l1I1i1['ZDdgMf']===undefined&&(I1l1I1i1['ZDdgMf']=!![]),_0x10b46d=I1l1I1i1['ApnjdJ'](_0x10b46d,_0xfb609b),_0x36d180[_0x1a920f]=_0x10b46d):_0x10b46d=_0x1da088,_0x10b46d;},I1l1I1i1(_0x36d180,_0x15a169);}const activityUrl=Ii1IlI1i(0x11d,'z5XW'),isNotify=process[Ii1IlI1i(0x78,'1R8G')][Ii1IlI1i(0x239,'r2nK')]===Ii1IlI1i(0x100,'1R8G'),brandNameMap={'jindian':'金典','anmuxi':Ii1IlI1i(0x9e,'59rr'),'shuhua':'舒化','yousuanru':Ii1IlI1i(0x36e,'ze!K')},brandUrlMap={'jindian':Ii1IlI1i(0x105,'V$%e'),'anmuxi':Ii1IlI1i(0x252,'gy^p')
|
|||
|
|
|||
|
// 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"])
|