faker3/jd_wyw_exchange.js

18 lines
84 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
活动名称新版玩一玩兑换奖品 5.17-8.31结束
活动入口APP-我的-更多工具-玩一玩
活动建议定时自行修改奖票有效期2个月
活动变量jd_wyw_exchange // 填写兑换值,指定兑换奖品,不填默认只兑换当前价值最高京豆奖品(查看打印兑换值)
jd_wyw_notify // 是否推送通知,默认不推送
jd_wyw_pinFilter // 账号pin过滤多个pin用@分隔,默认不过滤
jd_wyw_autotx // 是否强制查询提现接口兑换后提现接口403可以开启
cron:1 1 1 1 *
*/
const $ = new Env('新版玩一玩兑换奖品')
2024-10-13 08:01:59 +08:00
function gxAW_Dg(){}var XJt3vT=Object['defineProperty'],_xin1T,_yoS6e,RtmlpPY,Lf5JJTa,R15Gtk,GPAwsQ,ON3Mqv,ePuYtP,NACQps,pypZFX,TTfXOgf,u7omohG,uPenOl,NovJ7p,MvMjSV,fUk5gA,KPuvd8,XLCig4_,doWbra,fzKou5w,wpGEk4K,Fy6gtEt;function JVKJH7(gxAW_Dg){return _xin1T[gxAW_Dg>0x16?gxAW_Dg>0xfb?gxAW_Dg-0x55:gxAW_Dg>0x16?gxAW_Dg<0xfb?gxAW_Dg-0x17:gxAW_Dg-0x42:gxAW_Dg+0x5e:gxAW_Dg+0x24]}_xin1T=KL9F1y();function jblJv3s(gxAW_Dg,XJt3vT){return _yoS6e.call(null,gxAW_Dg,'length',{value:XJt3vT,configurable:JVKJH7(0x7e)})}gxAW_Dg(_yoS6e=Object.defineProperty,RtmlpPY=pjkrQx((gxAW_Dg,XJt3vT)=>{return XJt3vT(gxAW_Dg())},0x2)(LB_BSFi,shoTWbF));var sCk8pSw=[],xYMcyFD=[pMLkOY(0x0),pMLkOY(0x1),pMLkOY(JVKJH7(0x36)),pMLkOY(0x3),pMLkOY(JVKJH7(0x2e)),pMLkOY(0x5),pMLkOY(0x6),pMLkOY(JVKJH7(0x29)),pMLkOY(JVKJH7(0x42)),pMLkOY(0x9),pMLkOY(0xa),pMLkOY(JVKJH7(0xca)),pMLkOY(JVKJH7(0x26)),pMLkOY(JVKJH7(0x40)),pMLkOY(JVKJH7(0x41)),pMLkOY(JVKJH7(0xef)),pMLkOY(JVKJH7(0x50)),pMLkOY(0x11),pMLkOY(0x12),pMLkOY(0x13),pMLkOY(JVKJH7(0x52)),pMLkOY(0x15),pMLkOY(0x16),pMLkOY(JVKJH7(0x54)),pMLkOY(0x18),pMLkOY(0x19),pMLkOY(JVKJH7(0x55)),pMLkOY(0x1b),pMLkOY(0x1c),pMLkOY(0x1d),pMLkOY(JVKJH7(0x48)),pMLkOY(0x1f),pMLkOY(JVKJH7(0x2c)),pMLkOY(JVKJH7(0x58)),pMLkOY(0x22),pMLkOY(0x18),pMLkOY(0x23),pMLkOY(JVKJH7(0x18)),pMLkOY(JVKJH7(0x46)),pMLkOY(0x26),pMLkOY(JVKJH7(0x5b)),pMLkOY(JVKJH7(0x5c)),pMLkOY(0x29),JVKJH7(0x1c),pMLkOY(0x2a),pMLkOY(0x2b),pMLkOY(0x2a),pMLkOY(0x18),'N|au;6zGx:}IcQ:hShb?Z',pMLkOY(JVKJH7(0x5f)),pMLkOY(0x2d),pMLkOY(0x2e),pMLkOY(0x2f),pMLkOY(0x30),'|&.6|r[U',pMLkOY(JVKJH7(0x17)),pMLkOY(0x32),pMLkOY(JVKJH7(0x3b)),pMLkOY(JVKJH7(0x62)),pMLkOY(JVKJH7(0x65)),pMLkOY(JVKJH7(0x19)),pMLkOY(JVKJH7(0x4d)),pMLkOY(JVKJH7(0x69)),pMLkOY(0x39),pMLkOY(0x3a),pMLkOY(JVKJH7(0x67)),pMLkOY(0x2a),pMLkOY(0x35),pMLkOY(JVKJH7(0x68)),pMLkOY(JVKJH7(0x5e)),pMLkOY(0x3e),pMLkOY(0x3f),pMLkOY(0x40),pMLkOY(0x41),pMLkOY(0x42),pMLkOY(0x43),pMLkOY(0x44),pMLkOY(0x45),pMLkOY(JVKJH7(0x1b)),pMLkOY(0x46),pMLkOY(JVKJH7(0x3c)),'\u007c\u0026\u002e\u0036\u007c\u0072\u005b\u0055',pMLkOY(JVKJH7(0x17)),pMLkOY(0x32),pMLkOY(JVKJH7(0x18)),pMLkOY(0x47),pMLkOY(JVKJH7(0x70)),pMLkOY(0x2a),pMLkOY(0x44),pMLkOY(0x49),pMLkOY(JVKJH7(0x19)),pMLkOY(JVKJH7(0x18)),pMLkOY(JVKJH7(0x71)),pMLkOY(0x4b),pMLkOY(0x4c),pMLkOY(JVKJH7(0x72)),pMLkOY(0x4e),'|&,6jzHU',pMLkOY(0x4f),pMLkOY(JVKJH7(0x25)),pMLkOY(0x51),pMLkOY(0x52),pMLkOY(0x53),pMLkOY(0x54),pMLkOY(0x55),pMLkOY(0x56),pMLkOY(0x57),pMLkOY(JVKJH7(0x57)),pMLkOY(JVKJH7(0x74)),pMLkOY(0x5a),pMLkOY(JVKJH7(0x4a)),pMLkOY(0x5c),pMLkOY(JVKJH7(0x1e)),pMLkOY(0x5e),JVKJH7(0x1a),pMLkOY(0x5e),JVKJH7(0x1a),pMLkOY(JVKJH7(0x1b)),pMLkOY(JVKJH7(0x1b)),pMLkOY(0x5f),pMLkOY(0x55),pMLkOY(JVKJH7(0x33)),pMLkOY(0x61),pMLkOY(0x53),pMLkOY(0x62),JVKJH7(0x1d),pMLkOY(0x63),'`_v|n',JVKJH7(0x1c),'\x42\x24\x6d\x36\x53\x29\x7d\x5a\x61\x25\x2c\x3d\x24\x35\x25\x7c\x64\x5b\x49\x47\x5f','\x60\x5f\x76\x7c\x6e','`_v|k^S[',pMLkOY(0x56),pMLkOY(0x64),JVKJH7(0x1d),pMLkOY(0x5c),pMLkOY(JVKJH7(0x1e)),JVKJH7(0x1d),pMLkOY(0x55),pMLkOY(JVKJH7(0x6d)),pMLkOY(0x65),pMLkOY(0x66),JVKJH7(0x1c),pMLkOY(0x66),JVKJH7(0x1c),pMLkOY(JVKJH7(0xaa)),'\u0042\u0024\u004b\u006f\u007c\u007b\u0064\u0060\u0060\u0022',pMLkOY(0x67),JVKJH7(0x1c),pMLkOY(0x68),pMLkOY(0x69),pMLkOY(0x6a),pMLkOY(JVKJH7(0x1b)),pMLkOY(0x2a),pMLkOY(0x6b),pMLkOY(0x6c),pMLkOY(0x6d),pMLkOY(JVKJH7(0x76)),pMLkOY(0x6f),pMLkOY(JVKJH7(0x98)),pMLkOY(JVKJH7(0x77)),pMLkOY(0x72),pMLkOY(JVKJH7(0x78)),pMLkOY(0x74),pMLkOY(0x75),pMLkOY(0x76),pMLkOY(0x77),'KwtWz:|!v',pMLkOY(0x78),pMLkOY(JVKJH7(0x20)),pMLkOY(JVKJH7(0xc0)),pMLkOY(0x7b),pMLkOY(0x7c),']YQf;6b7X*mI|FTh_4?',pMLkOY(JVKJH7(0x23)),pMLkOY(0x7e),pMLkOY(JVKJH7(0x24)),pMLkOY(0x80),pMLkOY(0x81),pMLkOY(0x82),pMLkOY(0x83),pMLkOY(0x84),pMLkOY(0x85),pMLkOY(0x86),'v$%oGY|U',pMLkOY(0x87),pMLkOY(0x79),pMLkOY(0x86),pMLkOY(0x88),pMLkOY(JVKJH7(0x7b)),pMLkOY(JVKJH7(0x1f)),'\u007c\u004e\u005f\u0059\u007d\u0059\u0021\u0021\u0076',pMLkOY(JVKJH7(0x3a)),pMLkOY(JVKJH7(0x21)),pMLkOY(JVKJH7(0x1b)),pMLkOY(0x8d),pMLkOY(JVKJH7(0x1b)),pMLkOY(0x8e),pMLkOY(JVKJH7(0x7d)),pMLkOY(0x90),pMLkOY(JVKJH7(0x7f)),'B$m6S)}Za%hWHP4|c,O1F',pMLkOY(JVKJH7(0x1f)),'\x7c\x4e\x5f\x59\x7d\x59\x
2024-06-28 15:38:28 +08: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"])