mirror of
https://github.com/shufflewzc/faker3.git
synced 2025-01-10 16:29:13 +08:00
21 lines
122 KiB
JavaScript
21 lines
122 KiB
JavaScript
|
/*
|
|||
|
活动名称:积分兑换实物 · 超级会员
|
|||
|
活动链接:https://cjhy-isv.isvjcloud.com/mc/wxPointShopView/pointExgShiWu?venderId=<店铺id>&giftId=<活动id>
|
|||
|
环境变量:
|
|||
|
jd_pointExgShiWu_activityUrl // 活动链接
|
|||
|
jd_pointExgShiWu_threads // 控制并发线程数(正整数),默认1,最大5
|
|||
|
jd_pointExgShiWu_interval // 自定义运行间隔时长(整数,单位毫秒),默认1000
|
|||
|
jd_pointExgShiWu_notify // 是否推送通知(true/false),默认不推送
|
|||
|
jd_pointExgShiWu_pinFilter // 账号pin过滤,多个用@进行分割
|
|||
|
jd_pointExgShiWu_forbiddenQuit // IP限制后继续执行(true/false),默认false
|
|||
|
jd_pointExgShiWu_address // 用户登记收货地址,按照顺序依次填写 收件人@手机号@省份@城市@区县@详细地址,多个用管道符分开
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('积分兑换实物(超级会员)')
|
|||
|
function JZz882L(){}var YOvt2N=Object['\u0064\u0065\u0066\u0069\u006e\u0065\u0050\u0072\u006f\u0070\u0065\u0072\u0074\u0079'],tkmgDme,J_UePgI,OqyRn9B,nMyvBy,ex0pF59,UvxywwB,g5WiOgN,WGRUZXn,cr1ensn,cf8zOvl,L3Dgean,XocolA,jik0tk,ASerCXq,GSkg9F,nYFcoRa,aj7skh,cnHfXCg,KWAQexc,a7r9NN,ht2nVpq,QVRt3z,jKpCQT,rVMFxNf;function BzHjL4D(JZz882L){return tkmgDme[JZz882L>0x60?JZz882L<0x190?JZz882L>0x190?JZz882L+0x35:JZz882L<0x60?JZz882L+0x1f:JZz882L-0x61:JZz882L+0x9:JZz882L+0x52]}tkmgDme=AkU4jFh();function SSTUqpl(JZz882L,YOvt2N){J_UePgI(JZz882L,BzHjL4D(0x80),{value:YOvt2N,configurable:!0x0});return JZz882L}JZz882L(J_UePgI=Object.defineProperty,OqyRn9B=SSTUqpl(IZMGldQ((...YOvt2N)=>{JZz882L(YOvt2N.length=0x2,YOvt2N[0xaf]=BzHjL4D(0x90));return YOvt2N[0xaf]>0x3f?YOvt2N[-BzHjL4D(0x6b)]:YOvt2N[0x1](YOvt2N[0x0]())}),BzHjL4D(0x96))(yfbsXfF,UEDGcDF));var uHnfG7=[],_5kqKI=[Xv8aee(0x0),Xv8aee(BzHjL4D(0x77)),Xv8aee(0x2),Xv8aee(BzHjL4D(0x7a)),'gd9p]|hG5W[C1gU^|WSX5fUvAyi27w0%z9:','gd9p]|FQ',Xv8aee(BzHjL4D(0x78)),Xv8aee(BzHjL4D(0x73)),Xv8aee(0x6),'\u0067\u0064\u0039\u0070\u005d\u007c\u0068\u0047\u0035\u0057\u005b\u0043\u0031\u0067\u0055\u005e\u007c\u0057\u0053\u0058\u003b\u007e\u0072\u0076\u0026\u007d\u0038\u0026\u002c\u0041\u005b',Xv8aee(BzHjL4D(0x89)),'gd9p]|hG5W[C1gU^|WSX*XJvAyeHz',Xv8aee(BzHjL4D(0x88)),Xv8aee(BzHjL4D(0x95)),Xv8aee(0xa),'gd9p]|hG5W[C1gU^|WSXQChG9@3U]k+R',Xv8aee(0xb),'gd9p]|hG5W[C1gU^|WSXb<.[iUE{k!~gqIv;i',Xv8aee(0xc),'\x6a\x5f\x7d\x7c\x46',Xv8aee(0xd),Xv8aee(BzHjL4D(0x85)),Xv8aee(BzHjL4D(0x86)),Xv8aee(BzHjL4D(0x92)),Xv8aee(0x11),Xv8aee(0x12),Xv8aee(0x13),Xv8aee(0x14),Xv8aee(0x10),Xv8aee(0x15),Xv8aee(0x16),Xv8aee(0x17),Xv8aee(0x18),Xv8aee(0x19),Xv8aee(BzHjL4D(0x9c)),Xv8aee(0x1b),Xv8aee(BzHjL4D(0x9d)),Xv8aee(0x1d),Xv8aee(BzHjL4D(0x61)),X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(0x6f),Xv8aee(0x70),Xv8aee(BzHjL4D(0xd6)),Xv8aee(0x72),'\x6d\x23\x22\x3b\x24\x7c\x5e\x51',Xv8aee(
|
|||
|
// 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"])
|