KR/jd_tj_cxjhelp.js

21 lines
62 KiB
JavaScript
Raw Normal View History

2023-07-27 16:14:01 +08:00
/*
2023-09-19 21:22:48 +08:00
#特价版-幸运抽奖助力
2023-07-27 16:14:01 +08:00
入口特价版APP 首页 幸运抽奖 大概率现金
2023-09-19 21:22:48 +08:00
变量
krlxjcode //指定助力码
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 需要自行修改
2023-07-27 16:14:01 +08:00
[task_local]
2023-09-19 21:22:48 +08:00
#特价版-幸运抽奖助力
1 1 1 1 * jd_tj_cxjhelp.js, tag=特价版-幸运抽奖助力, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true*/
2023-07-27 16:14:01 +08:00
2023-09-19 21:22:48 +08:00
const $ = new Env('特价版-幸运抽奖助力助力');
2023-09-19 21:25:56 +08:00
var version_='jsjiami.com.v7';const Ii1i1IlI=llliiIi1;(function(liiIillI,ll1lIIi,ii1I1l,llili1l,IIiiliIi,IIIl111,llill){return liiIillI=liiIillI>>0x5,IIIl111='hs',llill='hs',function(lliIiI1,illl1llI,iIliIii,Iil11l1i,lliI1iII){const iIlIl1=llliiIi1;Iil11l1i='tfi',IIIl111=Iil11l1i+IIIl111,lliI1iII='up',llill+=lliI1iII,IIIl111=iIliIii(IIIl111),llill=iIliIii(llill),iIliIii=0x0;const I1llli1i=lliIiI1();while(!![]&&--llili1l+illl1llI){try{Iil11l1i=-parseInt(iIlIl1(0x301,'zEjx'))/0x1+parseInt(iIlIl1(0x29c,'*9Iq'))/0x2+-parseInt(iIlIl1(0x35d,'O*GQ'))/0x3*(-parseInt(iIlIl1(0x1e0,'oCK('))/0x4)+-parseInt(iIlIl1(0x208,')6BQ'))/0x5*(-parseInt(iIlIl1(0x253,'vwwE'))/0x6)+-parseInt(iIlIl1(0x368,'@[*n'))/0x7*(-parseInt(iIlIl1(0x1b8,'aM$i'))/0x8)+-parseInt(iIlIl1(0x3bf,'!sT#'))/0x9*(parseInt(iIlIl1(0x2f4,'noIf'))/0xa)+parseInt(iIlIl1(0x2d0,'2bH('))/0xb*(parseInt(iIlIl1(0x282,'c3by'))/0xc);}catch(ii11iii){Iil11l1i=iIliIii;}finally{lliI1iII=I1llli1i[IIIl111]();if(liiIillI<=llili1l)iIliIii?IIiiliIi?Iil11l1i=lliI1iII:IIiiliIi=lliI1iII:iIliIii=lliI1iII;else{if(iIliIii==IIiiliIi['replace'](/[IOGDESMnwFuUyelTrACP=]/g,'')){if(Iil11l1i===illl1llI){I1llli1i['un'+IIIl111](lliI1iII);break;}I1llli1i[llill](lliI1iII);}}}}}(ii1I1l,ll1lIIi,function(ll1iI1Ii,iiliillI,Iill1I1l,lllllIl1,IiiI1II1,IIi1illi,l1i11){return iiliillI='\x73\x70\x6c\x69\x74',ll1iI1Ii=arguments[0x0],ll1iI1Ii=ll1iI1Ii[iiliillI](''),Iill1I1l=`\x72\x65\x76\x65\x72\x73\x65`,ll1iI1Ii=ll1iI1Ii[Iill1I1l]('\x76'),lllllIl1=`\x6a\x6f\x69\x6e`,(0x13efe8,ll1iI1Ii[lllllIl1](''));});}(0x1800,0x6263d,IIi1I1l,0xc2),IIi1I1l)&&(version_=IIi1I1l);const I1iIlIl=$['isNode']()?require('./sendNotify'):'',l1lil11l=$['isNode']()?require(Ii1i1IlI(0x2b5,'vwwE')):'',I11iiiI1=require('./function/h5st41.js'),illlIII1=require('./function/jdCommon');let l111Iii=[],IilI11li='',iili1lI,iIllli11=![],I1llliil=[],l1ilIIl=[],lIiI1Ii1,iil11il1={};function llliiIi1(_0x33000b,_0x22ba99){const _0x34652c=IIi1I1l();return llliiIi1=function(_0x1b707c,_0x44d43e){_0x1b707c=_0x1b707c-0x1ad;let _0x4fa766=_0x34652c[_0x1b707c];if(llliiIi1['wThpda']===undefined){var _0x33934e=function(_0x3c3544){const _0x37808d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1afe3e='',_0x20e078='';for(let _0x589f3f=0x0,_0x290de0,_0x3437ff,_0x1fe29b=0x0;_0x3437ff=_0x3c3544['charAt'](_0x1fe29b++);~_0x3437ff&&(_0x290de0=_0x589f3f%0x4?_0x290de0*0x40+_0x3437ff:_0x3437ff,_0x589f3f++%0x4)?_0x1afe3e+=String['fromCharCode'](0xff&_0x290de0>>(-0x2*_0x589f3f&0x6)):0x0){_0x3437ff=_0x37808d['indexOf'](_0x3437ff);}for(let _0x21398c=0x0,_0xab3b4d=_0x1afe3e['length'];_0x21398c<_0xab3b4d;_0x21398c++){_0x20e078+='%'+('00'+_0x1afe3e['charCodeAt'](_0x21398c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20e078);};const _0x418c19=function(_0x573493,_0x391251){let _0x3e08c5=[],_0x4d0c3f=0x0,_0x276cca,_0x1f7462='';_0x573493=_0x33934e(_0x573493);let _0x522a31;for(_0x522a31=0x0;_0x522a31<0x100;_0x522a31++){_0x3e08c5[_0x522a31]=_0x522a31;}for(_0x522a31=0x0;_0x522a31<0x100;_0x522a31++){_0x4d0c3f=(_0x4d0c3f+_0x3e08c5[_0x522a31]+_0x391251['charCodeAt'](_0x522a31%_0x391251['length']))%0x100,_0x276cca=_0x3e08c5[_0x522a31],_0x3e08c5[_0x522a31]=_0x3e08c5[_0x4d0c3f],_0x3e08c5[_0x4d0c3f]=_0x276cca;}_0x522a31=0x0,_0x4d0c3f=0x0;for(let _0x3eefc4=0x0;_0x3eefc4<_0x573493['length'];_0x3eefc4++){_0x522a31=(_0x522a31+0x1)%0x100,_0x4d0c3f=(_0x4d0c3f+_0x3e08c5[_0x522a31])%0x100,_0x276cca=_0x3e08c5[_0x522a31],_0x3e08c5[_0x522a31]=_0x3e08c5[_0x4d0c3f],_0x3e08c5[_0x4d0c3f]=_0x276cca,_0x1f7462+=String['fromCharCode'](_0x573493['charCodeAt'](_0x3eefc4)^_0x3e08c5[(_0x3e08c5[_0x522a31]+_0x3e08c5[_0x4d0c3f])%0x100]);}return _0x1f7462;};llliiIi1['OnnSEG']=_0x418c19,_0x33000b=arguments,llliiIi1['wThpda']=!![];}const _0x3b6c19=_0x34652c[0x0],_0x49ba0b=_0x1b707c+_0x3b6c19,_0x5ef557=_0x33000b[_0x49ba0b];return!_0x5ef557?(llliiIi1['wilJGW']===undefined&&(llliiIi1['wilJGW']=!![]),_0x4fa766=llliiIi1['OnnSEG'](_0x4fa766,_0x44d43e),_0x33000b[_0x49ba0b]=_0x4fa766):_0x4fa766=_0x5ef557,_0x4fa766;},llliiIi1(_0x33000b,_0x22ba99);}$[Ii1i1IlI(0x30f,'16Q%')]=![];let lll11lIi
2023-07-27 16:14:01 +08:00
// prettier-ignore
2023-09-19 21:22:48 +08:00
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"])