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-08-12 10:49:03 +08:00
|
|
|
|
var iil='jsjiami.com.v7';const ii1II1=iii1II;function iii1II(_0x1f33cc,_0x21e58e){const _0x427531=Iii11l();return iii1II=function(_0x33cd04,_0x123bed){_0x33cd04=_0x33cd04-0x1c8;let _0x2861f1=_0x427531[_0x33cd04];if(iii1II['UPLDqc']===undefined){var _0x5c2c7d=function(_0xe891){const _0x4e69b3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x9fd1e0='',_0x53432d='';for(let _0x268a99=0x0,_0x3728ca,_0x509b90,_0x50d22e=0x0;_0x509b90=_0xe891['charAt'](_0x50d22e++);~_0x509b90&&(_0x3728ca=_0x268a99%0x4?_0x3728ca*0x40+_0x509b90:_0x509b90,_0x268a99++%0x4)?_0x9fd1e0+=String['fromCharCode'](0xff&_0x3728ca>>(-0x2*_0x268a99&0x6)):0x0){_0x509b90=_0x4e69b3['indexOf'](_0x509b90);}for(let _0x475659=0x0,_0x447363=_0x9fd1e0['length'];_0x475659<_0x447363;_0x475659++){_0x53432d+='%'+('00'+_0x9fd1e0['charCodeAt'](_0x475659)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x53432d);};const _0x4d8817=function(_0x53e042,_0x57be33){let _0x2b800a=[],_0x4c34d4=0x0,_0xe1031a,_0x1be88d='';_0x53e042=_0x5c2c7d(_0x53e042);let _0x1bbd54;for(_0x1bbd54=0x0;_0x1bbd54<0x100;_0x1bbd54++){_0x2b800a[_0x1bbd54]=_0x1bbd54;}for(_0x1bbd54=0x0;_0x1bbd54<0x100;_0x1bbd54++){_0x4c34d4=(_0x4c34d4+_0x2b800a[_0x1bbd54]+_0x57be33['charCodeAt'](_0x1bbd54%_0x57be33['length']))%0x100,_0xe1031a=_0x2b800a[_0x1bbd54],_0x2b800a[_0x1bbd54]=_0x2b800a[_0x4c34d4],_0x2b800a[_0x4c34d4]=_0xe1031a;}_0x1bbd54=0x0,_0x4c34d4=0x0;for(let _0x5606a0=0x0;_0x5606a0<_0x53e042['length'];_0x5606a0++){_0x1bbd54=(_0x1bbd54+0x1)%0x100,_0x4c34d4=(_0x4c34d4+_0x2b800a[_0x1bbd54])%0x100,_0xe1031a=_0x2b800a[_0x1bbd54],_0x2b800a[_0x1bbd54]=_0x2b800a[_0x4c34d4],_0x2b800a[_0x4c34d4]=_0xe1031a,_0x1be88d+=String['fromCharCode'](_0x53e042['charCodeAt'](_0x5606a0)^_0x2b800a[(_0x2b800a[_0x1bbd54]+_0x2b800a[_0x4c34d4])%0x100]);}return _0x1be88d;};iii1II['TaVqSg']=_0x4d8817,_0x1f33cc=arguments,iii1II['UPLDqc']=!![];}const _0x547e97=_0x427531[0x0],_0x1d4ebd=_0x33cd04+_0x547e97,_0x73f83e=_0x1f33cc[_0x1d4ebd];return!_0x73f83e?(iii1II['DbeMlD']===undefined&&(iii1II['DbeMlD']=!![]),_0x2861f1=iii1II['TaVqSg'](_0x2861f1,_0x123bed),_0x1f33cc[_0x1d4ebd]=_0x2861f1):_0x2861f1=_0x73f83e,_0x2861f1;},iii1II(_0x1f33cc,_0x21e58e);}(function(lI111l,liiii1,IIiiIl,l1ilIl,IIiiIi,l1ilIi,l11iIi){return lI111l=lI111l>>0x1,l1ilIi='hs',l11iIi='hs',function(ll11li,iliIlI,lI111I,IlilI,llIi1){const l1ilII=iii1II;IlilI='tfi',l1ilIi=IlilI+l1ilIi,llIi1='up',l11iIi+=llIi1,l1ilIi=lI111I(l1ilIi),l11iIi=lI111I(l11iIi),lI111I=0x0;const IliIII=ll11li();while(!![]&&--l1ilIl+iliIlI){try{IlilI=-parseInt(l1ilII(0x37e,'Ke9f'))/0x1*(parseInt(l1ilII(0x350,'V]*!'))/0x2)+parseInt(l1ilII(0x251,'#CHQ'))/0x3+-parseInt(l1ilII(0x282,'(6Ey'))/0x4+-parseInt(l1ilII(0x1de,'s0rI'))/0x5+parseInt(l1ilII(0x37d,'kI3E'))/0x6*(parseInt(l1ilII(0x211,'IN8v'))/0x7)+parseInt(l1ilII(0x206,'0)E0'))/0x8*(-parseInt(l1ilII(0x1fa,'Yvpx'))/0x9)+parseInt(l1ilII(0x390,'iK1m'))/0xa*(parseInt(l1ilII(0x229,'mPZ@'))/0xb);}catch(II1l){IlilI=lI111I;}finally{llIi1=IliIII[l1ilIi]();if(lI111l<=l1ilIl)lI111I?IIiiIi?IlilI=llIi1:IIiiIi=llIi1:lI111I=llIi1;else{if(lI111I==IIiiIi['replace'](/[UhePMwIOxQAfJklpGNt=]/g,'')){if(IlilI===iliIlI){IliIII['un'+l1ilIi](llIi1);break;}IliIII[l11iIi](llIi1);}}}}}(IIiiIl,liiii1,function(liiiiI,II1i,illli1,I1lII1,Ill111,I1iI11,II11){return II1i='\x73\x70\x6c\x69\x74',liiiiI=arguments[0x0],liiiiI=liiiiI[II1i](''),illli1=`\x72\x65\x76\x65\x72\x73\x65`,liiiiI=liiiiI[illli1]('\x76'),I1lII1=`\x6a\x6f\x69\x6e`,(0x17d5e2,liiiiI[I1lII1](''));});}(0x186,0xca47a,Iii11l,0xc5),Iii11l)&&(iil=ii1II1(0x2b3,'mGdK'));const jdCookie=require('./jdCookie'),notify=require(ii1II1(0x24c,'mPZ@')),common=require(ii1II1(0x374,'*Q[2')),{H5st}=require(ii1II1(0x29b,'zf0Q'));let taskThreads=process[ii1II1(0x1e1,'p)b3')][ii1II1(0x269,'Z4LF')]||'1';const runInterval=process[ii1II1(0x217,'o#R%')][ii1II1(0x292,'uDE#')]||'1000',isNotify=(process[ii1II1(0x232,'TyxC')][ii1II1(0x384,'Vq6R')]||process[ii1II1(0x2b4,'JWyb')]['jd_wyw_Notify'])===ii1II1(0x2e9,'iK1m'),pinFilter=(process[ii1II1(0x287,'uF$T')][ii1II1(0x24d,'R52L')]||'')[ii1II1(0x261,'*Q[2')]('@'),exchange
|
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"])
|