faker2/jd_pointExgShiWu.js

21 lines
119 KiB
JavaScript
Raw Normal View History

2024-06-28 07:27:40 +00:00
/*
活动名称积分兑换实物 · 超级会员
活动链接https://cjhy-isv.isvjcloud.com/mc/wxPointShopView/pointExgShiWu?venderId=<店铺id>&giftId=<活动id>
2024-08-13 08:34:00 +00: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 02:35:40 +00:00
jd_pointExgShiWu_forbiddenQuit // IP限制后继续执行true/false默认false
2024-08-13 08:34:00 +00:00
jd_pointExgShiWu_address // 用户登记收货地址,按照顺序依次填写 收件人@手机号@省份@城市@区县@详细地址,多个用管道符分开
2024-06-28 07:27:40 +00:00
2024-08-13 08:34:00 +00:00
cron:1 1 1 1 *
2024-06-28 07:27:40 +00:00
*/
const $ = new Env('积分兑换实物(超级会员)')
2024-09-06 08:53:23 +00:00
function X1_9V2i(){}var FH7TO3=Object['\u0064\u0065\u0066\u0069\u006e\u0065\u0050\u0072\u006f\u0070\u0065\u0072\u0074\u0079'],Iykf_A,vePpE9,h7pcLR,NVZ1mWY,VMSzsf8,sWLXzxi,fjP32Q,iysRzGb,C0ygWA,eBUJzx,No25keb,Hxrfmgs,J4wHyE,AysxCBE,A466wBA,uP89Ppf;function Gzmsjmb(X1_9V2i){return Iykf_A[X1_9V2i<0xe0?X1_9V2i+0x3c:X1_9V2i+0x5b]}Iykf_A=BTW3RaW();function elSmOQ(X1_9V2i,FH7TO3){return vePpE9(X1_9V2i,Gzmsjmb(-0x30),{value:FH7TO3,configurable:Gzmsjmb(0x4e)})}X1_9V2i(vePpE9=Object.defineProperty,h7pcLR=U7GU7d((X1_9V2i,FH7TO3)=>{return FH7TO3(X1_9V2i())},0x2)(s7ULYAf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),AMcq7b(Gzmsjmb(-0x14)),AMcq7b(Gzmsjmb(-0x13)),AMcq7b(0x1e),AMcq7b(0x55),AMcq7b(0x4a),AMcq7b(0x4a),AMcq7b(0x56),AMcq7b(0x57),AMcq7b(Gzmsjmb(-0x1a)),AMcq7b(Gzmsjmb(0x2f)),AMcq7b(Gzmsjmb(0x30)),AMcq7b(Gzmsjmb(0x21)),AMcq7b(0x5c),AMcq7b(Gzmsjmb(0x31)),AMcq7b(Gzmsjmb(0x32)),AMcq7b(0x5f),AMcq7b(0x60),AMcq7b(Gzmsjmb(-0x29)),AMcq7b(Gzmsjmb(0x33)),AMcq7b(Gzmsjmb(0x34)),AMcq7b(Gzmsjmb(-0x2e)),AMcq7b(0x65),AMcq7b(0x66),AMcq7b(0x67),AMcq7b(0x68),AMcq7b(Gzmsjmb(0x2c)),AMcq7b(0x6a),AMcq7b(Gzmsjmb(-0x16)),AMcq7b(0x6c),AMcq7b(Gzmsjmb(-0x39)),AMcq7b(Gzmsjmb(0x3b)),AMcq7b(0x6f),AMcq7b(0x70),AMcq7b(0x71),AMcq7b(Gzmsjmb(0x44)),AMcq7b(0x73),AMcq7b(Gzmsjmb(-0x39)),AMcq7b(0x74),AMcq7b(Gzmsjmb(-0x39)),AMcq7b(Gzmsjmb(0x14)),AMcq7b(0x75),AMcq7b(0x76),AMcq7b(0x1e),AMcq7b(0x77),AMcq7b(0x6d),AMcq7b(Gzmsjmb(0x65)),'\x5e\x4b\x6b\x43\x75\x39\x36\x47\x57\x2b\x51\x7c\x5a\x5e\x34\x60\x39\x2b\x45\x24\x57\x55\x4c\x38\x66\x2b\x3b\x6e\x28\x30',AMcq7b(0x79),AMcq7b(0x7a),AMcq7b(Gzmsjmb(-0x11)),AMcq7b(0x4a),'\x22\x55\x32\x32\x6a\x40\x59\x42\x56\x7e\x78\x45\x7c\x4a\x46\x23\x71\x71\x6c\x26\x47\x33\x30\x6d\x75\x44\x41\x49\x32\x2f\x25\x48\x77\x36\x23\x31\x58\x5d\x7c\x75\x66\x4c\x49\x46\x76\x3c\x54\x26\x59\x6d\x60\x37\x5b\x6b\x75\x4b\x4c\x55\x4f\x21\x63\x4f\x4f\x73\x2a\x4f\x48\x6b\x55\x52\x21\x6d\x79\x6a\x77\x4b\x67\x6d\x6d\x5e\x60
2024-06-28 07:27:40 +00: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"])