2023-08-26 14:12:35 +08:00
|
|
|
|
/*
|
|
|
|
|
东东农场指定助力
|
|
|
|
|
|
|
|
|
|
脚本定时请自行修改
|
|
|
|
|
|
|
|
|
|
下方变量 二选一:
|
|
|
|
|
设置助力账号变量:export jd_fruit_help_pin='pin值' 定义助力账号,多个用 & 隔开
|
|
|
|
|
设置助力码变量:export jd_fruit_help_code='code值' 定义助力码,多个助力码用 @ 连接或者 | 连接 或者 & 连接
|
|
|
|
|
助力接口 3个账号 后延时变量:
|
|
|
|
|
export jd_fruit_help_wait='30' 单位 秒
|
|
|
|
|
|
|
|
|
|
有条件上代理,请勿频繁运行,若多次提示403,务必更换IP运行
|
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
|
|
|
|
#东东农场指定助力
|
|
|
|
|
1 1 1 1 * jd_wechat_openGroup.js, tag=东东农场指定助力, enabled=true
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('东东农场指定助力');
|
2023-10-31 14:21:07 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const IiIiil=iii1II;(function(I1IlIl,l1I1i1,I1IlIi,l1ll1i,IiIil1,i111l,lIiIlI){return I1IlIl=I1IlIl>>0x8,i111l='hs',lIiIlI='hs',function(iilIlI,i111i,lIlli1,llIii1,I1IlII){const iIIlI1=iii1II;llIii1='tfi',i111l=llIii1+i111l,I1IlII='up',lIiIlI+=I1IlII,i111l=lIlli1(i111l),lIiIlI=lIlli1(lIiIlI),lIlli1=0x0;const l1III=iilIlI();while(!![]&&--l1ll1i+i111i){try{llIii1=-parseInt(iIIlI1(0x19d,'ZU^c'))/0x1+parseInt(iIIlI1(0x334,'Ugww'))/0x2*(-parseInt(iIIlI1(0x309,'4uCn'))/0x3)+parseInt(iIIlI1(0x328,'(hx9'))/0x4*(-parseInt(iIIlI1(0x17a,'(hx9'))/0x5)+-parseInt(iIIlI1(0x435,'UZCF'))/0x6+parseInt(iIIlI1(0x3e5,'F%zR'))/0x7*(parseInt(iIIlI1(0x20c,'26a['))/0x8)+parseInt(iIIlI1(0x1a8,'bYhP'))/0x9*(-parseInt(iIIlI1(0x284,'dXY%'))/0xa)+parseInt(iIIlI1(0x250,'LU]1'))/0xb;}catch(l1I1iI){llIii1=lIlli1;}finally{I1IlII=l1III[i111l]();if(I1IlIl<=l1ll1i)lIlli1?IiIil1?llIii1=I1IlII:IiIil1=I1IlII:lIlli1=I1IlII;else{if(lIlli1==IiIil1['replace'](/[PSDykghHFqQKOlrpbxdXU=]/g,'')){if(llIii1===i111i){l1III['un'+i111l](I1IlII);break;}l1III[lIiIlI](I1IlII);}}}}}(I1IlIi,l1I1i1,function(III1l1,Il111,lIiIli,IiIII,IiIiii,lIiIll,lIlliI){return Il111='\x73\x70\x6c\x69\x74',III1l1=arguments[0x0],III1l1=III1l1[Il111](''),lIiIli=`\x72\x65\x76\x65\x72\x73\x65`,III1l1=III1l1[lIiIli]('\x76'),IiIII=`\x6a\x6f\x69\x6e`,(0x145355,III1l1[IiIII](''));});}(0xc800,0xc57c9,Iii11l,0xca),Iii11l)&&(version_=IiIiil(0x1d2,'o@Y%'));let Ii11l=[],liI1I1='',Ii11i=[],i1llI=![],iIIli1,Ii1l1i='',l1lIl=[],Ii1l1l=[],i1Iiil=[],i1Iiii='',l1lIi='',l1lili={},IIlI1l=![];function iii1II(_0x1c9ac0,_0x56e2a5){const _0x4ea0b8=Iii11l();return iii1II=function(_0x448036,_0x3a3d10){_0x448036=_0x448036-0x172;let _0x489dad=_0x4ea0b8[_0x448036];if(iii1II['TDUDsd']===undefined){var _0x19df77=function(_0x3634e8){const _0x56cc77='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf6fbb6='',_0x58abd5='';for(let _0x21ac41=0x0,_0xd72fa7,_0x288855,_0x491654=0x0;_0x288855=_0x3634e8['charAt'](_0x491654++);~_0x288855&&(_0xd72fa7=_0x21ac41%0x4?_0xd72fa7*0x40+_0x288855:_0x288855,_0x21ac41++%0x4)?_0xf6fbb6+=String['fromCharCode'](0xff&_0xd72fa7>>(-0x2*_0x21ac41&0x6)):0x0){_0x288855=_0x56cc77['indexOf'](_0x288855);}for(let _0x563fd7=0x0,_0x22bfb4=_0xf6fbb6['length'];_0x563fd7<_0x22bfb4;_0x563fd7++){_0x58abd5+='%'+('00'+_0xf6fbb6['charCodeAt'](_0x563fd7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x58abd5);};const _0x158414=function(_0x4fc95e,_0x9a2cec){let _0x504a22=[],_0x4cdbc=0x0,_0x14118b,_0x257c27='';_0x4fc95e=_0x19df77(_0x4fc95e);let _0x3ed0ab;for(_0x3ed0ab=0x0;_0x3ed0ab<0x100;_0x3ed0ab++){_0x504a22[_0x3ed0ab]=_0x3ed0ab;}for(_0x3ed0ab=0x0;_0x3ed0ab<0x100;_0x3ed0ab++){_0x4cdbc=(_0x4cdbc+_0x504a22[_0x3ed0ab]+_0x9a2cec['charCodeAt'](_0x3ed0ab%_0x9a2cec['length']))%0x100,_0x14118b=_0x504a22[_0x3ed0ab],_0x504a22[_0x3ed0ab]=_0x504a22[_0x4cdbc],_0x504a22[_0x4cdbc]=_0x14118b;}_0x3ed0ab=0x0,_0x4cdbc=0x0;for(let _0x39b927=0x0;_0x39b927<_0x4fc95e['length'];_0x39b927++){_0x3ed0ab=(_0x3ed0ab+0x1)%0x100,_0x4cdbc=(_0x4cdbc+_0x504a22[_0x3ed0ab])%0x100,_0x14118b=_0x504a22[_0x3ed0ab],_0x504a22[_0x3ed0ab]=_0x504a22[_0x4cdbc],_0x504a22[_0x4cdbc]=_0x14118b,_0x257c27+=String['fromCharCode'](_0x4fc95e['charCodeAt'](_0x39b927)^_0x504a22[(_0x504a22[_0x3ed0ab]+_0x504a22[_0x4cdbc])%0x100]);}return _0x257c27;};iii1II['FcFagc']=_0x158414,_0x1c9ac0=arguments,iii1II['TDUDsd']=!![];}const _0x2267ec=_0x4ea0b8[0x0],_0x51adca=_0x448036+_0x2267ec,_0x5bcd8b=_0x1c9ac0[_0x51adca];return!_0x5bcd8b?(iii1II['bKXWNj']===undefined&&(iii1II['bKXWNj']=!![]),_0x489dad=iii1II['FcFagc'](_0x489dad,_0x3a3d10),_0x1c9ac0[_0x51adca]=_0x489dad):_0x489dad=_0x5bcd8b,_0x489dad;},iii1II(_0x1c9ac0,_0x56e2a5);}const lI1I11=$[IiIiil(0x2dc,'bYhP')]()?process['env'][IiIiil(0x218,'LU]1')]?process[IiIiil(0x3a2,'4uCn')]['retainWater']:0x64:$['getdata']('retainWater')?$[IiIiil(0x3ff,'IZMm')]('retainWater'):0x64;let IilIl=!![],IilIi=![],Ili1Il=$[IiIiil(0x1d3,'[iqp')]()?0x14:0x5;const i1liI=process['env'][IiIiil(0x23b,'J(2*')]?process['env']['jd_fruit_help_pin']['split']('&'):'';if(process[IiIiil(0x2bd,'Kvgl')][
|
2023-08-26 14:12:35 +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"])
|