2023-09-19 21:22:48 +08:00
|
|
|
|
/*
|
|
|
|
|
#京东版-转赚红包助力
|
|
|
|
|
|
|
|
|
|
入口:京东APP 搜索 玩一玩 转赚红包
|
|
|
|
|
|
|
|
|
|
变量:
|
|
|
|
|
krzzhbcode //指定助力码
|
|
|
|
|
JD_PROXY_OPEN // 代理启用变量,默认不开启(true/false)
|
|
|
|
|
JD_PROXY_TUNNRL // 代理池代理地址变量,默认不开启,仅支持代理池模式(auto-proxy-pool),格式为:http://ip:port
|
|
|
|
|
JD_PROXY_URL // API代理地址变量,默认不开启,仅支持 数据格式:txt;提取数量:每次一个,格式为:http://api.xxx.xxx
|
|
|
|
|
JD_NO_PROXY // 禁止走代理,默认 127.0.0.1,*.baidu.com 需要自行修改
|
|
|
|
|
|
|
|
|
|
[task_local]
|
|
|
|
|
#京东版-转赚红包助力
|
|
|
|
|
1 1 1 1 * jd_tj_cxjhelp.js, tag=京东版-转赚红包助力, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('京东版-转赚红包助力');
|
2023-09-19 21:25:56 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const ilIII1i1=IlI1IIII;(function(lIIlil1i,lIlll11l,iIll1lIi,ll111ii,IIIIIII,ilIliiiI,IlliiilI){return lIIlil1i=lIIlil1i>>0x1,ilIliiiI='hs',IlliiilI='hs',function(lliiIiIi,i1llI1i1,IIl11IiI,lII1iIi1,IliliI1l){const IlI1I1=IlI1IIII;lII1iIi1='tfi',ilIliiiI=lII1iIi1+ilIliiiI,IliliI1l='up',IlliiilI+=IliliI1l,ilIliiiI=IIl11IiI(ilIliiiI),IlliiilI=IIl11IiI(IlliiilI),IIl11IiI=0x0;const l1i1I1I1=lliiIiIi();while(!![]&&--ll111ii+i1llI1i1){try{lII1iIi1=-parseInt(IlI1I1(0x190,'G53B'))/0x1*(-parseInt(IlI1I1(0x1cd,'c46$'))/0x2)+parseInt(IlI1I1(0x1ca,'j6yI'))/0x3*(parseInt(IlI1I1(0x204,'z4#0'))/0x4)+-parseInt(IlI1I1(0x179,']x1s'))/0x5+parseInt(IlI1I1(0x206,'tyDX'))/0x6*(parseInt(IlI1I1(0x202,'e7MX'))/0x7)+-parseInt(IlI1I1(0x264,'tCCY'))/0x8+parseInt(IlI1I1(0x1ef,'c46$'))/0x9*(-parseInt(IlI1I1(0x19b,'o5Ud'))/0xa)+parseInt(IlI1I1(0x2f8,'EtTC'))/0xb;}catch(iIllIi){lII1iIi1=IIl11IiI;}finally{IliliI1l=l1i1I1I1[ilIliiiI]();if(lIIlil1i<=ll111ii)IIl11IiI?IIIIIII?lII1iIi1=IliliI1l:IIIIIII=IliliI1l:IIl11IiI=IliliI1l;else{if(IIl11IiI==IIIIIII['replace'](/[YTtnLbNOfUPkSgFHMQEI=]/g,'')){if(lII1iIi1===i1llI1i1){l1i1I1I1['un'+ilIliiiI](IliliI1l);break;}l1i1I1I1[IlliiilI](IliliI1l);}}}}}(iIll1lIi,lIlll11l,function(ili1iIi,iIi1iIi,Iii1ll1I,IIiIIIIi,liiiilll,iI1l11iI,ll1lIlli){return iIi1iIi='\x73\x70\x6c\x69\x74',ili1iIi=arguments[0x0],ili1iIi=ili1iIi[iIi1iIi](''),Iii1ll1I=`\x72\x65\x76\x65\x72\x73\x65`,ili1iIi=ili1iIi[Iii1ll1I]('\x76'),IIiIIIIi=`\x6a\x6f\x69\x6e`,(0x13efe9,ili1iIi[IIiIIIIi](''));});}(0x17c,0xef083,illlIIll,0xc0),illlIIll)&&(version_=illlIIll);const Ili111=$['isNode']()?require(ilIII1i1(0x1dc,'00L!')):'',lIi1l1li=$[ilIII1i1(0x320,'DUAl')]()?require(ilIII1i1(0x244,'V8Xe')):'',IiI1lill=require('./function/h5st41.js'),iiliIliI=require(ilIII1i1(0x1c5,'%DiH'));function IlI1IIII(_0x295f6b,_0x12a0b2){const _0xf6cbd6=illlIIll();return IlI1IIII=function(_0x16eac5,_0x472f21){_0x16eac5=_0x16eac5-0xc5;let _0x5f83fb=_0xf6cbd6[_0x16eac5];if(IlI1IIII['EgXeJe']===undefined){var _0x5b8cd9=function(_0x2117a7){const _0x4af7dd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c9a88='',_0x3dfaa4='';for(let _0x1ca827=0x0,_0x2ea5e3,_0x1ff66f,_0x4401ee=0x0;_0x1ff66f=_0x2117a7['charAt'](_0x4401ee++);~_0x1ff66f&&(_0x2ea5e3=_0x1ca827%0x4?_0x2ea5e3*0x40+_0x1ff66f:_0x1ff66f,_0x1ca827++%0x4)?_0x1c9a88+=String['fromCharCode'](0xff&_0x2ea5e3>>(-0x2*_0x1ca827&0x6)):0x0){_0x1ff66f=_0x4af7dd['indexOf'](_0x1ff66f);}for(let _0x24deb0=0x0,_0x44aaff=_0x1c9a88['length'];_0x24deb0<_0x44aaff;_0x24deb0++){_0x3dfaa4+='%'+('00'+_0x1c9a88['charCodeAt'](_0x24deb0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3dfaa4);};const _0x5b63cf=function(_0x41e063,_0x28a51a){let _0x194ea1=[],_0x220acf=0x0,_0x3e4924,_0x4d124f='';_0x41e063=_0x5b8cd9(_0x41e063);let _0x50991d;for(_0x50991d=0x0;_0x50991d<0x100;_0x50991d++){_0x194ea1[_0x50991d]=_0x50991d;}for(_0x50991d=0x0;_0x50991d<0x100;_0x50991d++){_0x220acf=(_0x220acf+_0x194ea1[_0x50991d]+_0x28a51a['charCodeAt'](_0x50991d%_0x28a51a['length']))%0x100,_0x3e4924=_0x194ea1[_0x50991d],_0x194ea1[_0x50991d]=_0x194ea1[_0x220acf],_0x194ea1[_0x220acf]=_0x3e4924;}_0x50991d=0x0,_0x220acf=0x0;for(let _0x2ac7d0=0x0;_0x2ac7d0<_0x41e063['length'];_0x2ac7d0++){_0x50991d=(_0x50991d+0x1)%0x100,_0x220acf=(_0x220acf+_0x194ea1[_0x50991d])%0x100,_0x3e4924=_0x194ea1[_0x50991d],_0x194ea1[_0x50991d]=_0x194ea1[_0x220acf],_0x194ea1[_0x220acf]=_0x3e4924,_0x4d124f+=String['fromCharCode'](_0x41e063['charCodeAt'](_0x2ac7d0)^_0x194ea1[(_0x194ea1[_0x50991d]+_0x194ea1[_0x220acf])%0x100]);}return _0x4d124f;};IlI1IIII['vYUlWw']=_0x5b63cf,_0x295f6b=arguments,IlI1IIII['EgXeJe']=!![];}const _0x3620d5=_0xf6cbd6[0x0],_0x922376=_0x16eac5+_0x3620d5,_0x5e43a7=_0x295f6b[_0x922376];return!_0x5e43a7?(IlI1IIII['QODNmc']===undefined&&(IlI1IIII['QODNmc']=!![]),_0x5f83fb=IlI1IIII['vYUlWw'](_0x5f83fb,_0x472f21),_0x295f6b[_0x922376]=_0x5f83fb):_0x5f83fb=_0x5e43a7,_0x5f83fb;},IlI1IIII(_0x295f6b,_0x12a0b2);}let l11111I=[],i1Iiiil='',illil1l1,iiIi11Ii=![],IiiI111I=[],ll11llII=[],liIIIlIl,lI1lIlil={};$['krtyhot']=![];let i1Ili1
|
2023-09-19 21:22:48 +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"])
|