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-10-26 22:52:41 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const I1Iliii1=iiiIii1l;(function(i1i1iill,IiII1il1,Illll1,II1iliII,Il1iII11,l1ii1ll1,l1II1ill){return i1i1iill=i1i1iill>>0x8,l1ii1ll1='hs',l1II1ill='hs',function(IilII1Ii,lI1llil,i1ll1ll,liIIi1il,iI11III){const i11ill11=iiiIii1l;liIIi1il='tfi',l1ii1ll1=liIIi1il+l1ii1ll1,iI11III='up',l1II1ill+=iI11III,l1ii1ll1=i1ll1ll(l1ii1ll1),l1II1ill=i1ll1ll(l1II1ill),i1ll1ll=0x0;const il1i1lll=IilII1Ii();while(!![]&&--II1iliII+lI1llil){try{liIIi1il=-parseInt(i11ill11(0x242,'H#f!'))/0x1*(parseInt(i11ill11(0x2c1,'wl1w'))/0x2)+-parseInt(i11ill11(0x468,'wl1w'))/0x3+-parseInt(i11ill11(0x380,'drc&'))/0x4+parseInt(i11ill11(0x251,'FRpT'))/0x5+-parseInt(i11ill11(0x3d6,'Xfxn'))/0x6+-parseInt(i11ill11(0x291,'6klZ'))/0x7*(-parseInt(i11ill11(0x27f,'nO&l'))/0x8)+parseInt(i11ill11(0x281,'HjC@'))/0x9;}catch(lli1iIil){liIIi1il=i1ll1ll;}finally{iI11III=il1i1lll[l1ii1ll1]();if(i1i1iill<=II1iliII)i1ll1ll?Il1iII11?liIIi1il=iI11III:Il1iII11=iI11III:i1ll1ll=iI11III;else{if(i1ll1ll==Il1iII11['replace'](/[bTxfnuEwkpNUYKRy=]/g,'')){if(liIIi1il===lI1llil){il1i1lll['un'+l1ii1ll1](iI11III);break;}il1i1lll[l1II1ill](iI11III);}}}}}(Illll1,IiII1il1,function(IlII1il1,iIl11lIi,II11Il11,iIii1Il1,Ii11ili,lIII11Il,II1l1l1I){return iIl11lIi='\x73\x70\x6c\x69\x74',IlII1il1=arguments[0x0],IlII1il1=IlII1il1[iIl11lIi](''),II11Il11=`\x72\x65\x76\x65\x72\x73\x65`,IlII1il1=IlII1il1[II11Il11]('\x76'),iIii1Il1=`\x6a\x6f\x69\x6e`,(0x14497b,IlII1il1[iIii1Il1](''));});}(0xc900,0x49591,lIllII11,0xcb),lIllII11)&&(version_=I1Iliii1(0x3e4,'Oh0J'));const ilIllII=$[I1Iliii1(0x48e,'&B1I')]()?require(I1Iliii1(0x43b,'Xfxn')):'',iIl1I1li=$['isNode']()?require(I1Iliii1(0x3a1,'*5h7')):'',li1Ii1i=require(I1Iliii1(0x23a,'nO&l')),liiI1i1l=require('./function/jdCommon');function iiiIii1l(_0x4b7a58,_0x547d1c){const _0xdbdcd0=lIllII11();return iiiIii1l=function(_0x1b7d9d,_0x3a3f77){_0x1b7d9d=_0x1b7d9d-0x1ed;let _0x5c2ef0=_0xdbdcd0[_0x1b7d9d];if(iiiIii1l['HcKEYw']===undefined){var _0x57b9c7=function(_0x5e9311){const _0x3d5ec2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57ea32='',_0x2d5eed='';for(let _0x2b0283=0x0,_0x26863e,_0x4330f6,_0x2af192=0x0;_0x4330f6=_0x5e9311['charAt'](_0x2af192++);~_0x4330f6&&(_0x26863e=_0x2b0283%0x4?_0x26863e*0x40+_0x4330f6:_0x4330f6,_0x2b0283++%0x4)?_0x57ea32+=String['fromCharCode'](0xff&_0x26863e>>(-0x2*_0x2b0283&0x6)):0x0){_0x4330f6=_0x3d5ec2['indexOf'](_0x4330f6);}for(let _0x3bb7ff=0x0,_0x1d46ff=_0x57ea32['length'];_0x3bb7ff<_0x1d46ff;_0x3bb7ff++){_0x2d5eed+='%'+('00'+_0x57ea32['charCodeAt'](_0x3bb7ff)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d5eed);};const _0x23f976=function(_0x263818,_0x49fefd){let _0x3d13ec=[],_0x38e600=0x0,_0x1c3800,_0x1039af='';_0x263818=_0x57b9c7(_0x263818);let _0x30050d;for(_0x30050d=0x0;_0x30050d<0x100;_0x30050d++){_0x3d13ec[_0x30050d]=_0x30050d;}for(_0x30050d=0x0;_0x30050d<0x100;_0x30050d++){_0x38e600=(_0x38e600+_0x3d13ec[_0x30050d]+_0x49fefd['charCodeAt'](_0x30050d%_0x49fefd['length']))%0x100,_0x1c3800=_0x3d13ec[_0x30050d],_0x3d13ec[_0x30050d]=_0x3d13ec[_0x38e600],_0x3d13ec[_0x38e600]=_0x1c3800;}_0x30050d=0x0,_0x38e600=0x0;for(let _0x4793cd=0x0;_0x4793cd<_0x263818['length'];_0x4793cd++){_0x30050d=(_0x30050d+0x1)%0x100,_0x38e600=(_0x38e600+_0x3d13ec[_0x30050d])%0x100,_0x1c3800=_0x3d13ec[_0x30050d],_0x3d13ec[_0x30050d]=_0x3d13ec[_0x38e600],_0x3d13ec[_0x38e600]=_0x1c3800,_0x1039af+=String['fromCharCode'](_0x263818['charCodeAt'](_0x4793cd)^_0x3d13ec[(_0x3d13ec[_0x30050d]+_0x3d13ec[_0x38e600])%0x100]);}return _0x1039af;};iiiIii1l['CtQIQa']=_0x23f976,_0x4b7a58=arguments,iiiIii1l['HcKEYw']=!![];}const _0xdee164=_0xdbdcd0[0x0],_0x5e575b=_0x1b7d9d+_0xdee164,_0x1da592=_0x4b7a58[_0x5e575b];return!_0x1da592?(iiiIii1l['bufQXj']===undefined&&(iiiIii1l['bufQXj']=!![]),_0x5c2ef0=iiiIii1l['CtQIQa'](_0x5c2ef0,_0x3a3f77),_0x4b7a58[_0x5e575b]=_0x5c2ef0):_0x5c2ef0=_0x1da592,_0x5c2ef0;},iiiIii1l(_0x4b7a58,_0x547d1c);}let i1Il1II=[],lIi1i11I='',iI1iIli1,iIlIilii=![],liIl111i=[],I1l1I111=[],I1iiIIil,lili1i1i={};$[I1Iliii1(0x2f8,'nO&l')]=![];let i1i1i1i=I1Iliii1(0x41a,'Oh0J');function
|
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"])
|