yydspure/jd_wxSecond.js

14 lines
214 KiB
JavaScript
Raw Normal View History

2022-07-28 21:53:26 +08:00
/*
活动名称读秒拼手速
活动链接https://lzkjdz-isv.isvjd.com/wxSecond/activity/entry.html?activityId=<活动id>
环境变量jd_wxSecond_activityId // 活动id
默认助力第一个号脚本自动入会不想入会勿跑
7 7 7 7 7 jd_wxSecond.js
*/
var _0xodU='jsjiami.com.v6',_0xodU_=['_0xodU'],_0x2af6=[_0xodU,'\x35\x72\x57\x65\x35\x59\x71\x6f\x35\x61\x65\x48\x35\x34\x47\x77\x35\x34\x69\x5a\x37\x37\x2b\x77\x36\x4b\x2b\x38\x35\x36\x75\x50\x35\x5a\x43\x76\x35\x59\x61\x70\x36\x4b\x79\x5a','\x65\x7a\x34\x65\x4d\x43\x6b\x76\x4c\x73\x4f\x53\x41\x63\x4f\x68\x55\x6e\x4c\x44\x69\x45\x59\x3d','\x56\x63\x4f\x59\x61\x41\x48\x44\x6b\x43\x5a\x59\x77\x70\x48\x43\x6d\x38\x4f\x79\x77\x71\x76\x43\x72\x4d\x4b\x36\x77\x34\x55\x3d','\x48\x7a\x44\x43\x6c\x63\x4f\x6d\x77\x6f\x73\x3d','\x59\x63\x4b\x6a\x62\x63\x4b\x4f\x77\x35\x55\x3d','\x52\x48\x49\x36','\x46\x56\x45\x6f\x77\x6f\x67\x44\x77\x72\x6b\x71\x46\x38\x4b\x4e\x50\x63\x4b\x73\x54\x4d\x4f\x6c\x77\x6f\x70\x52\x66\x4d\x4b\x65\x62\x41\x64\x2b\x77\x35\x62\x43\x76\x6a\x33\x43\x71\x4d\x4f\x50\x77\x72\x51\x65\x77\x37\x35\x34\x61\x73\x4f\x57\x77\x70\x42\x58\x77\x34\x33\x44\x6b\x67\x3d\x3d','\x57\x4d\x4b\x42\x64\x44\x37\x43\x69\x63\x4f\x31\x42\x54\x34\x65\x62\x63\x4f\x4a\x77\x70\x7a\x43\x69\x33\x64\x74\x77\x71\x74\x6e\x4c\x4d\x4b\x43\x77\x72\x34\x37\x77\x71\x77\x77\x41\x6c\x45\x6c\x41\x38\x4f\x50','\x56\x67\x63\x31\x43\x69\x37\x43\x72\x51\x30\x79\x66\x63\x4b\x2b\x77\x36\x56\x41\x65\x73\x4f\x6f\x44\x63\x4f\x55\x77\x36\x62\x43\x76\x56\x66\x43\x6f\x41\x62\x44\x72\x58\x67\x4c\x4b\x63\x4b\x7a\x77\x35\x48\x43\x75\x51\x52\x4b\x77\x35\x72\x43\x6c\x4d\x4b\x4d\x64\x38\x4f\x35\x77\x37\x50\x44\x6f\x44\x35\x47\x43\x67\x64\x66\x5a\x73\x4f\x4a\x4b\x63\x4b\x64\x4c\x38\x4b\x6a\x77\x36\x44\x43\x6d\x38\x4f\x76\x65\x78\x7a\x44\x70\x44\x30\x65\x77\x37\x6e\x44\x75\x63\x4f\x35\x4b\x63\x4f\x78\x4b\x32\x6b\x30\x77\x72\x6f\x48\x4b\x4d\x4f\x2f\x50\x38\x4b\x45\x61\x73\x4b\x79\x77\x35\x48\x43\x70\x4d\x4f\x34\x77\x72\x76\x44\x75\x33\x6a\x44\x73\x6d\x66\x43\x70\x63\x4f\x58\x77\x70\x66\x43\x72\x38\x4f\x41\x77\x70\x4e\x61\x77\x35\x49\x50\x4b\x79\x50\x44\x67\x4d\x4b\x4b\x77\x34\x42\x7a\x4d\x73\x4b\x4e\x47\x32\x50\x43\x70\x4d\x4b\x2b\x77\x72\x37\x44\x71\x63\x4f\x31\x77\x6f\x66\x44\x68\x73\x4b\x41\x53\x51\x55\x79\x77\x34\x66\x43\x70\x38\x4f\x50\x55\x4d\x4b\x42\x77\x72\x6c\x76\x64\x38\x4b\x57\x77\x37\x6b\x3d','\x47\x56\x50\x43\x72\x48\x39\x4a\x77\x37\x31\x52\x77\x70\x56\x54\x77\x71\x6b\x47\x77\x71\x30\x3d','\x47\x73\x4b\x42\x77\x72\x5a\x70\x77\x37\x55\x3d','\x41\x48\x4c\x43\x6e\x33\x52\x74\x77\x72\x5a\x6b\x77\x71\x74\x50\x64\x38\x4b\x6b\x4d\x38\x4b\x42','\x77\x37\x5a\x67\x44\x30\x56\x71','\x77\x70\x30\x31\x56\x68\x45\x6a\x77\x34\x72\x43\x71\x38\x4b\x74\x77\x34\x78\x70\x77\x6f\x33\x43\x70\x63\x4b\x42\x47\x41\x3d\x3d','\x61\x4d\x4f\x43\x77\x36\x34\x43\x4e\x4d\x4b\x78\x48\x77\x55\x65\x63\x6d\x6f\x63\x77\x71\x38\x62','\x77\x34\x54\x44\x6b\x73\x4f\x31\x62\x48\x54\x43\x71\x32\x4a\x68\x41\x38\x4b\x30\x77\x36\x7a\x43\x73\x53\x62\x44\x6b\x77\x3d\x3d','\x63\x63\x4b\x44\x4e\x63\x4f\x62\x77\x35\x5a\x4f\x77\x70\x62\x43\x71\x69\x70\x58\x59\x63\x4f\x4b\x77\x35\x6b\x3d','\x47\x63\x4f\x35\x41\x6b\x6e\x43\x71\x63\x4f\x71\x52\x56\x58\x43\x6a\x32\x2f\x43\x68\x38\x4f\x46','\x4d\x48\x6b\x4e\x53\x43\x48\x43\x6a\x4d\x4b\x74\x47\x63\x4f\x42\x4a\x73\x4b\x6c\x77\x6f\x63\x3d','\x56\x4d\x4f\x35\x77\x35\x30\x53\x77\x72\x78\x48\x77\x35\x30\x4c\x77\x72\x45\x42\x4f\x42\x45\x3d','\x77\x70\x54\x43\x72\x38\x4f\x32\x55\x63\x4b\x44\x77\x72\x37\x43\x6a\x51\x62\x44\x67\x69\x48\x44\x76\x6d\x77\x37\x48\x57\x6b\x34\x77\x34\x4e\x6c\x4f\x45\x7a\x44\x6c\x32\x73\x37\x4f\x51\x7a\x44\x72\x69\x4e\x71\x58\x51\x67\x64\x77\x6f\x44\x44\x6c\x78\x7a\x44\x6a\x7a\x46\x55\x77\x36\x72\x44\x72\x6e\x30\x41\x4e\x4d\x4f\x67\x77\x72\x48\x44\x75\x47\x70\x35\x77\x72\x44\x44\x6e\x63\x4b\x4e\x77\x71\x54\x44\x6e\x6d\x33\x44\x71\x38\x4b\x36\x77\x71\x50\x44\x71\x63\x4f\x51\x77\x72\x64\x59\x77\x6f\x58\x44\x71\x73\x4b\x46\x77\x37\x37\x44\x68\x41\x3d\x3d','\x51\x78\x74\x6d\x77\x71\x4d\x73\x77\x37\x73\x2b\x47\x73\x4f\x61\x62\x73\x4b\x72\x53\x4d\x4f\x37\x77\x6f\x55\x41','\x41\x45\x62\x43\x6b\x6b\x6c\x30','\x62\x54\x35\x72\x63\x73\x4f\x4f','\x66\x38\x4f\x46\x66\x6a\x44\x43\x76\x41\x3d\x3d','\x41\x38\x4f\x33\x47\x56\x54\x43\x6d\x67\x3d\x3d','\x50\x32\x76\x43\x6d\x6d\x4a\x6e','\x47\x79\x68\x68\x77\x35\x55\x73','\x42\x38\x4f\x4d\x65\x56\x4e\x65\x77\x36
// 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"])