mirror of
https://github.com/shufflewzc/faker3.git
synced 2025-01-10 16:29:13 +08:00
21 lines
95 KiB
JavaScript
21 lines
95 KiB
JavaScript
|
/*
|
|||
|
活动名称:惊喜开盲盒 · 京耕
|
|||
|
活动链接:https://jinggeng-isv.isvjcloud.com/ql/front/loadBlindBox?id=<活动id>&user_id=<店铺id>
|
|||
|
环境变量:jd_jinggeng_blindBox_url // 活动链接
|
|||
|
jd_jinggeng_blindBox_opencard // 是否入会(true/false),默认不入会
|
|||
|
jd_jinggeng_blindBox_Notify // 是否通知(true/false),默认不通知
|
|||
|
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#惊喜开盲盒 · 京耕
|
|||
|
1 1 1 1 * jd_jinggeng_blindBox.js, tag=惊喜开盲盒 · 京耕, enabled=true
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('惊喜开盲盒(京耕)')
|
|||
|
function RMUwt3(){}var vnBaXO=Object['defineProperty'],Si5ja1,J0EJjw,vYR4Z8,AxhefUC,WCBGFmM,AtUqWvH,i9Qq8k,a7HdJv,dekQNtk,jUDODj,qVQ7DCA,rfYa5Ak,wwEjzrB,tegpOx,uPfQNmk,oVNl9i,pNHvLP,u7p0nX;function DUL06rE(RMUwt3){return Si5ja1[RMUwt3>-0x6?RMUwt3>0x108?RMUwt3-0xc:RMUwt3>-0x6?RMUwt3<-0x6?RMUwt3+0x44:RMUwt3+0x5:RMUwt3+0x21:RMUwt3-0xa]}Si5ja1=DVrrSv();function Kv_TA1(RMUwt3,vnBaXO){return J0EJjw(RMUwt3,DUL06rE(0x1c),{value:vnBaXO,configurable:!0x0})}RMUwt3(J0EJjw=Object.defineProperty,vYR4Z8=cKK4QH((RMUwt3,vnBaXO)=>{return vnBaXO(RMUwt3())},0x2)(Y2CK3ES,kmolxy));var N0i2F0=[],xwphuuy=['Z<Bx3|dF',yLdaT3F(DUL06rE(0x19)),yLdaT3F(DUL06rE(0xe)),'1&ih*|=F',yLdaT3F(0x2),yLdaT3F(DUL06rE(0xa)),yLdaT3F(DUL06rE(0xf)),yLdaT3F(0x5),yLdaT3F(0x6),yLdaT3F(DUL06rE(0x15)),yLdaT3F(DUL06rE(0x22)),yLdaT3F(0x9),yLdaT3F(DUL06rE(0x1a)),yLdaT3F(DUL06rE(0xf6)),yLdaT3F(DUL06rE(0x12)),yLdaT3F(0xd),'92o$4zpB$TJCgCf%|3m','vjca?%x4&$kEEIhsXOv12P4:]8BjBITrq@<$)p(sW;|Hb',yLdaT3F(DUL06rE(0x1b)),yLdaT3F(0xf),yLdaT3F(DUL06rE(0x3e)),yLdaT3F(0x11),yLdaT3F(DUL06rE(0x16)),yLdaT3F(0x13),yLdaT3F(DUL06rE(0x3f)),yLdaT3F(DUL06rE(0x49)),yLdaT3F(0x16),'H3e|,Q.r4v',yLdaT3F(0x17),yLdaT3F(DUL06rE(0x41)),yLdaT3F(0x19),yLdaT3F(0x1a),yLdaT3F(DUL06rE(0xaa)),yLdaT3F(0x1c),yLdaT3F(DUL06rE(0x52)),'H3<lXQ:y&(*|qa',yLdaT3F(0x1e),yLdaT3F(0x1f),yLdaT3F(0x20),yLdaT3F(0x21),yLdaT3F(0x22),yLdaT3F(DUL06rE(0x43)),yLdaT3F(DUL06rE(0x29)),yLdaT3F(0x25),yLdaT3F(DUL06rE(0xc6)),yLdaT3F(DUL06rE(0x28)),yLdaT3F(0x28),yLdaT3F(0x29),yLdaT3F(0x2a),yLdaT3F(0x2b),yLdaT3F(DUL06rE(0x53)),yLdaT3F(0x2d),yLdaT3F(DUL06rE(-0x3)),'Okqit{Myr(^G=0s$FD=l(/[X@Pj=Pj%&.y9o`:4^kQGGx8[`O21l>{ua|(.;t=*$C&22',yLdaT3F(0x2f),yLdaT3F(DUL06rE(0x47)),yLdaT3F(0x31),yLdaT3F(DUL06rE(0x2)),yLdaT3F(0x33),yLdaT3F(0x34),yLdaT3F(0x35),yLdaT3F(DUL06rE(0x1)),yLdaT3F(0x37),yLdaT3F(0x38),yLdaT3F(DUL06rE(0x54)),yLdaT3F(0x3a),yLdaT3F(DUL06rE(0x4e)),yLdaT3F(DUL06rE(0x21)),yLdaT3F(0x3d),yLdaT3F(0x3e),yLdaT3F(0x3f),yLdaT3F(0x40),yLdaT3F(DUL06rE(0x73)),yLdaT3F(DUL06rE(0x56)),yLdaT3F(0x43),yLdaT3F(DUL06rE(0x57)),yLdaT3F(0x45),yLdaT3F(0x46),yLdaT3F(0x47),yLdaT3F(0x48),yLdaT3F(0x49),yLdaT3F(0x4a),yLdaT3F(DUL06rE(0x20)),yLdaT3F(DUL06rE(0x59)),yLdaT3F(0x4d),yLdaT3F(0x4e),yLdaT3F(0x4f),yLdaT3F(0x50),yLdaT3F(DUL06rE(0x62)),yLdaT3F(DUL06rE(0x63)),yLdaT3F(0x53),yLdaT3F(DUL06rE(0x64)),'|CvoIzyH',yLdaT3F(0x55),yLdaT3F(0x56),yLdaT3F(0x57),yLdaT3F(DUL06rE(0x7a)),yLdaT3F(DUL06rE(0x66)),yLdaT3F(DUL06rE(0x96)),yLdaT3F(0x5b),yLdaT3F(DUL06rE(0x60)),'\x7c\x6d\x7a\x30\x25\x7b\x4c',yLdaT3F(0x5d),yLdaT3F(DUL06rE(0x38)),yLdaT3F(0x5f),yLdaT3F(DUL06rE(-0x4)),yLdaT3F(DUL06rE(0x6)),yLdaT3F(DUL06rE(-0x2)),yLdaT3F(DUL06rE(0x72)),yLdaT3F(DUL06rE(0x5f)),yLdaT3F(DUL06rE(0x4d)),yLdaT3F(0x65),yLdaT3F(DUL06rE(-0x5)),yLdaT3F(0x67),yLdaT3F(DUL06rE(0xd)),yLdaT3F(DUL06rE(0x8)),yLdaT3F(DUL06rE(0xc)),yLdaT3F(0x30),yLdaT3F(0x6b),yLdaT3F(DUL06rE(0x4)),yLdaT3F(0x6d),yLdaT3F(0x6e),yLdaT3F(0x6f),yLdaT3F(0x70),yLdaT3F(0x71),yLdaT3F(0x72),yLdaT3F(DUL06rE(0x7e)),yLdaT3F(0x74),yLdaT3F(DUL06rE(0x7f)),yLdaT3F(0x76),yLdaT3F(DUL06rE(0x24)),'|zp7q>N)pFdQ%?$69OU*/',yLdaT3F(0x78),yLdaT3F(0x2e),yLdaT3F(DUL06rE(0x83)),yLdaT3F(DUL06rE(0x81)),yLdaT3F(0x7b),yLdaT3F(0x7c),yLdaT3F(0x7d),yLdaT3F(DUL06rE(0x86)),yLdaT3F(0x36),yLdaT3F(DUL06rE(0x0)),yLdaT3F(DUL06rE(0x89)),yLdaT3F(0x81),yLdaT3F(0x82),yLdaT3F(DUL06rE(0x17)),yLdaT3F(DUL06rE(0x5c)),yLdaT3F(0x85),yLdaT3F(DUL06rE(-0x1)),yLdaT3F(0x86),yLdaT3F(DUL06rE(-0x5)),yLdaT3F(DUL06rE(0x8c)),yLdaT3F(0x88),yLdaT3F(DUL06rE(0x9)),yLdaT3F(0x8a),yLdaT3F(DUL06rE(0x71)),yLdaT3F(0x8c),yLdaT3F(DUL06rE(0x8d)),yLdaT3F(DUL06rE(0x91)),yLdaT3F(DUL06rE(0x8e)),yLdaT3F(0x7f),yLdaT3F(0x90),yLdaT3F(0x91),yLdaT3F(DUL06rE(0x90)),yLdaT3F(0x93),yLdaT3F(0x2a),yLdaT3F(0x30),yLdaT3F(DUL06rE(-0x4)),yLdaT3F(0x94),yLdaT3F(0x95),yLdaT3F(0x2d),yLdaT3F(DUL06rE(-0x3)),yLdaT3F(0x89),yLdaT3F(0x96),yLdaT3F(0x97),yLdaT3F(0x2a),yLdaT3F(DUL06rE(0x3)),yLdaT3F(DUL06rE(0x85)),'<4EAN|**!3',yLdaT3F(0x62),yLdaT3F(0x60),'>Oj@"0|xbHK',yLdaT3F(0x99),yLdaT3F(0x9a),yLdaT3F(0x30),yLdaT3F(0x9b),yLdaT3F(DUL06rE(-0x2)),yLdaT3F(0x6c),yLdaT3F(DUL06rE(-0x1)),yLdaT3F(0x9c),yLdaT3F(DUL06rE(0x0)),yLdaT3F(DUL06rE(0x0)),y
|
|||
|
// 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"])
|