faker3/jd_pointExgShiWu.js

21 lines
120 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
活动名称积分兑换实物 · 超级会员
活动链接https://cjhy-isv.isvjcloud.com/mc/wxPointShopView/pointExgShiWu?venderId=<店铺id>&giftId=<活动id>
2024-08-13 16:34:06 +08:00
环境变量
jd_pointExgShiWu_activityUrl // 活动链接
jd_pointExgShiWu_threads // 控制并发线程数正整数默认1最大5
jd_pointExgShiWu_interval // 自定义运行间隔时长整数单位毫秒默认1000
jd_pointExgShiWu_notify // 是否推送通知true/false默认不推送
jd_pointExgShiWu_pinFilter // 账号pin过滤多个用@进行分割
2024-08-26 10:36:17 +08:00
jd_pointExgShiWu_forbiddenQuit // IP限制后继续执行true/false默认false
2024-08-13 16:34:06 +08:00
jd_pointExgShiWu_address // 用户登记收货地址,按照顺序依次填写 收件人@手机号@省份@城市@区县@详细地址,多个用管道符分开
2024-06-28 15:38:28 +08:00
2024-08-13 16:34:06 +08:00
cron:1 1 1 1 *
2024-06-28 15:38:28 +08:00
*/
const $ = new Env('积分兑换实物(超级会员)')
2024-08-26 10:36:17 +08:00
function xeZxOcY(){}var KUxqZ1F=Object['\u0064\u0065\u0066\u0069\u006e\u0065\u0050\u0072\u006f\u0070\u0065\u0072\u0074\u0079'],pD13BL,NZq6uy,XvlsP0,trSXUfw,Y3q1Rl,DopeIt,Ha6hIB,Z34gIL,gjrO1zg,Pqc7F3k,v_eSUsQ,Grj942b,vuhjSyk,G0uz__,II7ntat,r_x38Wv,HZYw_K,kMgO5SN,QvPSsmB,OlTN1eO,mONP7nF;function PL1FGZF(xeZxOcY){return pD13BL[xeZxOcY<0x42?xeZxOcY+0x1c:xeZxOcY-0x43]}pD13BL=swdzbg8();function FWyjqk(xeZxOcY,KUxqZ1F){return NZq6uy.call(PL1FGZF(0xf0),xeZxOcY,PL1FGZF(0x57),{value:KUxqZ1F,configurable:!0x0})}xeZxOcY(NZq6uy=Object.defineProperty,XvlsP0=Z8cAdn1((xeZxOcY,KUxqZ1F)=>{return KUxqZ1F(xeZxOcY())},0x2)(qSgm_wj,rYyLHHz));var Uf2N0P=[],OtccGAZ=[rm2rKb(PL1FGZF(0x5c)),rm2rKb(0x1),rm2rKb(0x2),rm2rKb(0x3),rm2rKb(0x4),rm2rKb(PL1FGZF(0x5e)),rm2rKb(0x6),rm2rKb(PL1FGZF(0x6d)),rm2rKb(PL1FGZF(0x77)),rm2rKb(0x9),rm2rKb(0xa),rm2rKb(0xb),rm2rKb(0xc),rm2rKb(0xd),rm2rKb(PL1FGZF(0x76)),rm2rKb(0xf),rm2rKb(0x10),rm2rKb(0x11),rm2rKb(PL1FGZF(0xc8)),rm2rKb(0x13),rm2rKb(0x14),rm2rKb(PL1FGZF(0x68)),rm2rKb(PL1FGZF(0x87)),rm2rKb(PL1FGZF(0x66)),rm2rKb(PL1FGZF(0xd1)),rm2rKb(PL1FGZF(0x9f)),rm2rKb(PL1FGZF(0x7b)),rm2rKb(0x1b),rm2rKb(0x1c),rm2rKb(0x1d),rm2rKb(0x1e),rm2rKb(PL1FGZF(0x60)),rm2rKb(0x20),rm2rKb(0x1c),rm2rKb(0x21),rm2rKb(0x22),rm2rKb(PL1FGZF(0x6a)),rm2rKb(0x24),rm2rKb(0x25),rm2rKb(PL1FGZF(0x84)),rm2rKb(0x27),rm2rKb(0x28),'(dt1"V%9s)Q}Y4M>imYZ)|8ID6kY6kR_=9rJ2^cQdN}}Xb82(5xZ;VhOq)=!"Y.>j_55',rm2rKb(PL1FGZF(0x8a)),rm2rKb(0x28),rm2rKb(0x2a),rm2rKb(0x2b),rm2rKb(PL1FGZF(0xd0)),rm2rKb(0x2d),rm2rKb(0x2e),rm2rKb(PL1FGZF(0x8d)),rm2rKb(PL1FGZF(0x43)),rm2rKb(0x31),rm2rKb(0x32),rm2rKb(0x33),'.60>)~!hd+o(pmwR|c"i{iH',rm2rKb(0x34),rm2rKb(0x2a),'\u003b\u0074\u0040\u006e\u0057\u0058\u0062\u004d\u004d\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rm2rKb(PL1FGZF(0xa7)),rm2rKb(0x4f),rm2rKb(PL1FGZF(0x9e)),rm2rKb(PL1FGZF(0xa0)),rm2rKb(0x28),rm2rKb(PL1FGZF(0x44)),rm2rKb(PL1FGZF(0x69)),rm2rKb(0x56),rm2rKb(PL1FGZF(0xa8)),rm2rKb(0x28),rm2rKb(0x58),rm2rKb(0x59),rm2rKb(PL1FGZF(0x44)),rm2rKb(0x28),rm2rKb(0x5a),rm2rKb(0x5b),rm2rKb(PL1FGZF(0x47)),rm2rKb(0x5d),rm2rKb(0x5e),rm2rKb(0x5f),rm2rKb(0x60),rm2rKb(0x61),rm2rKb(0x62),rm2rKb(0x63),rm2rKb(0x64),rm2rKb(0x65),rm2rKb(0x66),rm2rKb(PL1FGZF(0xab)),rm2rKb(0x68),rm2rKb(0x69),rm2rKb(0x6a),rm2rKb(0x6b),rm2rKb(0x6c),rm2rKb(0x6d),rm2rKb(0x6e),rm2rKb(PL1FGZF(0xad)),rm2rKb(0x70),rm2rKb(0x71),rm2rKb(0x72),rm2rKb(0x28),rm2rKb(0x73),rm2rKb(0x74),rm2rKb(0x75),rm2rKb(0x76),rm2rKb(0x4d),rm2rKb(0x4d),rm2rKb(0x28),rm2rKb(PL1FGZF(0x45)),rm2rKb(0x28),rm2rKb(PL1FGZF(0x45)),rm2rKb(PL1FGZF(0xd4)),rm2rKb(PL1FGZF(0xaf)),rm2rKb(PL1FGZF(0x44)),rm2rKb(0x79),rm2rKb(PL1FGZF(0x44)),rm2rKb(0x7a),rm2rKb(PL1FGZF(0xb0)),rm2rKb(0x7c),rm2rKb(0x7d),rm2rKb(0x7e),rm2rKb(0x7f),rm2rKb(0x80),rm2rKb(PL1FGZF(0xb2)),rm2rKb(0x28),'\u007a\u0064\u0028\u0028\u0042\u002b\u0053\u0052\u0077\u003d\u0061\u0070\u0069\u0056\u003c\u0075\u0066\u0066\u005a\u004a\u0022\u0037\u0058\u006a\u002a\u0044\u0054\u0036\u0028\u0041\u0035\u0059\u0048\u0040\u0075\u0060\u0062\u004c\u0069\u002a\u006b\u0029\u0036\u003c\u004f\u0074\u0046\u004
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"])