/* 东东农场指定助力 脚本定时请自行修改 下方变量 二选一: 设置助力账号变量: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('东东农场指定助力'); var version_='jsjiami.com.v7';var i1lI=iii1II;(function(lI1Il1,lilIi1,IiilII,IliI1I,lI1Iii,i1li,li1II){return lI1Il1=lI1Il1>>0x2,i1li='hs',li1II='hs',function(IliI11,i1ll,i1l1lI,i1iliI,I1iIii){var lI1IiI=iii1II;i1iliI='tfi',i1li=i1iliI+i1li,I1iIii='up',li1II+=I1iIii,i1li=i1l1lI(i1li),li1II=i1l1lI(li1II),i1l1lI=0x0;var IllII1=IliI11();while(!![]&&--IliI1I+i1ll){try{i1iliI=-parseInt(lI1IiI(0x10c,'8$8J'))/0x1+-parseInt(lI1IiI(0xfb,'wAm#'))/0x2*(-parseInt(lI1IiI(0xf6,'$E9h'))/0x3)+parseInt(lI1IiI(0x101,'Z8bH'))/0x4+parseInt(lI1IiI(0x10d,'7H!n'))/0x5+parseInt(lI1IiI(0xff,'B5wi'))/0x6+-parseInt(lI1IiI(0x109,'WlwL'))/0x7*(-parseInt(lI1IiI(0x106,'P#WY'))/0x8)+-parseInt(lI1IiI(0x10b,'B5wi'))/0x9;}catch(I1iIil){i1iliI=i1l1lI;}finally{I1iIii=IllII1[i1li]();if(lI1Il1<=IliI1I)i1l1lI?lI1Iii?i1iliI=I1iIii:lI1Iii=I1iIii:i1l1lI=I1iIii;else{if(i1l1lI==lI1Iii['replace'](/[UhXKfnIyEbHQNTOgrPDCw=]/g,'')){if(i1iliI===i1ll){IllII1['un'+i1li](I1iIii);break;}IllII1[li1II](I1iIii);}}}}}(IiilII,lilIi1,function(lI1Iil,lilIiI,i1l1I,IiilIi,IiilIl,iii1Ii,iii1Il){return lilIiI='\x73\x70\x6c\x69\x74',lI1Iil=arguments[0x0],lI1Iil=lI1Iil[lilIiI](''),i1l1I=`\x72\x65\x76\x65\x72\x73\x65`,lI1Iil=lI1Iil[i1l1I]('\x76'),IiilIi=`\x6a\x6f\x69\x6e`,(0x1452a6,lI1Iil[IiilIi](''));});}(0x308,0x619ea,Iii11l,0xc4),Iii11l)&&(version_=i1lI(0x102,'A[]7'));function iii1II(_0x3836d1,_0x4832ab){var _0x318d49=Iii11l();return iii1II=function(_0xbb0112,_0x339e4c){_0xbb0112=_0xbb0112-0xf3;var _0x23413f=_0x318d49[_0xbb0112];if(iii1II['kIEfYr']===undefined){var _0xa13189=function(_0x233936){var _0x514016='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x356158='',_0x357c0e='';for(var _0x498e32=0x0,_0x59d207,_0x34abbf,_0x2d1630=0x0;_0x34abbf=_0x233936['charAt'](_0x2d1630++);~_0x34abbf&&(_0x59d207=_0x498e32%0x4?_0x59d207*0x40+_0x34abbf:_0x34abbf,_0x498e32++%0x4)?_0x356158+=String['fromCharCode'](0xff&_0x59d207>>(-0x2*_0x498e32&0x6)):0x0){_0x34abbf=_0x514016['indexOf'](_0x34abbf);}for(var _0x545158=0x0,_0x23903d=_0x356158['length'];_0x545158<_0x23903d;_0x545158++){_0x357c0e+='%'+('00'+_0x356158['charCodeAt'](_0x545158)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x357c0e);};var _0x5b1a79=function(_0x5ee12e,_0x5496ec){var _0x2266b4=[],_0x16f722=0x0,_0xaa857,_0x300867='';_0x5ee12e=_0xa13189(_0x5ee12e);var _0x23f9d1;for(_0x23f9d1=0x0;_0x23f9d1<0x100;_0x23f9d1++){_0x2266b4[_0x23f9d1]=_0x23f9d1;}for(_0x23f9d1=0x0;_0x23f9d1<0x100;_0x23f9d1++){_0x16f722=(_0x16f722+_0x2266b4[_0x23f9d1]+_0x5496ec['charCodeAt'](_0x23f9d1%_0x5496ec['length']))%0x100,_0xaa857=_0x2266b4[_0x23f9d1],_0x2266b4[_0x23f9d1]=_0x2266b4[_0x16f722],_0x2266b4[_0x16f722]=_0xaa857;}_0x23f9d1=0x0,_0x16f722=0x0;for(var _0x476d94=0x0;_0x476d94<_0x5ee12e['length'];_0x476d94++){_0x23f9d1=(_0x23f9d1+0x1)%0x100,_0x16f722=(_0x16f722+_0x2266b4[_0x23f9d1])%0x100,_0xaa857=_0x2266b4[_0x23f9d1],_0x2266b4[_0x23f9d1]=_0x2266b4[_0x16f722],_0x2266b4[_0x16f722]=_0xaa857,_0x300867+=String['fromCharCode'](_0x5ee12e['charCodeAt'](_0x476d94)^_0x2266b4[(_0x2266b4[_0x23f9d1]+_0x2266b4[_0x16f722])%0x100]);}return _0x300867;};iii1II['Hfdlle']=_0x5b1a79,_0x3836d1=arguments,iii1II['kIEfYr']=!![];}var _0x21d3b7=_0x318d49[0x0],_0x39c18a=_0xbb0112+_0x21d3b7,_0x40698c=_0x3836d1[_0x39c18a];return!_0x40698c?(iii1II['ZAQftJ']===undefined&&(iii1II['ZAQftJ']=!![]),_0x23413f=iii1II['Hfdlle'](_0x23413f,_0x339e4c),_0x3836d1[_0x39c18a]=_0x23413f):_0x23413f=_0x40698c,_0x23413f;},iii1II(_0x3836d1,_0x4832ab);}function Iii11l(){var lilIil=(function(){return[...[version_,'KyPjsTjXIOirDhamHiD.nEcQoXmP.QgNvPC7Ufwb==','kCkHcmkEW4q','W5WZW4tcRSoV','iL8vW5hdIeXi','lHzfWQrufmoiW6nlChq','WPNcUSk+WO5jWOhdGeLrW57dSq','W7euk37dNCkbpCoU','5AAE6ycA5lMx5ywU5A+b77+06kYp5ywT5PQg5PAP55EJz1lLIiFLRipVVPVLUiZLJ7tPP5BNUlxMIlBKUilJGlq','55ET5lQu5yIY5yQp5lM657IR776f5P2B6zwd6Acl56A95P+F5y2n6Awk77YC6k+u6icx57kbn8ouqSkOWPruWR9um8oaW44','zbFcNmoFEqldVSoGWOpdRmoqprq'],...(function(){return[...['WQrjDINcICozzSoXbZz9W57dKa','W6xcJCkAx27cOthcMLVcU8oGzJC','oSoTW4ZcQCkrWRxcPdL7FuKwW6hcLW','xCoAary','5PYL56Ik5yYj5PETWQtLU5NLJ7dNO4FLJ7dNMRlMLPNNIBBMNQZdKu/LIOdNI5dVV6FLHOxMNj/LPOxMG4hMGBdLIl/LRiRVVQpNOz/OPOhPMypLUyBMM6xPQQJJGOG','W6Gds13cQ8orhmo7WQpcNrBcJCkZ','DmkCWOG3W7uyxCo9CsDrgCke','W68OeCkGsCkMW40IW6BdLGCU','WPKEWODCWRhdJLhcOmoueaRdR8oX','y8kIWOhdGmodWQJdLq','W7usW5NdHrhcR8oIW53cVCoWn8olh8oL'],...(function(){return['zHZcLSoFFq3dTSkLWQRdN8owiXxdKa','W4NcMSo/W6pcHmolBWLHW7XUcG','WPGAWOvrWRddJvdcG8oqlHJdJ8o0','WRK/eL3LU70jBoAFKmo2lEAwQmkStLKxW5ZcGX9Y5PMR5PsS','fSkioSkTW4u','ACkUW6PY','WQval0ddImk4h8ob','zCovW5lcGSkdW6RcVWr0WRi4WQldKa','W6KahZ7dRmk6AmoR'];}())];}())];}());Iii11l=function(){return lilIil;};return Iii11l();};(function(II11Ii,II11Il){var IlI1l=i1lI,IlI11={'tMTwL':IlI1l(0x10e,'!)e('),'KdfDM':IlI1l(0xfe,'je]!'),'tnyGB':IlI1l(0xfd,'&dXE')};II11Ii['update']=IlI11[IlI1l(0x10f,'^Utx')],II11Il[IlI1l(0x103,'pf7E')]=IlI1l(0x104,'B#x!'),II11Il[IlI1l(0xfc,'V4Vk')]=IlI11[IlI1l(0xf7,'^Utx')],II11Il[IlI1l(0xf3,'WHM3')]=IlI11[IlI1l(0xf8,'FL#U')];}(window,document));var version_ = 'jsjiami.com.v7'; // 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"]),this.isSurge()||this.isLoon()?(this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){if(t.body&&t.headers&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/x-www-form-urlencoded"),t.headers&&delete t.headers["Content-Length"],this.isSurge()||this.isLoon())this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.post(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)});else if(this.isQuanX())t.method="POST",this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t));else if(this.isNode()){this.initGotEnv(t);const{url:s,...i}=t;this.got.post(s,i).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)})}}time(t,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return t}msg(e=t,s="",i="",r){const o=t=>{if(!t)return t;if("string"==typeof t)return this.isLoon()?t:this.isQuanX()?{"open-url":t}:this.isSurge()?{url:t}:void 0;if("object"==typeof t){if(this.isLoon()){let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}if(this.isQuanX()){let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl;return{"open-url":e,"media-url":s}}if(this.isSurge()){let e=t.url||t.openUrl||t["open-url"];return{url:e}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){const s=!this.isSurge()&&!this.isQuanX()&&!this.isLoon();s?this.log("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)}