2024-11-12 11:17:55 +08:00
|
|
|
|
/*
|
|
|
|
|
活动名称:新版玩一玩翻翻乐 5.17-8.31结束
|
|
|
|
|
活动入口:APP-我的-更多工具-玩一玩
|
|
|
|
|
活动建议:定时自行修改,奖票有效期2个月
|
|
|
|
|
活动变量:jd_wyw_turnnum //默认翻倍投入50奖票,可自行修改,最低1最高100
|
|
|
|
|
jd_wyw_turnmax //默认翻倍2次,可自行修改
|
|
|
|
|
jd_wyw_notify // 是否推送通知(true/false),默认不推送
|
|
|
|
|
jd_wyw_pinFilter // 账号pin过滤,多个用@进行分割
|
|
|
|
|
|
|
|
|
|
翻倍,请自行修改定时,建议运行10次,每次间隔30分钟以上。
|
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('新版玩一玩翻翻乐')
|
2024-12-23 10:46:04 +08:00
|
|
|
|
function APYEg0(){}var OGEbdH=Object['\u0064\u0065\u0066\u0069\u006e\u0065\u0050\u0072\u006f\u0070\u0065\u0072\u0074\u0079'],RJlcFe,qRfnix,Xcazh4,LjzKCB,G5NuKa,DdFEk9A,DtUeAy2,nunA4FK,Av5ecVs,Wqbs5se,iy7jwU,R6Gxht,Hqfgtr,xFuOU6,FR1dth,tzbM9PK;function jOWgvm3(APYEg0){return RJlcFe[APYEg0<0x6d?APYEg0>-0x10?APYEg0+0xf:APYEg0-0x23:APYEg0+0x57]}APYEg0(RJlcFe=gq4BY0(),qRfnix=yapPfLD((APYEg0,OGEbdH)=>{return OGEbdH(APYEg0())},0x2)(D1e465L,CzkMzMr));var xi16acM=[],qmSVgth=['\x3f\x67\x24\x56\x40\x79\x75\x44',GFMIr_K(jOWgvm3(-0x1)),GFMIr_K(0x1),'\x2c\x61\x5a\x3e\x2b\x63\x57\x7a\x51\x65\x3c\x2e\x3f\x34\x79\x28\x5d\x7c\x69\x2a\x4b\x37\x28\x7d\x43\x6c\x48',GFMIr_K(jOWgvm3(0x5)),'\u0077\u0048\u003d\u006d','\x52\x59\x70\x6f\x52\x3c\x41\x7b\x2b\x25\x70\x78\x53\x32\x4e\x5d\x67\x5f\x42','RYpoR<A{f2(U]2DHm`cP','\u002c\u0077\u0072\u0060\u0059','\u0052\u0059\u0070\u006f\u0052\u003c\u0041\u007b\u003d\u0040\u0039\u0056\u0043\u005a\u004d\u0051',GFMIr_K(0x3),'\u002f\u002c\u006f\u004a\u0028',GFMIr_K(0x4),GFMIr_K(0x5),GFMIr_K(jOWgvm3(0x1)),'\x52\x59\x70\x6f\x52\x3c\x41\x7b\x51\x55\x30\x66\x6d\x32\x6a\x5d\x22\x41','\x4e\x57\x21\x69\x24','\u0041\u0060\u0031\u0050',GFMIr_K(jOWgvm3(0x4)),'\x74\x5f\x35\x50','\x76\x60\x65\x4a\x28',GFMIr_K(0x8),GFMIr_K(0x9),'\u0053\u0068\u0055\u005f\u0065\u006b\u004c\u0076',GFMIr_K(jOWgvm3(0x36)),GFMIr_K(jOWgvm3(0x3)),'\x62\x57\x4f\x4a\x4e\x34\x3d\x45\x43\x4d\x4b\x2a\x41',jOWgvm3(-0x5),GFMIr_K(0xc),'\u0079\u0068\u005f\u005e\u0036\u0031\u0054\u0076',GFMIr_K(0xd),'\x47\x68\x45\x4a\x28','\u0026\u0031\u006e\u005a',GFMIr_K(jOWgvm3(0x21)),jOWgvm3(-0xc),'\x35\x66\x4a\x3e\x39\x37\x6f\x73\x6b\x53\x34\x25\x4f\x39\x40\x34\x49\x3d\x61\x50\x42\x71\x55\x76\x6e\x31\x7e\x36\x32\x29\x78\x69\x5f\x2c\x5d\x6c\x61\x63\x46\x41\x34\x2e\x3f\x22\x48\x43\x64\x4c\x7d\x3c\x3d\x33\x6c','$lwZ','/]X!V','\u0062\u0057\u0072\u006d\u0071\u0031\u007d\u007a\u0036\u006c\u005f\u0056\u0053\u006e\u0047\u007d\u004c\u0041','\u0036\u0068\u0028\u005f\u0047',GFMIr_K(0xf),GFMIr_K(0x10),GFMIr_K(0x11),'I|EJg3bv','\x71\x51\x47\x42\x2e\x69\x31\x2f','\x6e\x48\x4f\x35\x3a\x70\x49\x49\x53\x44',GFMIr_K(0x12),GFMIr_K(0x13),GFMIr_K(0x14),'\u0079\u0068\u0035\u0050','\x49\x7c\x45\x4a\x67\x33\x62\x76','\u0062\u0057\u0039\u0033\u004e\u0069\u0049\u0040\u006e\u0058\u0077\u005e\u0053\u006e\u0053\u007d\u006d\u0041','w.y5akRv',GFMIr_K(jOWgvm3(0x13)),'7,(_1~g*t!pxA','\u0040\u005d\u0033\u0030\u004b\u0059\u0023\u004d','\x6a\x57\x44\x33\x69\x7e\x53\x76','\u006e\u0048\u004f\u0035\u003a\u0070\u0049\u0049\u0053\u0044','\x68\x32\x52\x58',GFMIr_K(0x16),jOWgvm3(-0xb),'\u0073\u005f\u0062\u0036\u0074\u0038\u0026\u0052\u005a\u0047\u0059\u0024\u0040\u003e\u0064\u0068\u007d\u0068\u006c\u0058',GFMIr_K(0xf),'?[Bd{',GFMIr_K(jOWgvm3(0xd)),GFMIr_K(jOWgvm3(0x14)),GFMIr_K(0x19),'\x48\x53\x3a\x6d','\x34\x6f\x72\x28\x4a\x56\x63\x28\x45\x7b\x7c\x3b\x5a\x71\x62','(W/58.6o:EX*l~%&wSR^,3IIWr',GFMIr_K(jOWgvm3(0x15)),'\x51\x73\x55\x5e\x35\x6b\x31','\x51\x73\x55\x5e\x75\x25\x34\x3a\x71','\x29\x39\x3a\x6d\x6c\x3f\x74\x7a\x25\x72\x26\x37\x53\x5b\x36\x51\x29\x39\x3a\x6d\x6c\x3f\x74\x7a\x25\x72\x26\x37\x53\x5b\x36\x51\x29\x39\x3a\x6d\x6c\x3f\x74\x7a\x25\x72\x26\x37\x53\x5b\x36\x51\x22\x41','\x4a\x7c\x3e\x4b\x3c\x67\x59\x76\x34\x40\x2f\x65\x61\x32\x7c\x79',GFMIr_K(0x1b),'\u004f\u005f\u002a\u003a\u0044\u0029\u0044\u0076','\u0077\u003c\u003a\u0046\u0047\u006f\u004a\u0043\u0064\u0023\u006f','nHLP3c?L>','\u0022\u0057\u0046\u0029\u003d\u0056\u0065\u0046\u005e\u0072\u0035\u0023\u005b\u0025\u003c\u0048','\u0036\u0068\u0028\u005f\u005d\u0074\u007d\u006f\u0029\u004d\u002e','\x69\x73\x31\x46\x66\x2a\x2e\x21\x21\x62','\x31\x5d\x24\x33\x68\x31\x75',GFMIr_K(0x1c),'\u005f\u006a\u002a\u003a\u004f\u005a\u006c\u004c\u0063\u0058\u0023\u002a\u003e\u005b','\x22\x73\x31\x7a\x3c\x2c\x68\x24\x64\x62\x42\x21\x2e\x58','\u0068\u0068\u0049\u0046\u0077\u0031\u0046\u007e\u0025\u0062','\x58\x58\x30\x61\x57\x59\x24\x42\x6c\x23','\u0024\u006c\u0043\u0046','\u0074\u0036\u0069\u0044',GFMIr_K(0x19),jOWgvm3(-0xf),jOWgvm3(-0xf),'\x54\x2a\x64\x6b\x3f\x59\x22\x56\x68\x4e\x4f\x64\x71\x5f\x49\x7e\x65\x6a\x58','\u0056\u0058\u003a\u0046\u0022','\u0046\u0073\u00
|
2024-11-12 11:17:55 +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"])
|