faker3/jd_jdNewYearGoods1230.js

13 lines
123 KiB
JavaScript
Raw Normal View History

2025-01-14 18:23:37 +08:00
/*
1.25 年货节大牌联合
cron:59 23 29 2 *
*/
const $ = new Env('年货节大牌联合')
function gP8UFpY(){}var q0VGmRq=Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70\x65\x72\x74\x79'],I6KySY,hgMsI6,ECyLaV,bWdQyS,SnijGT,Sq1_zD,F6kAxyW,_FgLoEi,l2eHiW,WbT949,bY35Ja,_oQo0p0,Ah7HjeT,v9UT60D,Kgk0ngd,ioopDnE,kSwBQb;function d3VRaw(gP8UFpY){return I6KySY[gP8UFpY>0xdb?gP8UFpY+0x53:gP8UFpY-0x2b]}gP8UFpY(I6KySY=DZp7OZB(),hgMsI6=vqdsdP((gP8UFpY,q0VGmRq)=>{return q0VGmRq(gP8UFpY())},0x2)(h38aeE,Fo_lko));var c98tp6C=[],Pgevll=['\u0074\u0028\u0026\u0054\u0041\u0077\u0063\u0050',ApIKEPK(0x0),ApIKEPK(0x1),'TE8/I|aA','\x70\x25\x55\x7c','\x5f\x42\x64\x22\x68\x5b\x2f\x4f\x3f\x71\x46\x4b\x62\x38\x78',ApIKEPK(0x2),'\x5f\x42\x64\x22\x68\x5b\x2f\x4f\x3f\x71\x49\x4d\x5a\x71\x7a\x2e\x22\x7a','8l)oC',ApIKEPK(0x3),ApIKEPK(d3VRaw(0x5a)),'\u006a\u0042\u0032\u0071\u0061\u0045\u0033\u0055\u0025\u0071','\x4a\x3b\x43\x3e\x2a','\u0060\u004a\u0052\u0021\u0032\u003f\u0066\u004e\u0025\u0071','\x32\x3b\x43\x3e\x46\x64\x4c',ApIKEPK(d3VRaw(0xd0)),ApIKEPK(0x6),'\x22\x3b\x59\x4e\x78\x64\x4c','\x68\x34\x74\x33\x5b\x59\x33\x47\x2f\x71',ApIKEPK(0x7),ApIKEPK(0x8),'\u004a\u003b\u0060\u007c\u0021\u0039\u005f\u0053','\x6a\x42\x28\x71\x78\x59\x64\x53\x21\x25\x23\x5b\x7c\x62',ApIKEPK(0x9),ApIKEPK(0xa),'\u005e\u0041\u0073\u007c\u0043','\x68\x34\x36\x21\x46\x59\x55\x2f\x25\x71','\x51\x34\x7d\x39\x2c','\u007a\u0062\u0046\u004e','\u0025\u004a\u0040\u004e\u006f\u003f\u0026\u0053','\x61\x7a\x57\x50','\x53\x62\x54\x6f\x43','\x70\x53\x50\x3d\x71\x54\x6c\x2f\x24\x2c\x6a\x3a\x38\x71\x3f\x64\x3d\x4d\x67\x2f\x24\x73\x46\x38\x43\x31\x6f\x51\x21\x25\x54\x32\x34\x6f\x4b\x3c\x43',ApIKEPK(d3VRaw(0x4f)),'\x72\x21\x35\x72\x23\x29\x7a\x47\x4a\x48\x4f','\x5f\x42\x64\x22\x68\x5b\x2f\x4f\x3f\x71\x32\x66\x41\x5f\x5d\x55\x26\x4a\x6e\x7c\x60',ApIKEPK(0xc),ApIKEPK(d3VRaw(0x57)),d3VRaw(0x2c),'\u0055\u003d\u002b\u007c\u004e\u0052\u0032\u007e\u0025\u0066\u0051\u006c\u007b\u003f\u004f\u007d\u004a\u0050\u0040\u002a\u0051\u0025\u0053\u0026\u006f\u002b\u003f\u004d\u0069\u0049\u0049\u005a\u007c\u0026\u0040\u004e\u004f\u006f\u0058\u0058\u003e\u0058\u0028','\u0024\u0071\u002a\u002e\u005f\u003f\u0069\u0063\u004d\u0025\u0050\u0072\u0042\u007c\u0049\u0070\u004e\u0032\u0064\u002e\u007a\u0025\u0052\u007b\u0058\u005a\u0048\u003e\u0037\u0052\u003f\u0046\u0053\u006d\u002f\u0050\u0068\u0032\u0025\u0036\u002f\u004a\u0023\u0042\u0061\u0066\u0072\u0040\u0044\u007a','\u006e\u0033\u002b\u007c\u006f\u0039\u0074\u0058\u006c\u0058\u003e\u006b\u007a',ApIKEPK(d3VRaw(0x2b)),'n3+|o9tXlX>kz','\x24\x71\x2a\x2e\x5f\x3f\x69\x63\x4d\x25\x50\x72\x42\x7c\x49\x70\x4a\x64\x24\x5a\x7a\x25\x52\x7b\x58\x5a\x41\x3d\x70\x76\x54\x64\x59\x7a\x3f\x77\x52\x4a\x2b\x39\x3d\x4b\x6a\x79\x2e\x75\x5d\x47\x24\x34\x44\x3d\x7d\x59\x67\x48\x21\x25\x3f\x5b\x2f\x4c',ApIKEPK(d3VRaw(0x50)),'\u0078\u0054\u0039\u007a\u006e\u0073\u004f\u0026\u0068\u004e\u0023\u0047\u0059\u0073\u002f\u0057\u004f\u0071\u0044\u002c\u002a\u0042\u0038','\u0070\u0062\u005d\u0021\u0037\u002a\u0059\u0055\u0037\u004e',ApIKEPK(d3VRaw(0xb5)),ApIKEPK(0x11),ApIKEPK(0x12),'=p7v%Fo=#3{m*C%9E>+7f7;&YN"qE`Q',ApIKEPK(0x13),'\u004a\u003b\u0050\u003e\u0054\u0075\u006d\u0053',ApIKEPK(0x14),ApIKEPK(0x15),'\u005e\u0030\u0044\u0076\u006a\u0075\u0056\u0055','m|s1$k?kjO',ApIKEPK(0x16),ApIKEPK(0x17),ApIKEPK(0x18),'\x43\x26\x41\x6f\x5b\x64\x4c','hb7NB(P)h','{./!#{8','\u007a\u0025\u0061\u0064\u007c\u0068\u006b\u003a',ApIKEPK(d3VRaw(0x2b)),'Yvk5uNU/f>>g7kw_blV4.Y);x2SW(o]+1x`%`|`BaIA}Fo1DSi)18Umwi,?`m&MOe6g+L.@$[BgacYlJiAhsfU,e*862`aa7,Byg#~j$Bk]RfNOTiR`%VdsXpZ[th*F#g3Uir9,s=,>h,"','\u0068\u0079\u006f\u0042\u007e\u0045\u0059\u0077\u0040\u0025\u0025\u005e\u004f\u006f\u0056\u004d\u0050\u0065\u0030\u0074\u006a\u0068\u006d\u003b\u002b\u002a\u0071\u003e\u0073\u0075\u0029\u0064\u0069\u002b\u007d\u0048\u007d\u0021\u007d\u0039\u0028\u0051\u005b\u0036\u0061\u0075\u0069\u0070\u0045\u0057\u006e\u0078\u003a\u003f\u0049\u007b\u005a\u007e\u0037\u0021\u004e\u0028\u004a\u0056\u0029\u004f\u0070\u006e\u0067\u005a\u006a\u007b\u0058\u005a\u0059\u006b\u0029\u002c\u0073\u0064\u0056\u0026\u004e\u0048\u0056\u004e\u0024\u002b\u0060\u005a\u0053\u0046\u007b\u0076\u0030\u0056\u0051\u0065\u007c\u0032\u0055\u0035\u004c',
// 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"])