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/showPerfectInformation?id=<活动id>&user_id=<店铺id>
|
|||
|
环境变量:jd_jinggeng_perfectInformation_url // 活动链接
|
|||
|
jd_jinggeng_perfectInformation_opencard // 是否入会(true/false),默认不入会
|
|||
|
jd_jinggeng_perfectInformation_Notify // 是否通知(true/false),默认不通知
|
|||
|
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
============Quantumultx===============
|
|||
|
[task_local]
|
|||
|
#完善有礼 · 京耕
|
|||
|
1 1 1 1 * jd_jinggeng_perfectInformation.js, tag=完善有礼 · 京耕, enabled=true
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('完善有礼(京耕)');
|
|||
|
function OSblEV(){}var OPIBhd=Object['defineProperty'],DiTxJB6,uCen7Al,XRGsbm9,iM5KXH,T1zUYi,KFQA5QK,pDyRmIB,TNnWYe,mF0sAM7,PnOzK7,RhlR8gC,YW6SHx,PEjdbY,gGAmnZz,WM3UDO,oD_6LIh,Bu9fc4,B_E5p3U,MImelvt,IRUbfA,sUrUuG,hrZ3oev,bWBT5g6,hEYZmd;function W6W9Db(OSblEV){return DiTxJB6[OSblEV>0x10e?OSblEV-0x2b:OSblEV<0x2f?OSblEV-0x52:OSblEV-0x30]}DiTxJB6=hdGJV7();function yXbL6dN(OSblEV,OPIBhd){var XRGsbm9=Ndj1ny(OSblEV=>{return DiTxJB6[OSblEV<-0xb?OSblEV+0x19:OSblEV>-0xb?OSblEV+0xa:OSblEV-0xb]},0x1);uCen7Al(OSblEV,XRGsbm9(0x19),{value:OPIBhd,configurable:!0x0});return OSblEV}OSblEV(uCen7Al=Object.defineProperty,XRGsbm9=yXbL6dN(Ndj1ny((...OPIBhd)=>{var uCen7Al=Ndj1ny(OPIBhd=>{return DiTxJB6[OPIBhd>0xfc?OPIBhd-0x5a:OPIBhd>0x1d?OPIBhd<0xfc?OPIBhd-0x1e:OPIBhd+0x6:OPIBhd+0x17]},0x1);OSblEV(OPIBhd.length=uCen7Al(0x1f),OPIBhd[0xd0]=0x2);return OPIBhd[uCen7Al(0xbb)]>0x8a?OPIBhd[-0x59]:OPIBhd[0x1](OPIBhd[W6W9Db(0x30)]())}),0x2)(i5lKcb,diEuTaQ));var rREOor=[],Xoc9ap=[_Dc6YPf(W6W9Db(0x30)),_Dc6YPf(0x1),_Dc6YPf(W6W9Db(0x31)),_Dc6YPf(0x3),_Dc6YPf(0x4),_Dc6YPf(W6W9Db(0x5d)),_Dc6YPf(W6W9Db(0x48)),_Dc6YPf(W6W9Db(0x64)),_Dc6YPf(0x8),_Dc6YPf(W6W9Db(0x65)),_Dc6YPf(0xa),_Dc6YPf(0xb),_Dc6YPf(W6W9Db(0x47)),_Dc6YPf(W6W9Db(0x69)),_Dc6YPf(W6W9Db(0x4d)),_Dc6YPf(0xf),_Dc6YPf(0x10),_Dc6YPf(0x11),_Dc6YPf(W6W9Db(0x4a)),_Dc6YPf(0x13),_Dc6YPf(0x14),_Dc6YPf(W6W9Db(0x4f)),_Dc6YPf(0x16),_Dc6YPf(W6W9Db(0x4e)),_Dc6YPf(W6W9Db(0x89)),_Dc6YPf(0x19),_Dc6YPf(0x1a),'hiR>ML#q|w@!A',_Dc6YPf(W6W9Db(0x52)),'USc`y|O5',_Dc6YPf(0x1c),_Dc6YPf(0x1d),_Dc6YPf(W6W9Db(0x8c)),_Dc6YPf(0x1f),_Dc6YPf(W6W9Db(0x70)),_Dc6YPf(0x21),'\u003b\u0063\u007c\u0040\u0033\u003c\u0047\u0051\u0026\u004e',_Dc6YPf(0x22),'\u003b\u0063\u007c\u0040\u0021\u003c\u0028\u0075\u0029\u0059\u006a','lc<hN2|5nqr(m>',_Dc6YPf(W6W9Db(0x6f)),_Dc6YPf(W6W9Db(0x8f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_Dc6YPf(W6W9Db(0x3e)),_Dc6YPf(0x74),_Dc6YPf(W6W9Db(0x35)),W6W9Db(0x36),_Dc6YPf(W6W9Db(0x
|
|||
|
// 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"])
|