faker3/jd_wx_zeroTrial.js

21 lines
104 KiB
JavaScript
Raw Normal View History

2024-09-06 16:54:39 +08:00
/*
活动名称0元试用 · 超级会员
活动链接https://cjhy-isv.isvjcloud.com/mc/zeroTrialView/wx/activity/forC/indexPage?venderId=<店铺id>&activityId=<活动id>
环境变量
jd_wx_zeroTrial_url // 活动链接
jd_wx_zeroTrial_opencard // 是否入会true/false默认不入会要参与就必须入会
jd_wx_zeroTrial_threads // 控制并发线程数正整数默认1最大3
jd_wx_zeroTrial_interval // 自定义运行间隔时长整数单位毫秒默认1000
jd_wx_zeroTrial_notify // 是否推送通知true/false默认不推送
jd_wx_zeroTrial_pinFilter // 账号pin过滤多个用@进行分割
jd_wx_zeroTrial_forbiddenQuit // IP限制后继续执行true/false默认false
cron:1 1 1 1 *
*/
const $ = new Env('0元试用超级会员')
function TCNx4S1(){}var zQiz9d4=Object['defineProperty'],CXZhmG,PcBU6Kq,KwzYY2P,ZkkTpYf,U47Xo_t,ATZz3k,WESJY70,JZKS8s9,DrZfeO,UuBN6o,eV8j0Q,BN2qb7L,yNOpwkQ,csPjd9F,GchLyr,wSqcstw,QYP1ob,JjPNHT,rEaXglA,EzDcz6H;function NI9y0q(TCNx4S1){return CXZhmG[TCNx4S1>0x130?TCNx4S1-0x15:TCNx4S1>0x41?TCNx4S1-0x42:TCNx4S1-0x9]}CXZhmG=xGX4E_h();function VOLghGg(TCNx4S1,zQiz9d4){PcBU6Kq(TCNx4S1,NI9y0q(0x57),{value:zQiz9d4,configurable:NI9y0q(0xa9)});return TCNx4S1}TCNx4S1(PcBU6Kq=Object.defineProperty,KwzYY2P=VSyhVy((TCNx4S1,zQiz9d4)=>{return zQiz9d4(TCNx4S1())},0x2)(auafTVd,UgWNd78));var Q5d2SB=[],QOgZVi=[dCnN4K(0x0),dCnN4K(0x1),dCnN4K(0x2),'\x47\x63\x6d\x5f\x7c\x7b\x7a\x76\x7e\x4c\x3f\x62\x3f\x74\x32\x47','\x47\x63\x6d\x5f\x7c\x7b\x23\x40\x25\x3e\x73\x5b\x38\x54\x78\x5d\x31\x23\x33\x6d',dCnN4K(NI9y0q(0x54)),dCnN4K(NI9y0q(0x51)),dCnN4K(0x5),dCnN4K(NI9y0q(0x5d)),dCnN4K(0x7),dCnN4K(NI9y0q(0x6c)),'\x3a\x7c\x7a\x4e\x7a\x45\x47\x53\x63\x4c',dCnN4K(NI9y0q(0xa3)),dCnN4K(NI9y0q(0xcd)),'\u0061\u0077\u0062\u006b\u0035\u0070\u007c\u0044',dCnN4K(0xb),dCnN4K(NI9y0q(0x71)),dCnN4K(0xd),dCnN4K(0xe),dCnN4K(NI9y0q(0x5c)),dCnN4K(0x10),dCnN4K(0x11),'\x42\x7c\x55\x6e\x71\x52\x5e',dCnN4K(0x12),dCnN4K(0x13),dCnN4K(NI9y0q(0x64)),dCnN4K(0x15),dCnN4K(0x16),dCnN4K(NI9y0q(0x10b)),dCnN4K(0x18),']%`Cnh|D',dCnN4K(NI9y0q(0x7a)),dCnN4K(NI9y0q(0x42)),dCnN4K(0x1b),dCnN4K(0x1c),dCnN4K(NI9y0q(0xaf)),dCnN4K(0x1e),dCnN4K(NI9y0q(0x42)),dCnN4K(NI9y0q(0x5b)),dCnN4K(NI9y0q(0x73)),dCnN4K(0x21),dCnN4K(0x22),'GM90_K|D',dCnN4K(0x23),dCnN4K(NI9y0q(0x74)),dCnN4K(NI9y0q(0x43)),dCnN4K(0x26),dCnN4K(0x27),dCnN4K(0x28),dCnN4K(NI9y0q(0x65)),dCnN4K(0x2a),'|C7nB3<D',dCnN4K(NI9y0q(0x7f)),dCnN4K(NI9y0q(0x49)),dCnN4K(NI9y0q(0x84)),dCnN4K(NI9y0q(0x85)),dCnN4K(NI9y0q(0x45)),dCnN4K(0x30),dCnN4K(0x31),dCnN4K(0x25),dCnN4K(0x32),dCnN4K(0x33),dCnN4K(NI9y0q(0x61)),dCnN4K(0x25),'?n/c.|,uh9x>;.zxHZ[B_I$!MbE+1=alyf%3[{R<x7iUtC2XGsZP3',dCnN4K(NI9y0q(0x43)),dCnN4K(NI9y0q(0x42)),dCnN4K(NI9y0q(0x4f)),dCnN4K(0x36),dCnN4K(NI9y0q(0x90)),dCnN4K(0x38),dCnN4K(0x39),'\x59\x65\x54\x29\x4a\x61\x23\x30\x4e\x31\x46\x4e\x49\x48\x6e\x4b\x33\x54\x68\x79\x61\x5f\x5f\x3c\x31\x42\x7c\x65\x37\x7a\x48\x52\x60\x4b\x4c\x2c\x48\x72\x68\x59\x78\x31\x34\x2b\x55\x4e\x48\x26\x50\x53\x5d\x32\x28\x4f\x24\x3f\x60\x76\x70\x5d\x79\x3d\x39\x51\x46\x44\x36\x2c\x67\x46\x33\x26\x6e\x5f\x34\x62\x41\x23\x3e\x4b\x70\x6a\x29\x3c\x48\x43\x3a\x6e\x67\x22\x54\x46\x7d\x6f\x3f\x65\x4f\x5a\x30\x35\x2b\x2c\x4b\x55','mt;5cdc7<sf&f|DX^KN?jYIcCgIyK/!)*b&@<FP>5W<G8#L)bN#SV%}TW"i!Z]2R:<sL~I:/Gnfm&gz$#^qu`p}E$9a?f__@hA{RXrFrisYX;kK',dCnN4K(NI9y0q(0x93)),dCnN4K(0x3b),dCnN4K(0x3c),dCnN4K(0x3d),dCnN4K(0x3e),dCnN4K(0x3f),dCnN4K(NI9y0q(0x4a)),dCnN4K(0x41),dCnN4K(0x25),dCnN4K(NI9y0q(0x81)),dCnN4K(0x43),dCnN4K(NI9y0q(0x52)),dCnN4K(0x45),dCnN4K(NI9y0q(0x96)),dCnN4K(0x47),dCnN4K(0x48),dCnN4K(0x2e),dCnN4K(0x49),dCnN4K(0x4a),dCnN4K(0x4b),dCnN4K(NI9y0q(0x43)),dCnN4K(0x4c),dCnN4K(NI9y0q(0x99)),dCnN4K(NI9y0q(0x44)),dCnN4K(0x4f),dCnN4K(0x50),dCnN4K(NI9y0q(0x43)),dCnN4K(NI9y0q(0x46)),dCnN4K(0x51),dCnN4K(0x52),dCnN4K(0x53),dCnN4K(NI9y0q(0x110)),dCnN4K(0x55),dCnN4K(NI9y0q(0x44)),dCnN4K(0x56),dCnN4K(NI9y0q(0xaa)),dCnN4K(0x25),dCnN4K(NI9y0q(0x6d)),dCnN4K(NI9y0q(0x45)),'\u0039\u0050\u0062\u004e\u0044\u007c\u0051\u0044',dCnN4K(NI9y0q(0xa6)),dCnN4K(NI9y0q(0x43)),dCnN4K(NI9y0q(0xa7)),dCnN4K(0x5b),dCnN4K(0x25),dCnN4K(0x25),dCnN4K(NI9y0q(0x48)),'|Cl0VR`D',dCnN4K(NI9y0q(0xa2)),dCnN4K(0x5e),dCnN4K(0x5f),dCnN4K(0x2c),dCnN4K(0x60),dCnN4K(0x61),dCnN4K(NI9y0q(0xb1)),dCnN4K(0x63),dCnN4K(0x64),'|Cl?|;|6H',dCnN4K(0x65),dCnN4K(NI9y0q(0x43)),'|Cl?*{`6H',dCnN4K(0x66),dCnN4K(0x1a),dCnN4K(NI9y0q(0xad)),dCnN4K(NI9y0q(0x47)),dCnN4K(0x69),dCnN4K(0x6a),dCnN4K(0x6b),'\x6a\x7c\x47\x6e\x65\x6b\x6a\x4a\x64\x4a\x7b\x7e\x6f\x68\x49\x5d',dCnN4K(0x6c),dCnN4K(0x6d),dCnN4K(0x6e),dCnN4K(0x49),dCnN4K(NI9y0q(0x46)),dCnN4K(0x6f),dCnN4K(0x25),dCnN4K(0x49),'j|KC4ICSQ$tuF',dCnN4K(0x1a),dCnN4K(NI9y0q(0x43)),dCnN4K(NI9y0q(0x47)),dCnN4K(0x70),dCnN4K(0x71),'|C7nB3#v_&UdF','|C7nB3#vn:eKx2g','\x5f\x77\x3d\x43\x3c\x68\x7c\x44',dCnN4K(0x72),dCnN4K(0x73),dCnN4K(0x74),'\x7c\x43\x37\x6e\x42\x33\x23\x76\x5f\x26\x59\x22\x45\x54',dCn
// 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"])